<?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: Getting swap space size by coding in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-swap-space-size-by-coding/m-p/2792358#M943544</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As plan B, swapinfo command only can be used as a root user and how do my application able to do it?&lt;BR /&gt;&lt;BR /&gt;And for plan A, i trying to refer to man pstat but really no idea how to use the command you suggested?&lt;BR /&gt;&lt;BR /&gt;For your information, I only need to get fixed value of swap space size. Means that I want value of total swap space size in local machine.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;-ck</description>
    <pubDate>Fri, 23 Aug 2002 00:43:11 GMT</pubDate>
    <dc:creator>yck</dc:creator>
    <dc:date>2002-08-23T00:43:11Z</dc:date>
    <item>
      <title>Getting swap space size by coding</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-swap-space-size-by-coding/m-p/2792356#M943542</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I need help in getting swap info. Is that possible to get swap space size in runtime by using C/C++ coding? If yes, how to do it?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;- ck</description>
      <pubDate>Fri, 23 Aug 2002 00:08:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-swap-space-size-by-coding/m-p/2792356#M943542</guid>
      <dc:creator>yck</dc:creator>
      <dc:date>2002-08-23T00:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting swap space size by coding</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-swap-space-size-by-coding/m-p/2792357#M943543</link>
      <description>Sure:&lt;BR /&gt;&lt;BR /&gt;Plan A. Use the pstat_getswap() system call. Man pstat for details.&lt;BR /&gt;&lt;BR /&gt;Plan B.&lt;BR /&gt;FILE *p;&lt;BR /&gt;&lt;BR /&gt;p = popen("swapinfo","r");&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Aug 2002 00:21:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-swap-space-size-by-coding/m-p/2792357#M943543</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-08-23T00:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting swap space size by coding</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-swap-space-size-by-coding/m-p/2792358#M943544</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As plan B, swapinfo command only can be used as a root user and how do my application able to do it?&lt;BR /&gt;&lt;BR /&gt;And for plan A, i trying to refer to man pstat but really no idea how to use the command you suggested?&lt;BR /&gt;&lt;BR /&gt;For your information, I only need to get fixed value of swap space size. Means that I want value of total swap space size in local machine.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;-ck</description>
      <pubDate>Fri, 23 Aug 2002 00:43:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-swap-space-size-by-coding/m-p/2792358#M943544</guid>
      <dc:creator>yck</dc:creator>
      <dc:date>2002-08-23T00:43:11Z</dc:date>
    </item>
  </channel>
</rss>

