<?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: How to see the memory usage for each process in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-see-the-memory-usage-for-each-process/m-p/3610277#M19290</link>
    <description>&lt;BR /&gt;/etc/sysctl.conf is the easy way to have the values permanent in proc filesystem. &lt;BR /&gt;&lt;BR /&gt;There are different key values used for setting up each of your requirements (semaphore, sharedmemory). All these keys are available in /proc/sys/kernel directory.&lt;BR /&gt;&lt;BR /&gt;For ex: shmmax refers to maximum shared memory available to kernel, to set this value permanent then add a line to /etc/sysctl.conf like:&lt;BR /&gt;kernel.shmmax=&lt;YOUR required="" value=""&gt;&lt;BR /&gt;&lt;BR /&gt;Read kernel documentation to find key names for each of your requirement. &lt;BR /&gt;&lt;BR /&gt;Another way is to directly updating proc file system from /etc/rc.local&lt;BR /&gt;eg:&lt;BR /&gt;echo &lt;YOUR required="" value=""&gt; &amp;gt; /proc/sys/kernel/shmmax&lt;BR /&gt;&lt;BR /&gt;add the above line to /etc/rc.local file, this file get called everytime system boots up thus effectively modifying the values as required. &lt;BR /&gt;&lt;BR /&gt;But word of warning, /etc/rc.local file is called only at the end of system start up (i.e. after all processes are started). if a process requires these updated values before they start, then make sure the process gets launched only from /etc/rc.local after all proc system modification is done. Hope I am clear in explaining this!&lt;BR /&gt;&lt;BR /&gt;/etc/sysctl.conf is called during first phase of system startup before any process are started, so sysctl is the ideal place to put these values in.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/YOUR&gt;&lt;/YOUR&gt;</description>
    <pubDate>Wed, 24 Aug 2005 07:04:40 GMT</pubDate>
    <dc:creator>Gopi Sekar</dc:creator>
    <dc:date>2005-08-24T07:04:40Z</dc:date>
    <item>
      <title>How to see the memory usage for each process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-see-the-memory-usage-for-each-process/m-p/3610272#M19285</link>
      <description>HI All&lt;BR /&gt;&lt;BR /&gt;How can see the mememory usage used by each process ...&lt;BR /&gt;The problem Iam facing  here  is &lt;BR /&gt;the memeory is been used completly by some process Though  the useres who has holding the memory has been logged out.&lt;BR /&gt;And also though the memory is used 100 % the &lt;BR /&gt;swap memory  usage is only 1% &lt;BR /&gt;&lt;BR /&gt;How can I make use of this swap memory &lt;BR /&gt;&lt;BR /&gt;OS version is Red hat LInux 9 &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Binu</description>
      <pubDate>Wed, 24 Aug 2005 01:31:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-see-the-memory-usage-for-each-process/m-p/3610272#M19285</guid>
      <dc:creator>Binu_5</dc:creator>
      <dc:date>2005-08-24T01:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to see the memory usage for each process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-see-the-memory-usage-for-each-process/m-p/3610273#M19286</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt; Refer this link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://rimuhosting.com/howto/memory.jsp" target="_blank"&gt;http://rimuhosting.com/howto/memory.jsp&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It has useful info for "Troubleshooting Memory Usage"</description>
      <pubDate>Wed, 24 Aug 2005 01:45:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-see-the-memory-usage-for-each-process/m-p/3610273#M19286</guid>
      <dc:creator>VEL_1</dc:creator>
      <dc:date>2005-08-24T01:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to see the memory usage for each process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-see-the-memory-usage-for-each-process/m-p/3610274#M19287</link>
      <description>&lt;BR /&gt;you can get the memory information through 'top' command or 'ps' command with proper options.&lt;BR /&gt;&lt;BR /&gt;If a process is died the memory is not immediately cleared and set as free (for performance), instead it will be set as unclaimed and any new process requiring memory will be allocated from this junk. so as such the used and free memory available is not true reflection of memory consumed.&lt;BR /&gt;&lt;BR /&gt;swap memory is used only incase RAM memory runs out and there is no RAM available for new process. using swap memory affects the system performance very badly, if a system does a lot of swapping then it means RAM is not enough and requires RAM upgrade. In your case you should be happy that swap is only 1% used which means you have enough RAM to run all process.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi</description>
      <pubDate>Wed, 24 Aug 2005 01:56:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-see-the-memory-usage-for-each-process/m-p/3610274#M19287</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-08-24T01:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to see the memory usage for each process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-see-the-memory-usage-for-each-process/m-p/3610275#M19288</link>
      <description>Binu,&lt;BR /&gt;&lt;BR /&gt;The command to see the memory usage of each progress is "ps -aux"</description>
      <pubDate>Wed, 24 Aug 2005 02:21:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-see-the-memory-usage-for-each-process/m-p/3610275#M19288</guid>
      <dc:creator>Roderik Hamers</dc:creator>
      <dc:date>2005-08-24T02:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to see the memory usage for each process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-see-the-memory-usage-for-each-process/m-p/3610276#M19289</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;The below  mentioned values are changing after the reboot...&lt;BR /&gt;Which are the file we should specify the &lt;BR /&gt;config other than /etc/sysctl&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------ Shared Memory Limits --------&lt;BR /&gt;max number of segments = 4096&lt;BR /&gt;max seg size (kbytes) = 524288&lt;BR /&gt;max total shared memory (kbytes) = 8388608&lt;BR /&gt;min seg size (bytes) = 1&lt;BR /&gt;&lt;BR /&gt;------ Semaphore Limits --------&lt;BR /&gt;max number of arrays = 128&lt;BR /&gt;max semaphores per array = 2000&lt;BR /&gt;max semaphores system wide = 32000&lt;BR /&gt;max ops per semop call = 32&lt;BR /&gt;semaphore max value = 32767&lt;BR /&gt;&lt;BR /&gt;------ Messages: Limits --------&lt;BR /&gt;max queues system wide = 1024&lt;BR /&gt;max size of message (bytes) = 8192&lt;BR /&gt;default max size of queue (bytes) = 16384&lt;BR /&gt;&lt;BR /&gt;Also ps -aux doesnt show much memory utilisation &lt;BR /&gt; But if we use  free command to check the memory usage it ishowing the full memory is being used  .&lt;BR /&gt;&lt;BR /&gt;[root@wiplx15 root]# free&lt;BR /&gt;             total       used       free     shared    buffers     cached&lt;BR /&gt;Mem:       3476884    3465252      11632          0     113120    3034912&lt;BR /&gt;-/+ buffers/cache:     317220    3159664&lt;BR /&gt;Swap:      8393952      88196    8305756&lt;BR /&gt;&lt;BR /&gt;How to flush the unused memory &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Binu&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Aug 2005 03:41:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-see-the-memory-usage-for-each-process/m-p/3610276#M19289</guid>
      <dc:creator>Binu_5</dc:creator>
      <dc:date>2005-08-24T03:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to see the memory usage for each process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-see-the-memory-usage-for-each-process/m-p/3610277#M19290</link>
      <description>&lt;BR /&gt;/etc/sysctl.conf is the easy way to have the values permanent in proc filesystem. &lt;BR /&gt;&lt;BR /&gt;There are different key values used for setting up each of your requirements (semaphore, sharedmemory). All these keys are available in /proc/sys/kernel directory.&lt;BR /&gt;&lt;BR /&gt;For ex: shmmax refers to maximum shared memory available to kernel, to set this value permanent then add a line to /etc/sysctl.conf like:&lt;BR /&gt;kernel.shmmax=&lt;YOUR required="" value=""&gt;&lt;BR /&gt;&lt;BR /&gt;Read kernel documentation to find key names for each of your requirement. &lt;BR /&gt;&lt;BR /&gt;Another way is to directly updating proc file system from /etc/rc.local&lt;BR /&gt;eg:&lt;BR /&gt;echo &lt;YOUR required="" value=""&gt; &amp;gt; /proc/sys/kernel/shmmax&lt;BR /&gt;&lt;BR /&gt;add the above line to /etc/rc.local file, this file get called everytime system boots up thus effectively modifying the values as required. &lt;BR /&gt;&lt;BR /&gt;But word of warning, /etc/rc.local file is called only at the end of system start up (i.e. after all processes are started). if a process requires these updated values before they start, then make sure the process gets launched only from /etc/rc.local after all proc system modification is done. Hope I am clear in explaining this!&lt;BR /&gt;&lt;BR /&gt;/etc/sysctl.conf is called during first phase of system startup before any process are started, so sysctl is the ideal place to put these values in.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/YOUR&gt;&lt;/YOUR&gt;</description>
      <pubDate>Wed, 24 Aug 2005 07:04:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-see-the-memory-usage-for-each-process/m-p/3610277#M19290</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-08-24T07:04:40Z</dc:date>
    </item>
  </channel>
</rss>

