<?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: swap space question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244392#M330461</link>
    <description>one of my users is running some perl program and it keeps on crashing with the following error:-&lt;BR /&gt;&lt;BR /&gt;Unable to fork: Not enough space&lt;BR /&gt;&lt;BR /&gt;and as you can see its not a swap space issue.</description>
    <pubDate>Fri, 01 Aug 2008 15:20:18 GMT</pubDate>
    <dc:creator>Nyck_1</dc:creator>
    <dc:date>2008-08-01T15:20:18Z</dc:date>
    <item>
      <title>swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244383#M330452</link>
      <description>When I go into sam and look at system properties its telling me that I only have 248MB of available swap, but when I run swapinfo -tam its telling me different:-&lt;BR /&gt;&lt;BR /&gt;swapinfo -tam&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       16384       0   16384    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -   15920  -15920&lt;BR /&gt;memory    65506   17798   47708   27%&lt;BR /&gt;total     81890   33718   48172   41%       -       0    -&lt;BR /&gt;&lt;BR /&gt;According to the above I'm not even using any swap, what is going on here?</description>
      <pubDate>Fri, 01 Aug 2008 07:04:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244383#M330452</guid>
      <dc:creator>Nyck_1</dc:creator>
      <dc:date>2008-08-01T07:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244384#M330453</link>
      <description>o dev line(s): &lt;BR /&gt;     + are the actual physical swap device(s)  &lt;BR /&gt;     + show if swapping has actually occurred. In other words, the  PCT USED column in the dev lines represents the value last attained during a previous period of swapping. &lt;BR /&gt;&lt;BR /&gt;This is analogous to the high-water mark that a flood leaves.  &lt;BR /&gt;     + to check to see if swapping is currently occuring, use 'vmstat -v 5 5' to see if the 'po' (page outs) is sustained above 0.  &lt;BR /&gt;   o reserve line(s) &lt;BR /&gt;     + indicate how much of the swap device(s) has(have) been set aside for memory should it need to be swapped.  &lt;BR /&gt;   o memory line: &lt;BR /&gt;     + indicative of how much of pseudo-swap has been reserved  &lt;BR /&gt;     + when present, indicates  pseudo-swap is enabled   (i.e.  swapmem_on kernel paraemter is set to 1, which  is the default.) The size of pseudoswap is calculated to be 75% of the size of RAM (a.k.a. memory.)  In other words, it does not refer to acual physical memory use.  Pseudo-swap was designed specifically for large memory systems for which actual swapping is never (or rarely) expected to occur, so thereâ  s less need to use actual physical disk space for swap. For more information, see swapmem_on(5) , which reads.&lt;BR /&gt;&lt;BR /&gt;o total line: &lt;BR /&gt;+ the PCT USED value shown in the total line indicates how much swap space has been actually reserved for swap. When this percentage gets near 100%, processes will not start up (unable to fork process) and new shared memory segments can not be created.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Aug 2008 07:19:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244384#M330453</guid>
      <dc:creator>Anka</dc:creator>
      <dc:date>2008-08-01T07:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244385#M330454</link>
      <description>&amp;gt;According to the above I'm not even using any swap, what is going on here?&lt;BR /&gt;&lt;BR /&gt;SAM is correct if it means "device" swap.&lt;BR /&gt;As Anka says, you have reserved all of that device swap but haven't written any of it.&lt;BR /&gt;You still have lots of pseudo-swap.  And 48 Gb of unallocated total swap.</description>
      <pubDate>Fri, 01 Aug 2008 08:07:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244385#M330454</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-01T08:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244386#M330455</link>
      <description>This makes a lot more sense now, cheers as usual for the excellent responses!&lt;BR /&gt;&lt;BR /&gt;This server currently has 64GB of ram &amp;amp; 16GB of swap, would you recommend I allocate some more swap or leave it to see how it goes?</description>
      <pubDate>Fri, 01 Aug 2008 08:11:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244386#M330455</guid>
      <dc:creator>Nyck_1</dc:creator>
      <dc:date>2008-08-01T08:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244387#M330456</link>
      <description>I think that would depend on the workload. If the swap space usage remain at &amp;lt; 90% during peak run, then, there is no need to allocate more swap.</description>
      <pubDate>Fri, 01 Aug 2008 08:32:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244387#M330456</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2008-08-01T08:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244388#M330457</link>
      <description>One of my users has come back with the following with regard to this swap question I had:-&lt;BR /&gt;&lt;BR /&gt;The total field (virtual memory) includes physical memory and physical swap space. So even though the system has available virtual memory (total == physical memory + physical swap), it can't reserve any more space for new processes as all of the 16GB of physical swap space has been reserved already for existing processes.&lt;BR /&gt;&lt;BR /&gt;Would you agree with this statement?&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Fri, 01 Aug 2008 13:50:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244388#M330457</guid>
      <dc:creator>Nyck_1</dc:creator>
      <dc:date>2008-08-01T13:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244389#M330458</link>
      <description>No, because the "memory" line in swapinfo's output is memory *swap* not physical memory. They aren't the same thing.&lt;BR /&gt;&lt;BR /&gt;It is entirely possible to have tons of memory swap available and have no (well, hopefully little.. the system should try to avoid freemem 0 situations) free pages of RAM available (all it takes is enough device/FS swap to handle the virtual side and enough pages touched to require all the RAM).&lt;BR /&gt;&lt;BR /&gt;Similarly, it is entirely possible to have tons of RAM available and be out of memory swap (though you should be out of swap as a whole) -- just eat enough virtual address space.&lt;BR /&gt;&lt;BR /&gt;What is correct in that statement is that the system total virtual address space is determined partly by the total swap available on HP-UX. Exceptions are objects that use Lazy Swap reservation (rare except for Stacks on IPF), and virtual objects which are backed by existing files on a filesystem and whose changes should be visible in the file (since you can always "swap" to the file -- you don't need explicit swap there).&lt;BR /&gt;&lt;BR /&gt;But as long as you have swap available, either device, FS or memory swap -- swap reservations will use it. Restricting the system to device swap would make memory swap completely pointless.</description>
      <pubDate>Fri, 01 Aug 2008 14:55:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244389#M330458</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2008-08-01T14:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244390#M330459</link>
      <description>This is what I currently have now:-&lt;BR /&gt;&lt;BR /&gt;swapinfo -tam&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       16384       0   16384    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -   16260  -16260&lt;BR /&gt;memory    65506   22471   43035   34%&lt;BR /&gt;total     81890   38731   43159   47%       -       0    -&lt;BR /&gt;&lt;BR /&gt;So from the above output I'm assuming all is ok for the moment, would you agree?&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Aug 2008 15:06:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244390#M330459</guid>
      <dc:creator>Nyck_1</dc:creator>
      <dc:date>2008-08-01T15:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244391#M330460</link>
      <description>As long as you don't need to create over 43Gb of virtual objects, sure. Certainly I wouldn't be worried at this point unless I knew I was about to try to bring up a 48Gb Oracle SGA or something.</description>
      <pubDate>Fri, 01 Aug 2008 15:15:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244391#M330460</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2008-08-01T15:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244392#M330461</link>
      <description>one of my users is running some perl program and it keeps on crashing with the following error:-&lt;BR /&gt;&lt;BR /&gt;Unable to fork: Not enough space&lt;BR /&gt;&lt;BR /&gt;and as you can see its not a swap space issue.</description>
      <pubDate>Fri, 01 Aug 2008 15:20:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244392#M330461</guid>
      <dc:creator>Nyck_1</dc:creator>
      <dc:date>2008-08-01T15:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244393#M330462</link>
      <description>Presuming it isn't a fork bomb eating all the swap faster than you're monitoring it (and then going away), yes. Or that it doesn't malloc 48Gb or something nuts.&lt;BR /&gt;&lt;BR /&gt;This is when knowing your OS version is nice to double check.&lt;BR /&gt;&lt;BR /&gt;First question would be if there is anything special about this perl thing (besides is it a fork bomb, anyway) -- does it mlock memory? Is it a 64-bit process trying to fork a 32-bit child or vice-versa? Are Memory Windows in use in any way?&lt;BR /&gt;&lt;BR /&gt;ENOMEM can also be returned for corner cases where virtual objects can not be created for other reasons such as protection id exhaustion (is there a lot of mprotect() activity going on as well?), but usually this is all about the swap space.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Aug 2008 15:52:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244393#M330462</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2008-08-01T15:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244394#M330463</link>
      <description>Oh, and are you using PRM, WLM or gWLM or any type of resource paritioning products?</description>
      <pubDate>Fri, 01 Aug 2008 15:56:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244394#M330463</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2008-08-01T15:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244395#M330464</link>
      <description>The machine in question is used pretty hard and there are 48+ oracle instances running at most times. Chances are they ran this perl script in the middle of the day and it went all wrong.&lt;BR /&gt;&lt;BR /&gt;Someone mentioned the other day that they were unable to even run an ls.&lt;BR /&gt;&lt;BR /&gt;They have managed to run this perl script on a another server but this one is a 2 cpu, 8GB of ram and not being used that much. The one is failing on has 8 cpu's and 64gb of ram.</description>
      <pubDate>Fri, 01 Aug 2008 20:39:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244395#M330464</guid>
      <dc:creator>Nyck_1</dc:creator>
      <dc:date>2008-08-01T20:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244396#M330465</link>
      <description>No resource partition products being used.</description>
      <pubDate>Fri, 01 Aug 2008 20:40:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244396#M330465</guid>
      <dc:creator>Nyck_1</dc:creator>
      <dc:date>2008-08-01T20:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244397#M330466</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can you just double check the below parameters they are sufficient for your application requirement,since you have sufficient pages in psuedo swap for reserving and the systems is not even started paging .&lt;BR /&gt;&lt;BR /&gt;maxdsiz &lt;BR /&gt;maxdsiz_64bit&lt;BR /&gt;maxssiz&lt;BR /&gt;maxssiz_64bit&lt;BR /&gt;maxtsiz&lt;BR /&gt;maxtsiz_64bit&lt;BR /&gt;&lt;BR /&gt;Aneesh</description>
      <pubDate>Sat, 02 Aug 2008 06:46:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244397#M330466</guid>
      <dc:creator>Sreejith Kaliyam</dc:creator>
      <dc:date>2008-08-02T06:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244398#M330467</link>
      <description>&amp;gt;they were unable to even run an ls.&lt;BR /&gt;&lt;BR /&gt;That would be a good time to get the swapinfo data but they may have to try several times.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Aneesh: Can you just double check the below parameters they are sufficient for your application requirement&lt;BR /&gt;&lt;BR /&gt;That wouldn't explain ls(1) above or the fact if it works some times.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;you have sufficient pages in pseudo swap&lt;BR /&gt;&lt;BR /&gt;We don't know this is still true, when there is a problem.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;maxdsiz maxdsiz_64bit&lt;BR /&gt;&lt;BR /&gt;Yes, if it isn't a fork bomb.  But won't cause a fork issue, only malloc does that.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;maxssiz&lt;BR /&gt;&lt;BR /&gt;This will reduce the heap area.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;maxtsiz maxtsiz_64bit&lt;BR /&gt;&lt;BR /&gt;You should never have to worry about these.</description>
      <pubDate>Sat, 02 Aug 2008 07:42:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244398#M330467</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-02T07:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244399#M330468</link>
      <description>The "cannot fork, not enough space" error is most often caused by a shortage of virtual memory or swap space.&lt;BR /&gt;&lt;BR /&gt;When a process is spawned, the kernel will check virtual memory to see if there is space to accommodate the process. First the kernel checks that there is enough RAM available for the new process to run, that is not locked by other processes or used by the kernel. Then the kernel checks to make sure that the new process is able to reserve enough space in the swap area. &lt;BR /&gt;&lt;BR /&gt;But as you have enough free swap because of the pseudo swap then i suppose it should not be the issue.&lt;BR /&gt;&lt;BR /&gt;It will be good idea to check the free memory with "glance" before you run the perl script....or arround the time it terminates....&lt;BR /&gt;At the same time also #vmstat 1 10 ....pi/po&lt;BR /&gt;&lt;BR /&gt;What HP-UX version do you have?&lt;BR /&gt;&lt;BR /&gt;It also does not harm if you add an addtitional swap device - just for test purposes.</description>
      <pubDate>Sat, 02 Aug 2008 10:32:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244399#M330468</guid>
      <dc:creator>Anka</dc:creator>
      <dc:date>2008-08-02T10:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: swap space question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244400#M330469</link>
      <description>All seems to be fixed now!&lt;BR /&gt;&lt;BR /&gt;I had increased some kernel parameters earlier in the week and rebooted this server and there were also some other ones pending that required a reboot.&lt;BR /&gt;&lt;BR /&gt;From what I understand is that the guy who had the issue might of been doing something wrong as no one else actually had this issue. So its one of those problems that gets fixed and your not 100% sure what actually fixed it.&lt;BR /&gt;&lt;BR /&gt;The server in question is running 11.23.&lt;BR /&gt;&lt;BR /&gt;Thanks for all the excellent replys!</description>
      <pubDate>Tue, 05 Aug 2008 05:45:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-space-question/m-p/4244400#M330469</guid>
      <dc:creator>Nyck_1</dc:creator>
      <dc:date>2008-08-05T05:45:48Z</dc:date>
    </item>
  </channel>
</rss>

