dis_memory_usage(7rheolef)

πŸ“¦
version 7.2 Β· 4 versions
, in debian trixie, ubuntu noble, ubuntu questing

πŸ’– dis_memory_usage β€” bestie edition πŸ’–

okay so real talk: this is the rheolef-7.2 page about memory used in distributed environment. yes, distributed. yes, multiple processes. yes, it's giving "my RAM is fighting for its life" energy. let's get into it 🫢


✨ SYNOPSIS ✨

size_t seq_memory_usage();
size_t dis_memory_usage();
size_t seq_peak_memory_usage();
size_t dis_peak_memory_usage();
size_t memory_size();

five little functions, all of them handing you back a size_t, all of them nosy about memory. iconic behavior honestly πŸ‘‘


🌸 DESCRIPTION 🌸

πŸŽ€ seq_memory_usage

returns the current resident set size (that's physical memory use, the real deal, not the vibes) measured in bytes. and if your OS is being mysterious and won't tell you? you get zero. not an error, not a crash, just a sad little zero πŸ™ˆ

πŸ¦‹ dis_memory_usage

returns the accumulated memory usage for all processes linked together via the default communicator. so like, everybody in the group chat, added up. the whole squad's RAM consumption, one number πŸ’…

🌈 seq_peak_memory_usage

returns the peak β€” as in the maximum so far β€” resident set size (physical memory use again) measured in bytes. or zero if the value cannot be determined on this OS. this is the "highest my memory has ever been, no cap" function πŸ“ˆ

⭐ dis_peak_memory_usage

returns the accumulated peak memory usage for all processes linked together via the default communicator. peak, but for the whole group. the group's worst moment, collectively, forever remembered 😭

πŸ’œ memory_size

returns the size of physical memory (RAM) in bytes associated to the given process. like, how much RAM does this process get to claim as its own. main character allocation energy fr fr


πŸ”§ IMPLEMENTATION πŸ”§

this documentation has been generated from file linalg/lib/dis_memory_usage.h. that's the source of truth bestie, go look at it if you want the lore πŸ“‚


πŸ‘‘ AUTHOR πŸ‘‘

Pierre Saramito <Pierre.Saramito@imag.fr> β€” the legend himself, we stan 🫑


Copyright (C) 2000-2018 Pierre Saramito <Pierre.Saramito@imag.fr>

GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law. like, none. zero. the vibes are free but the guarantees are not included πŸ’€

and that's the whole page bestie, no notes ✨ this was rheolef Version 7.2, page dis_memory_usage(7rheolef), mwah πŸ’‹ go check your memory usage, stay hydrated, and remember: zero might just mean your OS is being shy πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from