Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memStress

This is a tool to simulate memory allocation.

Usage:

>memStress -h

Usage of ./memStress:
  -client
        the process runs as a client
  -size string
        size of memory you want to allocate (default "0KB")
  -time string
        time to reach the size of memory you allocated (default "0s")
  -workers int
        number of workers allocating memory (default 1)

You can generate a model that simulates a memory usage like memStress --size 1GiB --time 1m --workers 2. This command will generate two workers, each of which will allocate 1GiB of memory and the allocation process will last 1 minute.

(notice: The allocation process will last 1minute, not the program runs for 1 minute.)

Build:

memStress is Linux-only, so every target runs inside a pinned Go container (golang:<GO_VERSION>). They work on any host — including macOS — and require only Docker; the produced binary is always a static Linux executable built with the same Go toolchain as CI/releases.

make build                    # -> ./memStress (linux/amd64)
make release VERSION=v0.3.1   # -> ./dist/memStress_v0.3.1-{x86_64,aarch64}-linux-gnu.tar.gz

Run make (or make help) to list all targets. Release tarballs contain a single memStress binary at their root.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages