[NTLUG:Discuss] memory usage snapshots

Burton M. Strauss III Burton_Strauss at comcast.net
Wed Mar 17 13:52:39 CST 2004


Why not just grab the /proc info?

# cat /proc/meminfo 
        total:    used:    free:  shared: buffers:  cached:
Mem:  856465408 786604032 69861376        0 213008384 332308480
Swap: 534601728  6090752 528510976
MemTotal:       836392 kB
MemFree:         68224 kB
MemShared:           0 kB
Buffers:        208016 kB
Cached:         322228 kB
SwapCached:       2292 kB
Active:         439348 kB
ActiveAnon:     118840 kB
ActiveCache:    320508 kB
Inact_dirty:     70176 kB
Inact_laundry:  127980 kB
Inact_clean:     12184 kB
Inact_target:   129936 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       836392 kB
LowFree:         68224 kB
SwapTotal:      522072 kB
SwapFree:       516124 kB

-----Burton

> -----Original Message-----
> From: discuss-bounces at ntlug.org [mailto:discuss-bounces at ntlug.org]On
> Behalf Of fredjame
> Sent: Wednesday, March 17, 2004 8:01 AM
> To: NTLUG Discussion List
> Subject: [NTLUG:Discuss] memory usage snapshots
> 
> 
> I am looking for a way to capture snapshots of physical usage on a 
> periodic basis, on *NIX machines.  I would prefer to do that in a shell 
> script (Bourne or BASH), but I can work in C as well.  Thank you in 
> advance for any help you may be able to offer.
> Regards
> Fred James
> 
> -- 
> ...we are fellow passengers...
> 
> 
> 
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss



More information about the Discuss mailing list