Skip to content

zyimin/golang-memtest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summary

Allocates memory in 1Mb blocks, up to the total requested by user. Intended use is to validate container image memory constraints.

Usage

allocate 4Mb of data ./golang-memtest 4

allocate 8Mb of data ./golang-memtest 8

use environment variable to specity number of Mb. useful when running in container nmb=3 ./golang-memtest

Prerequisites

Makefile targets

  • go-compile (compiles go program, although I already compiled Linux binary as convenience)
  • docker-run (builds golang binary, docker image, runs)
  • docker-run-ok (puts 8Mb limit on docker container, allocates 4, should run OK)
  • docker-run-bigmem (puts 8Mb limit on docker container, allocates 12, should FAIL)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 53.7%
  • Makefile 30.3%
  • Dockerfile 16.0%