RECIDIVM(1)
β¨ NAME β¨
recidivm β estimate peak virtual memory use π
Okay bestie, so recidivm is the little icon that estimates the target program's peak virtual memory use by running it multiple times with different memory limits. It's literally giving measurement-by-vibe-check, except the vibes are memory limits. π«Ά
πΈ SYNOPSIS πΈ
recidivm [-c] [-p] [-v] [-u B|K|M] -- command [argument...]
π DESCRIPTION π
recidivm estimates the target program's peak virtual memory use by running it multiple times with different memory limits. β¨
The target program must be well-behaved, no cap:
- It must be deterministic (at least with respect to memory use). π
- If the memory limit is sufficient, it must terminate with exit status
0. - If the memory limit is insufficient, it must terminate with non-zero exit status, or be terminated by a signal.
π OPTIONS π
-cβ Capture stdin and provide fresh copy of it to every instance of the target program. This is the default unlessstdinis a terminal. Ifstdinis a terminal, the default is to redirect the target program'sstdinto/dev/null. π-pβ Don't redirect the target program's stdout or stderr. The default is to redirect bothstdoutandstderrto/dev/null. π-u Bβ Use byte as the size unit. This is the default. π-u Kβ Use kilobyte (1024 bytes) as the size unit π§-u Mβ Use megabyte (1048576 bytes) as the size unit. π-vβ Print information about every call to the target program. π-h,--helpβ Show help message and exit. π«Ά
π₯ EXAMPLE π₯
Here's the group-chat demo, fr fr:
$ gcc -m32 hello.c -o hello32
$ gcc -m64 hello.c -o hello64
$ gcc -m32 -fsanitize=address hello.c -o hello32asan
$ gcc -m64 -fsanitize=address hello.c -o hello64asan
$ recidivm -u M ./hello32
2
$ recidivm -u M ./hello64
4
$ recidivm -u M ./hello32asan
538
$ recidivm -u M ./hello64asan
20971587
π¦ SEE ALSO π¦
setrlimit(2) β that's the reference bestie. π
π That's the whole page, bestie β recidivm 0.2.1, dated 2024-02-01. Mwah! π
π¦ where this page comes from
- opensuse-leap 16.0: recidivm 0.2.1-bp160.1.10 Β· MIT
- opensuse-leap 16.0: recidivm 0.2.1-bp160.1.10 Β· MIT
- opensuse-leap 16.0: recidivm 0.2.1-bp160.1.10 Β· MIT
- opensuse-leap 16.0: recidivm 0.2.1-bp160.1.10 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms