Memory Utilization on Linux



Hello,

I would like to know how much physical memory
consumned by each runing applications on Linux
The ps and top are showing different outputs, I could
not find it out , what ammount of actual memory
consumed by each runing process on my system

The scenario is :

The physcial memory installed on Linux system is
1024MB

Top command output :

top - 02:11:57 up 18:48, 2 users, load average:
0.00, 0.00, 0.00
Tasks: 126 total, 1 running, 125 sleeping, 0
stopped, 0 zombie
Cpu(s): 0.0% us, 0.2% sy, 0.0% ni, 99.8% id, 0.0%
wa, 0.0% hi, 0.0% si
Mem: 1026328k total, 810848k used, 215480k free,
47032k buffers
Swap: 2040244k total, 0k used, 2040244k free,
316708k cached

Free command output :

Free -mt
total used free
shared buffers cached
Mem: 1002 791 210
0 45 309
-/+ buffers/cache: 436 565
Swap: 1992 0 1992
Total: 2994 791 2203

The free command is showing 436MB used and 565MB is
free but the Top command is showing 810MB is used and
215MB is free
why cached is showing 309MB is it swap memory If I
calculate it comes to 436+309+45=791 how cache is
distributed with each application
is cache and VIRT is same

could anyone tell me how do I find out exact physical
memory occupied by each applications.

If go with ps command, is RSS is write value or
Virtual Memory + RSS ( Resident set size) value

#ps -eo rss,pcpu,comm,user,pid,time |sort -rnk1|head
-20

242896 0.1 java 501 5294 00:01:28
27628 0.0 spamd root 3314 00:00:01
25380 0.0 spamd root 3093 00:00:00
23624 0.0 spamd root 3315 00:00:00
22656 0.0 mysqld mysql 9573 00:00:00
22656 0.0 mysqld mysql 5415 00:00:02
22656 0.0 mysqld mysql 5340 00:00:00
22656 0.0 mysqld mysql 5336 00:00:00
22656 0.0 mysqld mysql 3322 00:00:00
22656 0.0 mysqld mysql 3321 00:00:00
22656 0.0 mysqld mysql 3320 00:00:00
22656 0.0 mysqld mysql 3319 00:00:00
22656 0.0 mysqld mysql 3311 00:00:00
22656 0.0 mysqld mysql 3310 00:00:00
22656 0.0 mysqld mysql 3309 00:00:00
22656 0.0 mysqld mysql 3308 00:00:00
22656 0.0 mysqld mysql 3307 00:00:00
22656 0.0 mysqld mysql 3233 00:00:00
22656 0.0 mysqld mysql 22854 00:00:00
22656 0.0 mysqld mysql 22853 00:00:00

Thanks
Nilesh




____________________________________________________________________________________
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: e450 *FULL* diag?
    ... No errors were showing up. ... I reloaded Linux and let it run. ... There are many options in SunVTS for memory testing. ... You can Enable this to catch ECC errors during SunVTS testing. ...
    (comp.sys.sun.hardware)
  • Re: Memory Utilization on Linux
    ... try pmem along with the command you used: ... I would like to know how much physical memory ... The ps and top are showing different outputs, ... The physcial memory installed on Linux system is ...
    (RedHat)
  • Re: Test my current RAM clock?
    ... My bus speed is showing at 200mhz and my Rated FSB is showing as ... On an Intel processor, the clock is 200MHz. ... DDR memory has a similar story to tell. ...
    (alt.comp.hardware.pc-homebuilt)
  • Re: Make sure we populate the initroot filesystem late enough
    ... Clearly something is using that memory. ... the commit that you bisected to is just showing the problem indirectly. ... memset() might still make it more obvious, ... the memsethopefully catching the problem.. ...
    (Linux-Kernel)
  • RE: Ubuntu Eats My Memory
    ... Subject: Ubuntu Eats My Memory ... Cache memory can be freed when a program needs it. ... the Linux memory system is fabulous. ... If you want better figures for Linux, try the "free" command. ...
    (Ubuntu)