<?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 Re: Memory is being used much in linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/memory-is-being-used-much-in-linux/m-p/4429285#M36787</link>
    <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;As i searched, In linux almost all the memories are reserved by Linux kernel as buffer and cache memory.&lt;BR /&gt;&lt;BR /&gt;So the top and free commands are showing the same like there are very less free memories available in Linux some time after starting the Linux server.&lt;BR /&gt;&lt;BR /&gt;So At this situation. can we use below command to find the percentage of total memory utilization and top 3 memory utilizing process.&lt;BR /&gt;&lt;BR /&gt;1)percentage of total memory utilization.&lt;BR /&gt;&lt;BR /&gt;[root@epiccenter2 ~]# ps -eo user,pid,pmem,comm | awk '{x += $3} END {print x}'&lt;BR /&gt;43.4&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2)top3 memory utilizing process:&lt;BR /&gt;&lt;BR /&gt;[root@epiccenter2 ~]# ps -eo user,pid,pmem,comm | sort -nrbk3 | head -3&lt;BR /&gt;root      4581 12.2 java.bin&lt;BR /&gt;root      4563  6.5 emis&lt;BR /&gt;root      4513  2.9 bswlogprc&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So can we use above commands to find the percentage of total memory utilization and top 3 memory utilizing process.&lt;BR /&gt;&lt;BR /&gt;Please give your suggestions.</description>
    <pubDate>Tue, 14 Jul 2009 14:42:09 GMT</pubDate>
    <dc:creator>senthil_kumar_1</dc:creator>
    <dc:date>2009-07-14T14:42:09Z</dc:date>
    <item>
      <title>Memory is being used much in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/memory-is-being-used-much-in-linux/m-p/4429282#M36784</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt; We are running "3comm" application (epic center) in Redhat Linux AS 4. &lt;BR /&gt;&lt;BR /&gt; This server is running in one of the AS400 partition.&lt;BR /&gt;&lt;BR /&gt; 2GB memory is allocated for this server.&lt;BR /&gt;&lt;BR /&gt; The memory is being utilized almost all.&lt;BR /&gt;&lt;BR /&gt; But if we restart the server, we can get 75% free memory. &lt;BR /&gt;&lt;BR /&gt; But after one or two days the whole memory is being userd again.&lt;BR /&gt;&lt;BR /&gt;Output of top command:&lt;BR /&gt;&lt;BR /&gt;top - 07:09:54 up 1 day, 21:50,  3 users,  load average: 0.00, 0.00, 0.00&lt;BR /&gt;Tasks: 150 total,   2 running, 148 sleeping,   0 stopped,   0 zombie&lt;BR /&gt;Cpu(s):  0.4% us,  0.7% sy,  0.0% ni, 96.2% id,  1.5% wa,  0.2% hi,  0.9% si&lt;BR /&gt;Mem:   2025420k total,  1340796k used,   684624k free,    48892k buffers&lt;BR /&gt;Swap:   522104k total,      236k used,   521868k free,   923236k cached&lt;BR /&gt;&lt;BR /&gt;  PID USER      PR  NI %CPU    TIME+  %MEM  VIRT  RES  SHR S COMMAND&lt;BR /&gt;  454 root      15   0    1  15:04.17  3.3     0    0    0 S bswlogprc&lt;BR /&gt; 4615 root      15   0    1   3:52.49  7.6  181m 150m  24m R emis&lt;BR /&gt;    1 root      16   0    0   0:00.12  0.0  1860  572  492 S init&lt;BR /&gt;    2 root      RT   0    0   0:00.04  0.0     0    0    0 S migration/0&lt;BR /&gt;    3 root      34  19    0   0:00.25  0.0     0    0    0 S ksoftirqd/0&lt;BR /&gt;    4 root      RT   0    0   0:00.04  0.0     0    0    0 S migration/1&lt;BR /&gt;    5 root      34  19    0   0:00.25  0.0     0    0    0 S ksoftirqd/1&lt;BR /&gt;    6 root       5 -10    0   0:00.00  0.0     0    0    0 S events/0&lt;BR /&gt;    7 root       5 -10    0   0:00.01  0.0     0    0    0 S events/1&lt;BR /&gt;    8 root       5 -10    0   0:00.00  0.0     0    0    0 S khelper&lt;BR /&gt;    9 root       5 -10    0   0:00.33  0.0     0    0    0 S kblockd/0&lt;BR /&gt;   10 root       5 -10    0   0:00.37  0.0     0    0    0 S kblockd/1&lt;BR /&gt;   11 root      25   0    0   0:00.00  0.0     0    0    0 S khubd&lt;BR /&gt;   39 root      15   0    0   0:00.02  0.0     0    0    0 S rtasd&lt;BR /&gt;   40 root      20   0    0   0:00.00  0.0     0    0    0 S pdflush&lt;BR /&gt;   41 root      15   0    0   0:17.66  0.0     0    0    0 S pdflush&lt;BR /&gt;   42 root      15   0    0   0:00.19  0.0     0    0    0 S kswapd2&lt;BR /&gt;   43 root      15   0    0   0:00.18  0.0     0    0    0 S kswapd1&lt;BR /&gt;   44 root      16   0    0   0:00.68  0.0     0    0    0 S kswapd0&lt;BR /&gt;   45 root       6 -10    0   0:00.00  0.0     0    0    0 S aio/0&lt;BR /&gt;   46 root       5 -10    0   0:00.00  0.0     0    0    0 S aio/1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pls find the attachment for the detailed report.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I think two process are taking memory that "bswlogprc" and "emis".&lt;BR /&gt;&lt;BR /&gt;Pls explain about "3.3" and "7.6" under %MEM for those two process.&lt;BR /&gt;&lt;BR /&gt;How to solve this process.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 May 2009 12:18:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/memory-is-being-used-much-in-linux/m-p/4429282#M36784</guid>
      <dc:creator>senthil_kumar_1</dc:creator>
      <dc:date>2009-05-29T12:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Memory is being used much in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/memory-is-being-used-much-in-linux/m-p/4429283#M36785</link>
      <description>Please see this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1029490" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1029490&lt;/A&gt;</description>
      <pubDate>Fri, 29 May 2009 12:28:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/memory-is-being-used-much-in-linux/m-p/4429283#M36785</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-05-29T12:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Memory is being used much in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/memory-is-being-used-much-in-linux/m-p/4429284#M36786</link>
      <description>Indeed, Linux is designed since its early releases to take all available memory for buffers until for example an application needs some memory pages.</description>
      <pubDate>Sat, 30 May 2009 19:49:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/memory-is-being-used-much-in-linux/m-p/4429284#M36786</guid>
      <dc:creator>B. Hulst</dc:creator>
      <dc:date>2009-05-30T19:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Memory is being used much in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/memory-is-being-used-much-in-linux/m-p/4429285#M36787</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;As i searched, In linux almost all the memories are reserved by Linux kernel as buffer and cache memory.&lt;BR /&gt;&lt;BR /&gt;So the top and free commands are showing the same like there are very less free memories available in Linux some time after starting the Linux server.&lt;BR /&gt;&lt;BR /&gt;So At this situation. can we use below command to find the percentage of total memory utilization and top 3 memory utilizing process.&lt;BR /&gt;&lt;BR /&gt;1)percentage of total memory utilization.&lt;BR /&gt;&lt;BR /&gt;[root@epiccenter2 ~]# ps -eo user,pid,pmem,comm | awk '{x += $3} END {print x}'&lt;BR /&gt;43.4&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2)top3 memory utilizing process:&lt;BR /&gt;&lt;BR /&gt;[root@epiccenter2 ~]# ps -eo user,pid,pmem,comm | sort -nrbk3 | head -3&lt;BR /&gt;root      4581 12.2 java.bin&lt;BR /&gt;root      4563  6.5 emis&lt;BR /&gt;root      4513  2.9 bswlogprc&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So can we use above commands to find the percentage of total memory utilization and top 3 memory utilizing process.&lt;BR /&gt;&lt;BR /&gt;Please give your suggestions.</description>
      <pubDate>Tue, 14 Jul 2009 14:42:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/memory-is-being-used-much-in-linux/m-p/4429285#M36787</guid>
      <dc:creator>senthil_kumar_1</dc:creator>
      <dc:date>2009-07-14T14:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Memory is being used much in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/memory-is-being-used-much-in-linux/m-p/4429286#M36788</link>
      <description>&lt;!--!*#--&gt;When trying to see where your memory is being used, IGNORE any numbers reported for &lt;BR /&gt;cache as that is the amount of memory used to cache open files.  When you close them the memory frees up, which explains why it all comes back when you reboot.  When linux does need more memory one of the places it will take it from the cache.&lt;BR /&gt;&lt;BR /&gt;As a previous note states, linux is designed to work this way.  If you had 256GB memory and opened enough files you would still have the same situation you currently have.&lt;BR /&gt;&lt;BR /&gt;Try running collectl and read (but not close) a large file.  You'll be able to see your cache grow and stay at that size.  Then delete the file and watch the cache shrink.&lt;BR /&gt;&lt;BR /&gt;-mark</description>
      <pubDate>Sat, 18 Jul 2009 11:09:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/memory-is-being-used-much-in-linux/m-p/4429286#M36788</guid>
      <dc:creator>MarkSeger</dc:creator>
      <dc:date>2009-07-18T11:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Memory is being used much in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/memory-is-being-used-much-in-linux/m-p/4429287#M36789</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Linux leaves spare memory in the buffer. You really have no problem unless you start seeing high memory use and low amount of buffer.&lt;BR /&gt;&lt;BR /&gt;In contrast to HP-UX, Linux can quickly move memory from buffer to other uses.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 19 Jul 2009 21:38:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/memory-is-being-used-much-in-linux/m-p/4429287#M36789</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-07-19T21:38:40Z</dc:date>
    </item>
  </channel>
</rss>

