<?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 footprint command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966940#M119623</link>
    <description>Hi Clay,&lt;BR /&gt;&lt;BR /&gt;Does the vsz option give us the virtual memory size or the real-memory (resident set) size? Is there any other option we can use to get the other memory size in kilobytes?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.&lt;BR /&gt;&lt;BR /&gt;Wei</description>
    <pubDate>Wed, 07 May 2003 15:12:08 GMT</pubDate>
    <dc:creator>Wei Pao</dc:creator>
    <dc:date>2003-05-07T15:12:08Z</dc:date>
    <item>
      <title>Memory footprint command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966938#M119621</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Is there a HP-UX command that can be used to find out the memory footprint (resident set size) of a process?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;WP</description>
      <pubDate>Tue, 06 May 2003 20:44:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966938#M119621</guid>
      <dc:creator>Wei Pao</dc:creator>
      <dc:date>2003-05-06T20:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Memory footprint command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966939#M119622</link>
      <description>You can do this with  Glance very easily but this should suffice:&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -o vsz -p PID&lt;BR /&gt;&lt;BR /&gt;notice the space after UNIX95= . That's important to define the XPG4 behavior of ps. Man ps for details.&lt;BR /&gt;</description>
      <pubDate>Tue, 06 May 2003 21:02:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966939#M119622</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-05-06T21:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Memory footprint command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966940#M119623</link>
      <description>Hi Clay,&lt;BR /&gt;&lt;BR /&gt;Does the vsz option give us the virtual memory size or the real-memory (resident set) size? Is there any other option we can use to get the other memory size in kilobytes?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.&lt;BR /&gt;&lt;BR /&gt;Wei</description>
      <pubDate>Wed, 07 May 2003 15:12:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966940#M119623</guid>
      <dc:creator>Wei Pao</dc:creator>
      <dc:date>2003-05-07T15:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Memory footprint command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966941#M119624</link>
      <description>The ps command only counts the size of the text, data, and stack regions.  It can report a much smaller number than glance, which also counts shared libraries, shared and private mmap regions, and SYSV shared memory regions.&lt;BR /&gt;  The ps option for resident set size is -o sz instead of -o vsz.  The -sz report is RAM size measured in 4K pages.  The -vsz report is virtual size reported in 1K units.&lt;BR /&gt;  Shared regions make accounting more complicated.  Glance discounts shared memory size by dividing by the total number of times a shared region is mapped.&lt;BR /&gt;  The attached programs use pstat_getprocvm system calls to find the resident set size of all memory regions and then total them up.  The procvm_sizes program counts shared regions as full size.  The procvm_sizes_glance program discounts shared region sizes the same way glance does.</description>
      <pubDate>Wed, 07 May 2003 15:31:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966941#M119624</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2003-05-07T15:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Memory footprint command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966942#M119625</link>
      <description>Hmm, my attachment didn't stick.&lt;BR /&gt;Here is another try.</description>
      <pubDate>Wed, 07 May 2003 15:46:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966942#M119625</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2003-05-07T15:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Memory footprint command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966943#M119626</link>
      <description>Thank you, Mike!&lt;BR /&gt;&lt;BR /&gt;Wei</description>
      <pubDate>Wed, 07 May 2003 17:01:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966943#M119626</guid>
      <dc:creator>Wei Pao</dc:creator>
      <dc:date>2003-05-07T17:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Memory footprint command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966944#M119627</link>
      <description>Mike - how do you compile them?&lt;BR /&gt;&lt;BR /&gt;I tried with native CC:&lt;BR /&gt;&lt;BR /&gt; cc procvm_sizes.c&lt;BR /&gt;(Bundled) cc: "procvm_sizes.c", line 8: error 1705: Function prototypes are an ANSI feature.&lt;BR /&gt;(Bundled) cc: "procvm_sizes.c", line 44: error 1705: Function prototypes are an ANSI feature.&lt;BR /&gt;(Bundled) cc: "procvm_sizes.c", line 74: error 1705: Function prototypes are an ANSI feature.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Tried with gcc:&lt;BR /&gt;&lt;BR /&gt;gcc procvm_sizes.c&lt;BR /&gt;In file included from procvm_sizes.c:5:&lt;BR /&gt;/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: `__va__list' redefined&lt;BR /&gt;/usr/include/sys/stdsyms.h:422: warning: this is the location of the previous definition&lt;BR /&gt;In file included from procvm_sizes.c:6:&lt;BR /&gt;/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdlib.h:28: warning: `__va__list' redefined&lt;BR /&gt;/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: this is the location of the previous definition&lt;BR /&gt;as: "/var/tmp/ccuOC81b.s", line 28: error 1052: Directive name not recognized - NSUBSPA&lt;BR /&gt;as: "/var/tmp/ccuOC81b.s", line 229: error 1052: Directive name not recognized - NSUBSPA&lt;BR /&gt;as: "/var/tmp/ccuOC81b.s", line 387: error 1052: Directive name not recognized - NSUBSPA&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks...Geoff&lt;BR /&gt;</description>
      <pubDate>Wed, 07 May 2003 18:38:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966944#M119627</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2003-05-07T18:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Memory footprint command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966945#M119628</link>
      <description>I used "aCC" compiler. It worked.&lt;BR /&gt;However, "procvm_sizes_glance.c", line 122&lt;BR /&gt;                    s = malloc(sizeof(segment));&lt;BR /&gt;needs to be changed to&lt;BR /&gt;                    s = (shared_segment_struct *) malloc(sizeof(segment));&lt;BR /&gt;&lt;BR /&gt;Wei&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 May 2003 19:51:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966945#M119628</guid>
      <dc:creator>Wei Pao</dc:creator>
      <dc:date>2003-05-07T19:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Memory footprint command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966946#M119629</link>
      <description>Geoff,&lt;BR /&gt;&lt;BR /&gt;  I compile them with the HP ansi c compiler, /opt/ansic/bin/cc.  They use ansi features, so they will not compile with the bundled /usr/ccs/bin/cc that is only intended for rebuilding kernel configuration files.&lt;BR /&gt;&lt;BR /&gt;  They also compile fine for me with gcc.  It looks like you have a bad installation of gcc.  Perhaps you could get around the gcc header file warning by applying a header file patch such as PHCO_26111 and then reinstalling gcc.&lt;BR /&gt;The error seems to come from using an incompatible 'as' assembler instead of 'gas'.  You may find it easiest to install a new gcc from&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html" target="_blank"&gt;http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html&lt;/A&gt;</description>
      <pubDate>Wed, 07 May 2003 21:52:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966946#M119629</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2003-05-07T21:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Memory footprint command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966947#M119630</link>
      <description>Found my issue - the person who installed gcc on the system I put your code on - installed gcc 2.95 for 11.0 - on a 11.i box....removed it and installed the one on the link you provided - works fine.&lt;BR /&gt;&lt;BR /&gt;Thanks...Geoff</description>
      <pubDate>Thu, 08 May 2003 12:40:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-footprint-command/m-p/2966947#M119630</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2003-05-08T12:40:03Z</dc:date>
    </item>
  </channel>
</rss>

