title: linux show process ram usage
body: <p>free shows that My centos system used 4/11 Gb RAM, but I can't pinpoint which process has used them.  I used top, however it only shows one process(mysqld) used about 1GB.  what's going on?</p>
  
  <pre>
  # free -g
               total       used       free     shared    buffers     cached
  Mem:            11          4          7          0          0          3
  -/+ buffers/cache:          0         11
  Swap:            1          0          1
  </pre>
  
  <p><pre>
  sks:  91 total,   1 running,  90 sleeping,   0 stopped,   0 zombie
  Cpu(s):  0.0%us,  0.1%sy,  0.0%ni, 99.9%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
  Mem:  12299928k total,  4372572k used,  7927356k free,    77392k buffers
  Swap:  2097144k total,        0k used,  2097144k free,  3925252k cached</p>
  
  <p>PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND<br>
      1 root      18   0 10352  704  588 S  0.0  0.0   0:00.82 init<br>
      2 root      RT  -5     0    0    0 S  0.0  0.0   0:00.01 migration/0<br>
      3 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0<br>
      4 root      RT  -5     0    0    0 S  0.0  0.0   0:00.01 migration/1<br>
      5 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/1<br>
      6 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/2<br>
      7 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/2<br>
      8 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/3<br>
      9 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/3<br>
     10 root      10  -5     0    0    0 S  0.0  0.0   0:00.09 events/0<br>
     11 root      10  -5     0    0    0 S  0.0  0.0   0:00.01 events/1<br>
     12 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/2<br>
     13 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/3<br>
     14 root      10  -5     0    0    0 S  0.0  0.0   0:00.01 khelper<br>
    119 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 kthread<br>
    126 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kblockd/0<br>
    127 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kblockd/1<br>
    128 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kblockd/2<br>
    129 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kblockd/3<br>
    130 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid<br>
    292 root      14  -5     0    0    0 S  0.0  0.0   0:00.00 cqueue/0<br>
    293 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 cqueue/1<br>
    294 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 cqueue/2<br>
    295 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 cqueue/3<br>
    298 root      14  -5     0    0    0 S  0.0  0.0   0:00.00 khubd<br>
    300 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod<br>
    390 root      15   0     0    0    0 S  0.0  0.0   0:00.00 khungtaskd<br>
    393 root      17  -5     0    0    0 S  0.0  0.0   0:00.00 kswapd0<br>
    394 root      17  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0<br>
    395 root      18  -5     0    0    0 S  0.0  0.0   0:00.00 aio/1<br>
    396 root      18  -5     0    0    0 S  0.0  0.0   0:00.00 aio/2<br>
    397 root      17  -5     0    0    0 S  0.0  0.0   0:00.00 aio/3<br>
    603 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 kpsmoused<br>
    671 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 mpt_poll_0<br>
    672 root      13  -5     0    0    0 S  0.0  0.0   0:00.00 mpt/0<br>
    673 root      13  -5     0    0    0 S  0.0  0.0   0:00.00 scsi_eh_0<br>
    679 root      13  -5     0    0    0 S  0.0  0.0   0:00.00 ata/0<br>
    680 root      13  -5     0    0    0 S  0.0  0.0   0:00.00 ata/1<br>
    681 root      13  -5     0    0    0 S  0.0  0.0   0:00.00 ata/2<br>
    682 root      13  -5     0    0    0 S  0.0  0.0   0:00.00 ata/3<br>
    683 root      13  -5     0    0    0 S  0.0  0.0   0:00.00 ata_aux<br>
    694 root      14  -5     0    0    0 S  0.0  0.0   0:00.00 kstriped<br>
    715 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 ksnapd<br>
    753 root      10  -5     0    0    0 S  0.0  0.0   0:03.54 kjournald<br>
    778 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kauditd<br>
    811 root      19  -4 12668  836  400 S  0.0  0.0   0:00.53 udevd<br>
   2331 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 kmpathd/0<br>
   2332 root      12  -5     0    0    0 S  0.0  0.0   0:00.00 kmpathd/1<br>
   2334 root      13  -5     0    0    0 S  0.0  0.0   0:00.00 kmpathd/2<br>
   2335 root      13  -5     0    0    0 S  0.0  0.0   0:00.00 kmpathd/3<br>
   2336 root      12  -5     0    0    0 S  0.0  0.0   0:00.00 kmpath_handlerd<br>
   2358 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 kjournald<br>
   2899 root      15   0     0    0    0 S  0.0  0.0   0:00.00 vmmemctl<br>
   3028 root      15   0 17540 1292 1052 S  0.0  0.0   0:01.31 vmware-guestd<br>
   3374 root      11  -4 28220  816  584 S  0.0  0.0   0:00.02 auditd<br>
   3376 root       7  -8 16268  764  620 S  0.0  0.0   0:00.01 audispd<br>
   3396 root      15   0  5912  672  544 S  0.0  0.0   0:00.06 syslogd<br>
   3399 root      15   0  3808  428  348 S  0.0  0.0   0:00.01 klogd<br>
   3413 root      18   0 10764  372  244 S  0.0  0.0   0:00.29 irqbalance<br>
   3428 dbus      18   0 32712 1404  856 S  0.0  0.0   0:00.00 dbus-daemon                                                                                   </p>
  
  <p>3477 haldaemo  15   0 49164 5152 2224 S  0.0  0.0   0:00.91 hald<br>
   3478 root      15   0 21700 1056  872 S  0.0  0.0   0:00.01 hald-runner<br>
   3485 haldaemo  19   0 12328  860  744 S  0.0  0.0   0:00.00 hald-addon-acpi<br>
   3491 haldaemo  17   0 12328  852  740 S  0.0  0.0   0:00.00 hald-addon-keyb<br>
   3500 root      16   0 10232  688  592 S  0.0  0.0   0:02.94 hald-addon-stor<br>
   3519 nscd      15   0  199m 2044 1364 S  0.0  0.0   0:00.15 nscd<br>
   3542 root      15   0 60748 1196  648 S  0.0  0.0   0:00.00 sshd<br>
   3561 ntp       15   0 19832 5528 4424 S  0.0  0.0   0:00.03 ntpd<br>
   3576 root      25   0 64168 1320 1056 S  0.0  0.0   0:00.19 mysqld_safe<br>
   3601 root      15   0 73812 1052  492 S  0.0  0.0   0:00.01 crond<br>
   3714 xfs       18   0 18416  744  480 S  0.0  0.0   0:00.00 xfs<br>
   3799 root      18   0 17068  448  304 S  0.0  0.0   0:00.00 atd<br>
   3923 root      25   0 58876  316  240 S  0.0  0.0   0:00.00 rhnsd<br>
   3942 root      17   0  3796  492  420 S  0.0  0.0   0:00.00 mingetty<br>
   3945 root      15   0  3796  488  420 S  0.0  0.0   0:00.00 mingetty<br>
   3948 root      18   0  3796  488  416 S  0.0  0.0   0:00.00 mingetty<br>
   3950 root      18   0  3796  488  416 S  0.0  0.0   0:00.00 mingetty<br>
   3951 root      18   0  3796  484  416 S  0.0  0.0   0:00.00 mingetty<br>
   3956 root      18   0  3796  488  416 S  0.0  0.0   0:00.00 mingetty<br>
  </PRE></p>