.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "LEAK-MEMORY" "1" "2021-04-23" "chaos-marmosets" "leak-memory\[cq]s Manual" .hy .SH NAME .PP leak-memory - eat your memory like Obelix eats cake .SH SYNOPSIS .PP \f[B]leak-memory\f[R] [\f[I]max_memory_size\f[R]] .SH DESCRIPTION .PP \f[B]leak-memory\f[R] 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. .PP \f[B]leak-memory\f[R] will use \f[I]malloc\f[R] 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 optimization preventing the leak. The program will report its progress to make it easy to spot when \f[B]leak-memory\f[R] hits the OOM killer. .SH OPTIONS .TP \f[I]max_memory_size\f[R] Maximum memory size to allocate in MiB (42 TiB by default) .SH AUTHOR .PP Benjamin Drung