Vmstat indicates memory is disappearing

Posted by jimbotron on Server Fault See other posts from Server Fault or by jimbotron
Published on 2013-10-27T14:03:02Z Indexed on 2013/10/27 15:54 UTC
Read the original article Hit count: 292

Filed under:
|

I wanted to profile the memory usage of a script. Here's the output before it was running:

procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
0  0  15624 186660  39460 439052    0    0     0     2    1    1  0  0 100  0

Here's the output while the script is running, at the point where free memory was at its lowest value:

procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
0  0  15624  11464  40312 473524    0    0     0     2    1    1  0  0 100  0

So free memory dropped by about 175 MB, and I expected that buff would increase by that amount. But it seems the other columns changed by relatively negligible amounts - how is this possible? Am I interpreting this wrong, or is some memory just not being accounted for in this output?

© Server Fault or respective owner

Related posts about memory

Related posts about vmstat