<?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 calculate user memory, system memory and buffer cache values? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-calculate-user-memory-system-memory-and-buffer-cache/m-p/2476942#M776409</link>
    <description>from: ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/coolscripts/memsize.c&lt;BR /&gt;&lt;BR /&gt;/* Get actual memory size in bytes */&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;main()&lt;BR /&gt;{&lt;BR /&gt;  struct pst_static buf;&lt;BR /&gt;  pstat_getstatic(&amp;amp;buf,sizeof(struct pst_static),1,0);&lt;BR /&gt;  printf("%u\n",buf.physical_memory*buf.page_size);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/SYS&gt;&lt;/STDIO.H&gt;</description>
    <pubDate>Fri, 29 Dec 2000 19:28:20 GMT</pubDate>
    <dc:creator>Curtis Larson</dc:creator>
    <dc:date>2000-12-29T19:28:20Z</dc:date>
    <item>
      <title>How to calculate user memory, system memory and buffer cache values?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-calculate-user-memory-system-memory-and-buffer-cache/m-p/2476940#M776407</link>
      <description>Can somebody please help me to determine user memory, system memory and buffer cache info, similar to what glance provides using the pstat functions or any other C functions (excluding system()).  I want to be able to complete my C program (see attachment) to retrieve all this information without using sysdef, glance etc..&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any assistance.</description>
      <pubDate>Wed, 27 Dec 2000 23:45:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-calculate-user-memory-system-memory-and-buffer-cache/m-p/2476940#M776407</guid>
      <dc:creator>Roger Jackson</dc:creator>
      <dc:date>2000-12-27T23:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate user memory, system memory and buffer cache values?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-calculate-user-memory-system-memory-and-buffer-cache/m-p/2476941#M776408</link>
      <description>Try running dmesg command from root.  Probably the output helps you.</description>
      <pubDate>Fri, 29 Dec 2000 13:48:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-calculate-user-memory-system-memory-and-buffer-cache/m-p/2476941#M776408</guid>
      <dc:creator>bhoopathi_1</dc:creator>
      <dc:date>2000-12-29T13:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate user memory, system memory and buffer cache values?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-calculate-user-memory-system-memory-and-buffer-cache/m-p/2476942#M776409</link>
      <description>from: ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/coolscripts/memsize.c&lt;BR /&gt;&lt;BR /&gt;/* Get actual memory size in bytes */&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;main()&lt;BR /&gt;{&lt;BR /&gt;  struct pst_static buf;&lt;BR /&gt;  pstat_getstatic(&amp;amp;buf,sizeof(struct pst_static),1,0);&lt;BR /&gt;  printf("%u\n",buf.physical_memory*buf.page_size);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/SYS&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Fri, 29 Dec 2000 19:28:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-calculate-user-memory-system-memory-and-buffer-cache/m-p/2476942#M776409</guid>
      <dc:creator>Curtis Larson</dc:creator>
      <dc:date>2000-12-29T19:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate user memory, system memory and buffer cache values?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-calculate-user-memory-system-memory-and-buffer-cache/m-p/2476943#M776410</link>
      <description>1.  Unfortunately, I'm not a system administrator and I don't have root access to run dmesg.&lt;BR /&gt;&lt;BR /&gt;2. I have been able to determine the real physical memory in my 'C' program already (refer to original attachment).  I just don't know which 'C' structures to use and/or calculations I need to perform to determine user memory, system memory and buffer cache values.&lt;BR /&gt;&lt;BR /&gt;Any other ideas?&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jan 2001 00:02:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-calculate-user-memory-system-memory-and-buffer-cache/m-p/2476943#M776410</guid>
      <dc:creator>Roger Jackson</dc:creator>
      <dc:date>2001-01-02T00:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate user memory, system memory and buffer cache values?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-calculate-user-memory-system-memory-and-buffer-cache/m-p/2476944#M776411</link>
      <description>Hi,&lt;BR /&gt;Pls try using "sar"...it has a wide variety of outputs....&lt;BR /&gt;Seconly "top" will also give you much information.&lt;BR /&gt;the typical uses are as below...&lt;BR /&gt;/bin/top -s 1&lt;BR /&gt;/bin/sar -k 2 2 &lt;BR /&gt;&lt;BR /&gt;I am searching more..as I know this might just not be suffice....;-))&lt;BR /&gt;&lt;BR /&gt;Suhas.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jan 2001 14:58:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-calculate-user-memory-system-memory-and-buffer-cache/m-p/2476944#M776411</guid>
      <dc:creator>Suhas_2</dc:creator>
      <dc:date>2001-01-02T14:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate user memory, system memory and buffer cache values?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-calculate-user-memory-system-memory-and-buffer-cache/m-p/2476945#M776412</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Use adb to extract real-time kernel information (eg. real-time user memory, system memory and buffer-cache usage) ie. # adb -k /stand/vmunix /dev/mem. &lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim&lt;BR /&gt;Brainbench MVP for Unix Admin &lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Wed, 03 Jan 2001 06:31:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-calculate-user-memory-system-memory-and-buffer-cache/m-p/2476945#M776412</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-01-03T06:31:01Z</dc:date>
    </item>
  </channel>
</rss>

