<?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: Swapinfo - wrong output in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054786#M435490</link>
    <description>I've run sam, and in section about swap it says  that swap is on. So whay swap is not working?</description>
    <pubDate>Mon, 25 Jun 2007 10:10:57 GMT</pubDate>
    <dc:creator>Przemyslaw Fafara</dc:creator>
    <dc:date>2007-06-25T10:10:57Z</dc:date>
    <item>
      <title>Swapinfo - wrong output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054784#M435488</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;I've write simple app which is allocating a lot of memory - aprox 24x256MB. My serwer has 2GB of physical ram and 4GB of swap memory. When I run my app swapinfo shows strange output:&lt;BR /&gt;&lt;BR /&gt;# swapinfo -mta&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev        4096       0    4096    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -    4096   -4096&lt;BR /&gt;memory     2046    2045       1  100%&lt;BR /&gt;total      6142    6141       1  100%       -       0    -&lt;BR /&gt;&lt;BR /&gt;Whats the explanation of this?&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Przemek</description>
      <pubDate>Mon, 25 Jun 2007 09:51:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054784#M435488</guid>
      <dc:creator>Przemyslaw Fafara</dc:creator>
      <dc:date>2007-06-25T09:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo - wrong output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054785#M435489</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;HP-UX defines memory as RAM plus swap. It is treated as one pool and allocated as needed. When a process opens, it allocates swapspace, in the event that it needs to be swapped to disk.&lt;BR /&gt;&lt;BR /&gt;This output tells me you have 2 GB of ram, 100% used and 4 GB of swap, which is not used at all.&lt;BR /&gt;&lt;BR /&gt;The fact that swap is apparently not being used may be because your swap file is not active or is having disk problems.&lt;BR /&gt;&lt;BR /&gt;Further checks on the system are warranted.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 25 Jun 2007 09:56:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054785#M435489</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-06-25T09:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo - wrong output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054786#M435490</link>
      <description>I've run sam, and in section about swap it says  that swap is on. So whay swap is not working?</description>
      <pubDate>Mon, 25 Jun 2007 10:10:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054786#M435490</guid>
      <dc:creator>Przemyslaw Fafara</dc:creator>
      <dc:date>2007-06-25T10:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo - wrong output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054787#M435491</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;To activate swap requires a reboot.&lt;BR /&gt;&lt;BR /&gt;Take a look at /var/adm/syslog/syslog.log and /etc/rc.log&lt;BR /&gt;&lt;BR /&gt;Perhaps there was a problem at startup time.&lt;BR /&gt;&lt;BR /&gt;Also, it could simply be a display bug in swapinfo. Has the system been updated with a normal bi-annual patch update?&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 25 Jun 2007 10:14:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054787#M435491</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-06-25T10:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo - wrong output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054788#M435492</link>
      <description>There is nothing wrong. You are using malloc() or calloc() either directly or indirectly in your code and the space is being reserved which means that it hasn't actually been allocated from your swap areas. If you now tried to assign values to these dynamically allocated variables that would trigger page faults which would in turn trigger the actual swap usage. It's a "just in time" swap usage scheme.</description>
      <pubDate>Mon, 25 Jun 2007 10:23:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054788#M435492</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-06-25T10:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo - wrong output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054789#M435493</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;System was rebooted and nothing has changed. I have two version's of HPUX system. 11.11 with goldpack running on C-class and 11.23 running on rp4400. On both systems situation is the same. In logs there are no error messages. I have no idea whats cause the problem.&lt;BR /&gt;&lt;BR /&gt;Przemek</description>
      <pubDate>Mon, 25 Jun 2007 10:30:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054789#M435493</guid>
      <dc:creator>Przemyslaw Fafara</dc:creator>
      <dc:date>2007-06-25T10:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo - wrong output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054790#M435494</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;To:  A. Clay Stephenson&lt;BR /&gt;&lt;BR /&gt;You were right. I only invoked malloc function without setting value. When I use memset swap usage was diffrent than 0%. Thank you for your help.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Przemek</description>
      <pubDate>Mon, 25 Jun 2007 10:42:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054790#M435494</guid>
      <dc:creator>Przemyslaw Fafara</dc:creator>
      <dc:date>2007-06-25T10:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Swapinfo - wrong output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054791#M435495</link>
      <description>Problem solved.</description>
      <pubDate>Mon, 25 Jun 2007 10:43:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapinfo-wrong-output/m-p/5054791#M435495</guid>
      <dc:creator>Przemyslaw Fafara</dc:creator>
      <dc:date>2007-06-25T10:43:58Z</dc:date>
    </item>
  </channel>
</rss>

