<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Where is my memory going? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/where-is-my-memory-going/m-p/4027179#M28956</link>
    <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;Got a RH AS 4u3 server that I'd appreciate a second opinion on...&lt;BR /&gt;&lt;BR /&gt;Its got 16GB of phys which is showing used as follows:&lt;BR /&gt;&lt;BR /&gt;# free&lt;BR /&gt;             total       used       free     shared    buffers     cached&lt;BR /&gt;Mem:      16413860   16391888      21972          0       2048      45396&lt;BR /&gt;-/+ buffers/cache:   16344444      69416&lt;BR /&gt;Swap:     17800012    6590068   11209944&lt;BR /&gt;&lt;BR /&gt;As you can see even withouth buffers/cache its almost at capacity. This can also be seen in sar -r:&lt;BR /&gt;&lt;BR /&gt;06:08:11 PM kbmemfree kbmemused  %memused kbbuffers  kbcached kbswpfree kbswpused  %swpused  kbswpcad&lt;BR /&gt;06:08:13 PM     23476  16390384     99.86      1412     30692  11209972   6590040     37.02   1789208&lt;BR /&gt;06:08:15 PM     23540  16390320     99.86      1420     30684  11209972   6590040     37.02   1789208&lt;BR /&gt;06:08:17 PM     23636  16390224     99.86      1436     30668  11209972   6590040     37.02   1789208&lt;BR /&gt;06:08:19 PM     23636  16390224     99.86      1436     30668  11209972   6590040     37.02   1789208&lt;BR /&gt;06:08:21 PM     23772  16390088     99.86      1456     30716  11209972   6590040     37.02   1789208&lt;BR /&gt;Average:        23612  16390248     99.86      1432     30686  11209972   6590040     37.02   1789208&lt;BR /&gt;&lt;BR /&gt;However, I've checked using ps -eo rss,vsz and can only see ~9GB of vsz and ~1.2GB of rss. So, on the face of it I'm wondering why with ~9GB virtual in use I seem to be 99% utilised. I can see pageing activity, but not much swapping:&lt;BR /&gt;&lt;BR /&gt;# sar -B 2 5&lt;BR /&gt;Linux 2.6.9-34.ELsmp (loleqseueqd06)    06/26/2007&lt;BR /&gt;&lt;BR /&gt;06:09:57 PM  pgpgin/s pgpgout/s   fault/s  majflt/s&lt;BR /&gt;06:09:59 PM    214.29     55.10    554.08      0.00&lt;BR /&gt;06:10:01 PM   1051.55    183.51   1784.54      1.03&lt;BR /&gt;06:10:03 PM   3675.13    318.78   5072.08    170.56&lt;BR /&gt;06:10:05 PM   6297.44    162.05   3318.46    215.90&lt;BR /&gt;06:10:07 PM   4826.53    148.98   3083.16    108.67&lt;BR /&gt;Average:      3214.72    173.82   2766.26     99.39&lt;BR /&gt;&lt;BR /&gt;06:10:36 PM  pswpin/s pswpout/s&lt;BR /&gt;06:10:38 PM      6.67      0.00&lt;BR /&gt;06:10:40 PM      3.06      0.00&lt;BR /&gt;06:10:42 PM     10.71      0.00&lt;BR /&gt;06:10:44 PM      0.00      0.00&lt;BR /&gt;06:10:46 PM      0.00      0.00&lt;BR /&gt;Average:         4.09      0.00&lt;BR /&gt;&lt;BR /&gt;Any help in identifying where the other 8ish GB is would be great. I realise that RH holds onto memory and relinquishes it as required but this seems excessive..&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Tony&lt;BR /&gt;</description>
    <pubDate>Tue, 26 Jun 2007 12:11:17 GMT</pubDate>
    <dc:creator>Tony Walker_2</dc:creator>
    <dc:date>2007-06-26T12:11:17Z</dc:date>
    <item>
      <title>Where is my memory going?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/where-is-my-memory-going/m-p/4027179#M28956</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;Got a RH AS 4u3 server that I'd appreciate a second opinion on...&lt;BR /&gt;&lt;BR /&gt;Its got 16GB of phys which is showing used as follows:&lt;BR /&gt;&lt;BR /&gt;# free&lt;BR /&gt;             total       used       free     shared    buffers     cached&lt;BR /&gt;Mem:      16413860   16391888      21972          0       2048      45396&lt;BR /&gt;-/+ buffers/cache:   16344444      69416&lt;BR /&gt;Swap:     17800012    6590068   11209944&lt;BR /&gt;&lt;BR /&gt;As you can see even withouth buffers/cache its almost at capacity. This can also be seen in sar -r:&lt;BR /&gt;&lt;BR /&gt;06:08:11 PM kbmemfree kbmemused  %memused kbbuffers  kbcached kbswpfree kbswpused  %swpused  kbswpcad&lt;BR /&gt;06:08:13 PM     23476  16390384     99.86      1412     30692  11209972   6590040     37.02   1789208&lt;BR /&gt;06:08:15 PM     23540  16390320     99.86      1420     30684  11209972   6590040     37.02   1789208&lt;BR /&gt;06:08:17 PM     23636  16390224     99.86      1436     30668  11209972   6590040     37.02   1789208&lt;BR /&gt;06:08:19 PM     23636  16390224     99.86      1436     30668  11209972   6590040     37.02   1789208&lt;BR /&gt;06:08:21 PM     23772  16390088     99.86      1456     30716  11209972   6590040     37.02   1789208&lt;BR /&gt;Average:        23612  16390248     99.86      1432     30686  11209972   6590040     37.02   1789208&lt;BR /&gt;&lt;BR /&gt;However, I've checked using ps -eo rss,vsz and can only see ~9GB of vsz and ~1.2GB of rss. So, on the face of it I'm wondering why with ~9GB virtual in use I seem to be 99% utilised. I can see pageing activity, but not much swapping:&lt;BR /&gt;&lt;BR /&gt;# sar -B 2 5&lt;BR /&gt;Linux 2.6.9-34.ELsmp (loleqseueqd06)    06/26/2007&lt;BR /&gt;&lt;BR /&gt;06:09:57 PM  pgpgin/s pgpgout/s   fault/s  majflt/s&lt;BR /&gt;06:09:59 PM    214.29     55.10    554.08      0.00&lt;BR /&gt;06:10:01 PM   1051.55    183.51   1784.54      1.03&lt;BR /&gt;06:10:03 PM   3675.13    318.78   5072.08    170.56&lt;BR /&gt;06:10:05 PM   6297.44    162.05   3318.46    215.90&lt;BR /&gt;06:10:07 PM   4826.53    148.98   3083.16    108.67&lt;BR /&gt;Average:      3214.72    173.82   2766.26     99.39&lt;BR /&gt;&lt;BR /&gt;06:10:36 PM  pswpin/s pswpout/s&lt;BR /&gt;06:10:38 PM      6.67      0.00&lt;BR /&gt;06:10:40 PM      3.06      0.00&lt;BR /&gt;06:10:42 PM     10.71      0.00&lt;BR /&gt;06:10:44 PM      0.00      0.00&lt;BR /&gt;06:10:46 PM      0.00      0.00&lt;BR /&gt;Average:         4.09      0.00&lt;BR /&gt;&lt;BR /&gt;Any help in identifying where the other 8ish GB is would be great. I realise that RH holds onto memory and relinquishes it as required but this seems excessive..&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Tony&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Jun 2007 12:11:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/where-is-my-memory-going/m-p/4027179#M28956</guid>
      <dc:creator>Tony Walker_2</dc:creator>
      <dc:date>2007-06-26T12:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Where is my memory going?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/where-is-my-memory-going/m-p/4027180#M28957</link>
      <description>Please run ipcs -a. If you have a database in this server, the remaining memory could be shared memory usage, for example, oracle SGA.</description>
      <pubDate>Tue, 26 Jun 2007 12:16:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/where-is-my-memory-going/m-p/4027180#M28957</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-06-26T12:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Where is my memory going?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/where-is-my-memory-going/m-p/4027181#M28958</link>
      <description>Shalom Tony,&lt;BR /&gt;&lt;BR /&gt;The OS tends to allocate unused memory into the buffer cache. They seem to hav edone a very good job getting the cache to release it quickly when requested.&lt;BR /&gt;&lt;BR /&gt;I would think that a database or other shared memory user is grabbing the extra memory.&lt;BR /&gt;&lt;BR /&gt;AS to why the buffer cache is not reduced to compensate, that may be a bug.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 26 Jun 2007 13:07:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/where-is-my-memory-going/m-p/4027181#M28958</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-06-26T13:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Where is my memory going?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/where-is-my-memory-going/m-p/4027182#M28959</link>
      <description>Thanks guys,&lt;BR /&gt;&lt;BR /&gt;The situation persists. ipcs doesn't throw up anything. There are really only 2 java procs running and a realtime q manager. At present vsz total = ~4g but still 99% memutil. Swapping (inc major page faults is ongoing too):&lt;BR /&gt;&lt;BR /&gt;09:54:55 AM  pgpgin/s pgpgout/s   fault/s  majflt/s&lt;BR /&gt;09:54:57 AM    228.57     30.61     49.49      8.67&lt;BR /&gt;09:54:59 AM    176.41      8.21     58.97      5.64&lt;BR /&gt;09:55:01 AM    175.51    542.86     72.45      5.10&lt;BR /&gt;09:55:03 AM     90.26   6553.85   4494.87      3.59&lt;BR /&gt;09:55:05 AM    193.88      0.00    203.57      6.12&lt;BR /&gt;Average:       173.01   1423.31    973.21      5.83&lt;BR /&gt;&lt;BR /&gt;09:56:15 AM  pswpin/s pswpout/s&lt;BR /&gt;09:56:17 AM     56.41      0.00&lt;BR /&gt;09:56:19 AM     23.59      0.00&lt;BR /&gt;09:56:21 AM     37.56      0.00&lt;BR /&gt;09:56:23 AM     61.03      0.00&lt;BR /&gt;09:56:25 AM     38.58      0.00&lt;BR /&gt;Average:        43.41      0.00&lt;BR /&gt;&lt;BR /&gt;Average:        21528  16392332     99.87      6033     83358  16496786   1303226      7.32    308014&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Tony&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jun 2007 03:56:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/where-is-my-memory-going/m-p/4027182#M28959</guid>
      <dc:creator>Tony Walker_2</dc:creator>
      <dc:date>2007-06-28T03:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Where is my memory going?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/where-is-my-memory-going/m-p/4027183#M28960</link>
      <description>Tune swappiness down to 0, and see what it does (echo 0 &amp;gt; /proc/sys/vm/swappiness).</description>
      <pubDate>Thu, 28 Jun 2007 05:03:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/where-is-my-memory-going/m-p/4027183#M28960</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-06-28T05:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Where is my memory going?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/where-is-my-memory-going/m-p/4027184#M28961</link>
      <description>Oh, a full process list (ps -elf) will help us give you a more reasonable answer for the swap usage.&lt;BR /&gt;&lt;BR /&gt;But my bet is it's just allocated memory that hasn't been used, so the kernel swapped it out to more efficiently use avaialble resources (physical memory).&lt;BR /&gt;&lt;BR /&gt;swappiness = 0 will stop the kernel from that behaviour though.. and only allocate swap when all physical memory is exhausted.</description>
      <pubDate>Thu, 28 Jun 2007 05:15:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/where-is-my-memory-going/m-p/4027184#M28961</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-06-28T05:15:34Z</dc:date>
    </item>
  </channel>
</rss>

