logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

leak-memory - eat your memory like Obelix eats cake

Author

       Benjamin Drung <bdrung@posteo.de>

chaos-marmosets                                    2021-04-23                                     LEAK-MEMORY(1)

Description

leak-memory will eat your memory like Obelix eats cake until it will eventually trigger the out of memory
       (OOM)  killer.   This  program is useful to test configured cgroups memory limitations and the OOM killer
       behavior.

       leak-memory will use malloc to allocate 1 MiB blocks of memory in a loop until the given  maximum  memory
       size (by default 42 TiB) is reached.  The allocated memory blocks will be filled with data to avoid opti‐
       mization  preventing  the  leak.  The program will report its progress to make it easy to spot when leak-memory hits the OOM killer.

Name

       leak-memory - eat your memory like Obelix eats cake

Options

max_memory_size
              Maximum memory size to allocate in MiB (42 TiB by default)

Synopsis

leak-memory [max_memory_size]

See Also