Sample Header Ad - 728x90

How to get load averages and compulsory memory from a script?

0 votes
2 answers
77 views
uptime piped to sed fixes the first part but what about memory usage? top runs, at least by default, interactively. So: I need to watch used RAM excluding opportunistic caching(which gets dropped as soon as the memory is needed). And ask about both because I expect a single standard tool can do it, instead of two. Or - even better - something in /proc indicating the RAM part.
Asked by Vorac (3197 rep)
Jan 8, 2023, 02:47 AM
Last activity: Jan 8, 2023, 07:33 AM