Displaying 1 result from an estimated 1 matches for "used_mem".
Did you mean:
use_mem
1999 Jul 12
0
CONTRIB: crash_samba
...another OSes that are
not linux , but it's small and should be easy to port.
It works reading uptime and the second line of /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 131448832 127242240 4206592 22233088 14864384 62238720
I guess the real used memory is:
used_mem=total-free-buffers-cached
#!/usr/bin/perl -w
# it comes with no warranty, no support, it could blow away your system
# use at your own risk
# author: frankie@etsetb.upc.es
use strict;
while (1) {
my ($load)=`uptime`=~/age:\s+(\S+),/;
print "$load\t";
open MEM...