Seems formatting got screwed up, I have total of 8GB RAM, on two servers Out put from free command, On Machine 1 total used free shared buffers cached Mem: 8104664 8084304 20360 0 7848 64284 -/+ buffers/cache: 8012172 92492 Swap: 2031608 1001964 1029644 On Machine 2 total used free shared buffers cached Mem: 8104664 3571624 4533040 0 30568 1016700 -/+ buffers/cache: 2524356 5580308 Swap: 2031608 0 2031608 If I calculate using TOP, Machine 1 PID USER %CPU %MEM TIME+ COMMAND Memory * 8000/100 30394 tomcat 3 22.2 9053:09:00 java 1776 11497 tomcat 0 14.3 6770:01:00 java 1144 29523 tomcat 0 4.3 22309:09 java 344 32390 tomcat 0 2.6 14:58.1 java 208 31848 tomcat 0 2.1 09:29.2 java 168 9446 tomcat 0 1.9 23:33.6 java 152 12880 tomcat 0 1.5 38:18.2 java 120 21577 tomcat 0 1.2 55:10.5 java 96 27383 root 0 0.1 00:25.2 snmpd 8 32238 ntp 0 0.1 00:31.5 ntpd 8 2597 hpsmh 0 0.1 00:03.7 hpsmhd 8 5573 root 0 0 00:00.2 sshd 0 4032 Machine 2 PID USER %CPU %MEM TIME+ COMMAND Memory * 8000/100 4164 tomcat 11 14.9 29:12.9 java 1192 4256 tomcat 16 3.7 23:40.8 java 296 4195 tomcat 5 3.2 06:04.3 java 256 4320 tomcat 0 2.3 01:35.1 java 184 4054 tomcat 0 2.1 00:27.3 java 168 4227 tomcat 5 1.9 00:51.9 java 152 4291 tomcat 0 1.9 00:58.0 java 152 4348 tomcat 0 1.9 00:49.0 java 152 2456 root 0 0.1 00:11.1 snmpd 8 2765 hpsmh 0 0.1 00:00.0 hpsmhd 8 2739 root 0 0.1 00:00.3 hpsmhd 8 2531 ntp 0 0.1 00:00.0 ntpd 8 3434 root 0 0.1 00:01.8 hald 8 3910 root 0 0 00:00.1 sshd 0 14055 root 0 0 00:00.1 sshd 0 2592 When I run this command on machine1 and machine2 ps -eo pid,size,vsize,cmd --sort -size | head -n 25 | awk '{print $1 "\t" $2 "\t" $3 "\t" $4}' machine1 PID SZ VSZ CMD 30394 2950768 3083044 /usr/java/jdk1.5.0_12/bin/java 11497 1342440 1568004 java 32390 600596 727888 /usr/java/jdk1.5.0_12/bin/java 29523 561132 790028 /usr/java/jdk1.5.0_12/bin/java 31848 529884 664404 /usr/java/jdk1.5.0_12/bin/java 12880 525296 653620 /usr/java/jdk1.5.0_12/bin/java 9446 510412 641028 /usr/java/jdk1.5.0_12/bin/java 21577 508136 636456 /usr/java/jdk1.5.0_12/bin/java 2597 293032 387356 /opt/hp/hpsmh/sbin/hpsmhd 2943 113012 114728 hpasmd 3015 61672 63280 cmahealthd 3010 20696 22304 cmastdeqd 27383 16752 101584 /usr/sbin/snmpd 2961 10892 12620 cmapeerd 3112 10628 13080 cmafcad 2970 10592 12492 cmahostd 11495 10476 15552 /usr/local/wrapper/bin/wrapper 3243 10448 19892 dbus-daemon-1 3110 10436 11960 cmaided 3263 3944 17824 hald 2573 3132 96388 /opt/hp/hpsmh/sbin/hpsmhd 2490 1592 34996 sendmail: 2498 1448 27788 sendmail: 2584 940 57080 crond 8108356 9773396 Machine PID SZ VSZ CMD 4164 2120244 2251492 /usr/java/jdk1.5.0_12/bin/java 4054 1281480 1507044 java 4256 501332 730232 /usr/java/jdk1.5.0_12/bin/java 4320 490952 724420 /usr/java/jdk1.5.0_12/bin/java 4195 488836 616132 /usr/java/jdk1.5.0_12/bin/java 4227 476356 604680 /usr/java/jdk1.5.0_12/bin/java 4291 467356 597976 /usr/java/jdk1.5.0_12/bin/java 4348 465068 593392 /usr/java/jdk1.5.0_12/bin/java 2765 280936 375268 /opt/hp/hpsmh/sbin/hpsmhd 3108 113008 114724 hpasmd 3184 61804 63412 cmahealthd 3175 20696 22304 cmastdeqd 2456 16780 101612 /usr/sbin/snmpd 3128 10892 12620 cmapeerd 3276 10628 13080 cmafcad 3141 10596 12496 cmahostd 4052 10476 15552 /usr/local/wrapper/bin/wrapper 3412 10448 19892 dbus-daemon-1 3278 10436 11960 cmaided 3434 3944 17824 hald 2739 3324 96588 /opt/hp/hpsmh/sbin/hpsmhd 2551 1592 34996 sendmail: 2559 1448 27788 sendmail: 2800 1044 10260 xfs 6859676 8575744 Question remains, which one is right free or top, if top, then where is my memory on machine 1, if ps -eo, then how come free does not show all the memory used. -Jai -----Original Message----- From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Jai Rangi Sent: Thursday, June 19, 2008 4:20 PM To: redhat-list@xxxxxxxxxx Subject: Memory Management on RHEL4 Did a lot of googling without much success, and now I am here for some help on Memory Management. I have total of 8GB RAM, on two servers Out put from free command, On Machine 1 total used free shared buffers cached Mem: 8104664 8084304 20360 0 7848 64284 -/+ buffers/cache: 8012172 92492 Swap: 2031608 1001964 1029644 On Machine 2 total used free shared buffers cached Mem: 8104664 3571624 4533040 0 30568 1016700 -/+ buffers/cache: 2524356 5580308 Swap: 2031608 0 2031608 When I run this command on machine1 and machine2 ps -eo pid,size,vsize,cmd --sort -size | head -n 25 | awk '{print $1 "\t" $2 "\t" $3 "\t" $4}' I get these results, machine1 Machine2 PID SZ VSZ CMD PID SZ VSZ CMD 30394 2950768 3083044 /usr/java/jdk1.5.0_12/bin/java 4164 2120244 2251492 /usr/java/jdk1.5.0_12/bin/java 11497 1342440 1568004 java 4054 1281480 1507044 java 32390 600596 727888 /usr/java/jdk1.5.0_12/bin/java 4256 501332 730232 /usr/java/jdk1.5.0_12/bin/java 29523 561132 790028 /usr/java/jdk1.5.0_12/bin/java 4320 490952 724420 /usr/java/jdk1.5.0_12/bin/java 31848 529884 664404 /usr/java/jdk1.5.0_12/bin/java 4195 488836 616132 /usr/java/jdk1.5.0_12/bin/java 12880 525296 653620 /usr/java/jdk1.5.0_12/bin/java 4227 476356 604680 /usr/java/jdk1.5.0_12/bin/java 9446 510412 641028 /usr/java/jdk1.5.0_12/bin/java 4291 467356 597976 /usr/java/jdk1.5.0_12/bin/java 21577 508136 636456 /usr/java/jdk1.5.0_12/bin/java 4348 465068 593392 /usr/java/jdk1.5.0_12/bin/java 2597 293032 387356 /opt/hp/hpsmh/sbin/hpsmhd 2765 280936 375268 /opt/hp/hpsmh/sbin/hpsmhd 2943 113012 114728 hpasmd 3108 113008 114724 hpasmd 3015 61672 63280 cmahealthd 3184 61804 63412 cmahealthd 3010 20696 22304 cmastdeqd 3175 20696 22304 cmastdeqd 27383 16752 101584 /usr/sbin/snmpd 2456 16780 101612 /usr/sbin/snmpd 2961 10892 12620 cmapeerd 3128 10892 12620 cmapeerd 3112 10628 13080 cmafcad 3276 10628 13080 cmafcad 2970 10592 12492 cmahostd 3141 10596 12496 cmahostd 11495 10476 15552 /usr/local/wrapper/bin/wrapper 4052 10476 15552 /usr/local/wrapper/bin/wrapper 3243 10448 19892 dbus-daemon-1 3412 10448 19892 dbus-daemon-1 3110 10436 11960 cmaided 3278 10436 11960 cmaided 3263 3944 17824 hald 3434 3944 17824 hald 2573 3132 96388 /opt/hp/hpsmh/sbin/hpsmhd 2739 3324 96588 /opt/hp/hpsmh/sbin/hpsmhd 2490 1592 34996 sendmail: 2551 1592 34996 sendmail: 2498 1448 27788 sendmail: 2559 1448 27788 sendmail: 2584 940 57080 crond 2800 1044 10260 xfs Total 8108356 Total 6859676 1. Why the total on Machine 2 is not same as Memory used, 2. On machine 1, what is using 1 GB from SWAP. Thank you, Jai Rangi -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=subscribe https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list