<?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: Process related memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/process-related-memory/m-p/3042039#M134512</link>
    <description>process size:&lt;BR /&gt;# UNIX95= ps -eo "pid ruser pcpu vsz=Kbytes" -o comm&lt;BR /&gt;Note:&lt;BR /&gt;vsz:   The size in kilobytes (1024 byte units) of the core image of the process.  See column sz, above.&lt;BR /&gt;</description>
    <pubDate>Tue, 05 Aug 2003 23:05:38 GMT</pubDate>
    <dc:creator>twang</dc:creator>
    <dc:date>2003-08-05T23:05:38Z</dc:date>
    <item>
      <title>Process related memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-related-memory/m-p/3042036#M134509</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I would like to know the following about a process:&lt;BR /&gt;   1. Physical memory&lt;BR /&gt;   2. Shared memory&lt;BR /&gt;   3. Virtual memory&lt;BR /&gt;   4. Virtual shared memory&lt;BR /&gt;&lt;BR /&gt;Any pointers will be really helpful.&lt;BR /&gt;&lt;BR /&gt;Thanks and regards&lt;BR /&gt;Sonison James</description>
      <pubDate>Tue, 05 Aug 2003 22:44:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-related-memory/m-p/3042036#M134509</guid>
      <dc:creator>Sonison James</dc:creator>
      <dc:date>2003-08-05T22:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Process related memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-related-memory/m-p/3042037#M134510</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Glance is the best tool for this. If you don't have it installed you can get a 60 day free trial.  Its on the application CD's.&lt;BR /&gt;&lt;BR /&gt;Alternatively use:&lt;BR /&gt;# UNIX95= ps -el -o pid,comm,sz,vsz| grep -i -v pid | sort -nr -k 3,3 |head -15&lt;BR /&gt;&lt;BR /&gt;This will give you the top 15 memory usage processes.&lt;BR /&gt;&lt;BR /&gt;Other useful commands/tools:&lt;BR /&gt;# ipcs -mob&lt;BR /&gt;Shows shared memory utilisation.&lt;BR /&gt;Also have a look at shminfo utility.  This does come with HP-UX but can be downloaded from the internet.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Con</description>
      <pubDate>Tue, 05 Aug 2003 22:58:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-related-memory/m-p/3042037#M134510</guid>
      <dc:creator>Con O'Kelly</dc:creator>
      <dc:date>2003-08-05T22:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Process related memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-related-memory/m-p/3042038#M134511</link>
      <description>Sorry, meant to say shminfo does not come with HP-UX.&lt;BR /&gt;&lt;BR /&gt;Download shminfo from:&lt;BR /&gt;&lt;A href="ftp://hprc.external.hp.com/sysadmin/programs/shminfo/" target="_blank"&gt;ftp://hprc.external.hp.com/sysadmin/programs/shminfo/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Con</description>
      <pubDate>Tue, 05 Aug 2003 23:03:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-related-memory/m-p/3042038#M134511</guid>
      <dc:creator>Con O'Kelly</dc:creator>
      <dc:date>2003-08-05T23:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Process related memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-related-memory/m-p/3042039#M134512</link>
      <description>process size:&lt;BR /&gt;# UNIX95= ps -eo "pid ruser pcpu vsz=Kbytes" -o comm&lt;BR /&gt;Note:&lt;BR /&gt;vsz:   The size in kilobytes (1024 byte units) of the core image of the process.  See column sz, above.&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Aug 2003 23:05:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-related-memory/m-p/3042039#M134512</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-08-05T23:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Process related memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-related-memory/m-p/3042040#M134513</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am sorry, I forgot to mention that I would like to find the information programatically. I found a structure "pst_status" that is populated by pstat_getproc(), but I am not sure if it returns what I am looking for.&lt;BR /&gt;&lt;BR /&gt;Thanks and regards&lt;BR /&gt;Sonison James</description>
      <pubDate>Tue, 05 Aug 2003 23:05:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-related-memory/m-p/3042040#M134513</guid>
      <dc:creator>Sonison James</dc:creator>
      <dc:date>2003-08-05T23:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Process related memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-related-memory/m-p/3042041#M134514</link>
      <description>#include &lt;SYS&gt; &lt;BR /&gt;#include &lt;SYS&gt; &lt;BR /&gt;&lt;BR /&gt;main (argc, argv) &lt;BR /&gt;int argc; &lt;BR /&gt;char *argv[]; &lt;BR /&gt;{ &lt;BR /&gt;struct pst_status pst; &lt;BR /&gt;int target = atoi(argv[1]); &lt;BR /&gt;&lt;BR /&gt;if (pstat_getproc(&amp;amp;pst, sizeof(pst), (size_t)0, target) != -1)&lt;BR /&gt;{&lt;BR /&gt;(void)printf("Process %d started at %sand size is %d\n", target, ctime(&amp;amp;pst.pst_&lt;BR /&gt;start), sizeof(pst)); &lt;BR /&gt;}&lt;BR /&gt;else &lt;BR /&gt;{ &lt;BR /&gt;perror("pstat_getproc"); &lt;BR /&gt;}&lt;BR /&gt;} &lt;BR /&gt;&lt;/SYS&gt;&lt;/SYS&gt;</description>
      <pubDate>Wed, 06 Aug 2003 00:02:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-related-memory/m-p/3042041#M134514</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-08-06T00:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Process related memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-related-memory/m-p/3042042#M134515</link>
      <description>Here are a couple examples that report process sizes using pstat functions.  The procvm_sizes.c program reports absolute sizes of all regions.&lt;BR /&gt;&lt;BR /&gt;The procvm_sizes_glance.c program discounts the physical memory size of shared memory segments.  It divides those sizes by the total number of references to each shared memory region by all processes on the system.  That mimics the way that glance reports shared memory sizes.</description>
      <pubDate>Thu, 07 Aug 2003 17:43:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-related-memory/m-p/3042042#M134515</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2003-08-07T17:43:01Z</dc:date>
    </item>
  </channel>
</rss>

