LEAK-MEMORY(1)

πŸ“¦
version 0.2.0 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– LEAK-MEMORY πŸ’–

okay bestie, welcome to the leak-memory page from leak-memory’s Manual β€” it's chaotic, it's iconic, and it will absolutely eat your RAM for breakfast πŸ“


✨ NAME ✨

leak-memory β€” eat your memory like Obelix eats cake πŸŽ‚


🌸 SYNOPSIS 🌸

leak-memory [max_memory_size]

πŸ¦‹ DESCRIPTION πŸ¦‹

so like. leak-memory will eat your memory like Obelix eats cake until it eventually triggers the out of memory (OOM) killer. no cap. that's the whole personality. πŸ’€

and that's literally the point, bestie β€” this program is useful to test configured cgroups memory limitations and the OOM killer behavior. it's giving "I'm the stress test" and it ate. πŸ‘‘

here's the vibe: 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 optimization preventing the leak β€” yes queen, we're defeating the compiler's little attempts to clean up after us πŸ™ˆ

and because it's a considerate icon, the program will report its progress to make it easy to spot when leak-memory hits the OOM killer. so you'll see the exact moment it goes down. main character energy, honestly. 😭πŸ”₯


πŸ’… OPTIONS πŸ’…

  • max_memory_size β€” maximum memory size to allocate in MiB (42 TiB by default). that's right, the default is forty-two tebibytes. she's ambitious fr fr πŸ’œ

πŸ‘‘ AUTHOR πŸ‘‘

Benjamin Drung bdrung@posteo.de β€” the mastermind, the legend, the one who said "what if memory leak, but on purpose" 🫢


and that's the whole page, bestie! this one shipped as part of chaos-marmosets, dated 2021-04-23, and the manpage header said LEAK-MEMORY(1). go forth and leak responsibly, iykyk πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from