<?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 vmstat - getting memory and CPU utlization in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/vmstat-getting-memory-and-cpu-utlization/m-p/3610511#M19294</link>
    <description>HI,&lt;BR /&gt;I would like to get the memory used (in MB) for a particular running application with vmstat (see output from vmstat).&lt;BR /&gt;&lt;BR /&gt;I would like to obtain the active memory of a particular application by specifying the -a option:&lt;BR /&gt;bash-2.03$ vmstat -a 10 10&lt;BR /&gt;Usage: vmstat [-cipsS] [disk ...] [interval [count]]&lt;BR /&gt;bash-2.03$ vmstat -a 10 10&lt;BR /&gt;&lt;BR /&gt;May I know how I could obtain the active memory from vmstat? Also, I'd like to verify if by getting the active memory would tell me the amount of memory consumed(in MB) for an application?&lt;BR /&gt;&lt;BR /&gt;As for the CPU utilization for an application, do I refer to the "sys" or "usr" column under the heading "cpu" from the vmstat output?&lt;BR /&gt;&lt;BR /&gt;Could anyone help me out?&lt;BR /&gt;&lt;BR /&gt;Thanks   &lt;BR /&gt;</description>
    <pubDate>Wed, 24 Aug 2005 07:10:11 GMT</pubDate>
    <dc:creator>Danny Fang</dc:creator>
    <dc:date>2005-08-24T07:10:11Z</dc:date>
    <item>
      <title>vmstat - getting memory and CPU utlization</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vmstat-getting-memory-and-cpu-utlization/m-p/3610511#M19294</link>
      <description>HI,&lt;BR /&gt;I would like to get the memory used (in MB) for a particular running application with vmstat (see output from vmstat).&lt;BR /&gt;&lt;BR /&gt;I would like to obtain the active memory of a particular application by specifying the -a option:&lt;BR /&gt;bash-2.03$ vmstat -a 10 10&lt;BR /&gt;Usage: vmstat [-cipsS] [disk ...] [interval [count]]&lt;BR /&gt;bash-2.03$ vmstat -a 10 10&lt;BR /&gt;&lt;BR /&gt;May I know how I could obtain the active memory from vmstat? Also, I'd like to verify if by getting the active memory would tell me the amount of memory consumed(in MB) for an application?&lt;BR /&gt;&lt;BR /&gt;As for the CPU utilization for an application, do I refer to the "sys" or "usr" column under the heading "cpu" from the vmstat output?&lt;BR /&gt;&lt;BR /&gt;Could anyone help me out?&lt;BR /&gt;&lt;BR /&gt;Thanks   &lt;BR /&gt;</description>
      <pubDate>Wed, 24 Aug 2005 07:10:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vmstat-getting-memory-and-cpu-utlization/m-p/3610511#M19294</guid>
      <dc:creator>Danny Fang</dc:creator>
      <dc:date>2005-08-24T07:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: vmstat - getting memory and CPU utlization</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vmstat-getting-memory-and-cpu-utlization/m-p/3610512#M19295</link>
      <description>Hi Danny ,&lt;BR /&gt;&lt;BR /&gt;vmstat will give virtual memory statistics , and you can check paging/swapping and cpu usage as well.&lt;BR /&gt;&lt;BR /&gt;Use top command to check Memory usauge , for the processes. You can also use ps -ef , with grep  also , for top process.&lt;BR /&gt;&lt;BR /&gt;Cheers.&lt;BR /&gt;Raj&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Aug 2005 07:26:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vmstat-getting-memory-and-cpu-utlization/m-p/3610512#M19295</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-08-24T07:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: vmstat - getting memory and CPU utlization</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vmstat-getting-memory-and-cpu-utlization/m-p/3610513#M19296</link>
      <description>vmstat is not for calculating memory usage of a process. It is tool for looking at overall system memory usage.&lt;BR /&gt;&lt;BR /&gt;You can check a memeory usage of a process as follows.&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -C"process_name" -o "vsz,args,ppid,pid"&lt;BR /&gt;&lt;BR /&gt;The value of vsz is in KB.&lt;BR /&gt;you can also do&lt;BR /&gt;ps -lp"process_pid" and check SZ columns. (the value here is in pages. Ususally the page size is 4096 bytes)</description>
      <pubDate>Wed, 24 Aug 2005 07:56:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vmstat-getting-memory-and-cpu-utlization/m-p/3610513#M19296</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-08-24T07:56:03Z</dc:date>
    </item>
  </channel>
</rss>

