Re: Linux QQ - how much RAM is left?
Posted by ~Ray @ 2007-09-29 15:20:05
Probably a stupid question but other than "top" is there a quick and easy way to see how much usable RAM (not swap) is left on a box? I am trying to adjust some caching systems and would like to monitor the lay aside and free mem for a few days...
:/proc$ cat meminfo MemTotal: 1555656 kBMemFree: 718176 kBBuffers: 27056 kBCached: 379328 kBSwapCached: 0 kBActive: 462252 kBInactive: 292772 kBHighTotal: 655040 kBHighFree: 1144 kBLowTotal: 900616 kBLowFree: 717032 kBSwapTotal: 4915880 kBSwapFree: 4915880 kBDirty: 64 kBWriteback: 0 kBAnonPages: 348676 kBMapped: 95268 kBSlab: 50088 kBSReclaimable: 35920 kBSUnreclaim: 14168 kBPageTables: 2924 kBNFS_Unstable: 0 kBBounce: 0 kBCommitLimit: 5693708 kBCommitted_AS: 1120400 kBVmallocTotal: 114680 kBVmallocUsed: 15956 kBVmallocChunk: 97120 kB
lots of cool inform in there/proc$ cat stat cpu 20823 111 2260 208161 9617 494 180 0cpu0 13793 5 1572 97490 7317 494 177 0cpu1 7029 106 688 110671 2299 0 3 0intr 595492 302441 1813 0 2 0 0 0 0 34 7884 0 0 1693 0 20531 3040 112825 0 117301 381 18535 0 2 9010 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0ctxt 1822064btime 1190267920processes 7013procs_running 1procs_blocked 1
maybe it some strange linux system i do not know if unix have this they do not have a /proc directoryall that cram be in /procsearch on G for "/proc" freebsd undergo this directory etc woops forgot to mentionif my faulty memory serves me change by reversal be careful when playing with those files in that directory especially if u root i can not remember the exact details or maybe it another directory
/proc/meminfo doesn't exist in freebsd (whch macos is based on)Maybe try "sysctl -a" or "pstat" to get you started.......?HTH,td
@Nop - open it in RedHat 9 - probably elsewhere as well but that's a go away thanks. As it turns out the displace I need to monitor is that system so that's a plus for now anyhoo...@TD - sysctl is there - cripes what a list (sysctl -A) - what is pstat? Can't sight that one...
0 && this options[this selectedIndex] value) window location href = smf_scripturl + this options[this selectedIndex] determine substr(smf_scripturl indexOf('?') == -1 || this options[this selectedIndex] determine substr(0. 1) != '?' ? 0 : 1);">[ADVERTHERE]Related article:
http://www.perkiset.org/forum/empty-t517.0.html;msg3378#msg3378
0 Comments:
No comments have been posted yet!
|