<?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: cannot fork: no swap space in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629491#M40718</link>
    <description>Tom, &lt;BR /&gt;&lt;BR /&gt;It appears you have run out of swap.  to confirm this, run &lt;BR /&gt;&lt;BR /&gt;swapinfo -tam&lt;BR /&gt;&lt;BR /&gt;you will get out put like this&lt;BR /&gt;&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        8000       0    8000    0%       0       -    1  /dev/vg00/lvol11&lt;BR /&gt;dev         256       0     256    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -    5810   -5810&lt;BR /&gt;memory     9817    5816    4001   59%&lt;BR /&gt;total     18073   11626    6447   64%       -       0    -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you are at 100% you will need to add swap</description>
    <pubDate>Tue, 11 Dec 2001 15:50:42 GMT</pubDate>
    <dc:creator>Jeff Machols</dc:creator>
    <dc:date>2001-12-11T15:50:42Z</dc:date>
    <item>
      <title>cannot fork: no swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629490#M40717</link>
      <description>I have a L3000 running HP-UX 11 with 4GB mem and 2GB swap.  The server is used to run 2 oracle 8I DBs (32bit). The PROD db SGA is about 880MB and the UAT db SGA is about 400MB.  To allow both BDs to run simalaniuosly I have implemented memory windows.  This has worked in the past on our DEV system.  &lt;BR /&gt;&lt;BR /&gt;The problem I am having is when ever we startup the UAT db wierd things happen.  The most resent is that the ping command won't work. It gives the following error:&lt;BR /&gt;&lt;BR /&gt;ora-prod:/oracle/orauat/8.1.7/dbs&amp;gt; ping ora-apps&lt;BR /&gt;/usr/bin/getmemwindow[29]: cannot fork: no swap space&lt;BR /&gt;PING ora-apps.westlongbranch.tellium.com: 64 byte packets&lt;BR /&gt;64 bytes from 192.168.28.64: icmp_seq=0. time=0. ms&lt;BR /&gt;64 bytes from 192.168.28.64: icmp_seq=1. time=0. ms&lt;BR /&gt;64 bytes from 192.168.28.64: icmp_seq=2. time=0. ms&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If anyone has an idea why this is happening I would greatly appreciate your help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;       Tom</description>
      <pubDate>Tue, 11 Dec 2001 15:46:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629490#M40717</guid>
      <dc:creator>Tom Sepka</dc:creator>
      <dc:date>2001-12-11T15:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: cannot fork: no swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629491#M40718</link>
      <description>Tom, &lt;BR /&gt;&lt;BR /&gt;It appears you have run out of swap.  to confirm this, run &lt;BR /&gt;&lt;BR /&gt;swapinfo -tam&lt;BR /&gt;&lt;BR /&gt;you will get out put like this&lt;BR /&gt;&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        8000       0    8000    0%       0       -    1  /dev/vg00/lvol11&lt;BR /&gt;dev         256       0     256    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -    5810   -5810&lt;BR /&gt;memory     9817    5816    4001   59%&lt;BR /&gt;total     18073   11626    6447   64%       -       0    -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you are at 100% you will need to add swap</description>
      <pubDate>Tue, 11 Dec 2001 15:50:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629491#M40718</guid>
      <dc:creator>Jeff Machols</dc:creator>
      <dc:date>2001-12-11T15:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: cannot fork: no swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629492#M40719</link>
      <description>According to this I should have plenty of swap available.&lt;BR /&gt;&lt;BR /&gt;# swapinfo -tan&lt;BR /&gt;             Kb      Kb      Kb   PCT  START/      Kb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev     4194304       0 4194304    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev     2097152       0 2097152    0%       0       -    1  /dev/vg00/lvol14&lt;BR /&gt;reserve       - 3170380 -3170380&lt;BR /&gt;total   6291456 3170380 3121076   50%       -       0    -&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Dec 2001 15:53:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629492#M40719</guid>
      <dc:creator>Tom Sepka</dc:creator>
      <dc:date>2001-12-11T15:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: cannot fork: no swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629493#M40720</link>
      <description>Hi Tom,&lt;BR /&gt;&lt;BR /&gt;Try these links,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/cki/bin/doc.pl/sid=7badd33201d78d8d00/screen=ckiDisplayDocument?docId=200000047771538" target="_blank"&gt;http://us-support.external.hp.com/cki/bin/doc.pl/sid=7badd33201d78d8d00/screen=ckiDisplayDocument?docId=200000047771538&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/cki/bin/doc.pl/sid=7badd33201d78d8d00/screen=ckiDisplayDocument?docId=200000056493259" target="_blank"&gt;http://us-support.external.hp.com/cki/bin/doc.pl/sid=7badd33201d78d8d00/screen=ckiDisplayDocument?docId=200000056493259&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Dec 2001 15:54:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629493#M40720</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-12-11T15:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: cannot fork: no swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629494#M40721</link>
      <description>Hi Tom:&lt;BR /&gt;&lt;BR /&gt;Swap space must be available in the event that a process *might* need it.  If you are memory rich, you could enable pseudo swap by setting the kernel parameter 'swapmem_on' to one.  This can be done with SAM but will require a reboot after the kernel is regenerated.&lt;BR /&gt;&lt;BR /&gt;Otherwise, you should setup some secondary device swap.  This can easily be done with SAM if you like.  Start by choosing a disk other than one where your primary swap resides (vg00) and configure an equal size device swap with a swap priority that is equal to your primary swap.  This will cause interleaving of swap I/O.&lt;BR /&gt;&lt;BR /&gt;To monitor swap utilization, use:&lt;BR /&gt;&lt;BR /&gt;# swapinfo -tam&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 11 Dec 2001 15:55:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629494#M40721</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-12-11T15:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: cannot fork: no swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629495#M40722</link>
      <description>I suspect that you have not enabled swapmem_on=1. In the case where you have more memory than swap (which is ok) you need to either enable pseudoswap or actually add swap. If you know, you are not actually going to swap you can augment your existing swap with filesystem swap at low priority. If you actually need to swap then devicve swap is your best answer.&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Dec 2001 15:56:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629495#M40722</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-12-11T15:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: cannot fork: no swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629496#M40723</link>
      <description>I concur with JRF and Clay, in that you should make the swapmem_on kernel parm 1 so that it is active.&lt;BR /&gt;&lt;BR /&gt;The thing I see though, is that you say in your original post that you have 2GB of swap, but your swapinfo output shows that you have 6GB of swap.  I assume the 6GB is accurate since swapinfo is showing that.  The next question is how much memory do you actually have?  Is it 4GB or is it more?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Dec 2001 16:02:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629496#M40723</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-12-11T16:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: cannot fork: no swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629497#M40724</link>
      <description>Sorry about the swapinfo it was wrong.  Below is the correct swapinfo from this server.&lt;BR /&gt;&lt;BR /&gt;             Kb      Kb      Kb   PCT  START/      Kb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev     2097152       0 2097152    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       - 1641728 -1641728&lt;BR /&gt;total   2097152 1641728  455424   78%       -       0    -&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Dec 2001 16:07:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629497#M40724</guid>
      <dc:creator>Tom Sepka</dc:creator>
      <dc:date>2001-12-11T16:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: cannot fork: no swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629498#M40725</link>
      <description>OK.  That's better.  With only 2GB of swap space, and with swapmem_on set to 0 (more than likely), and with 4GB of RAM, any process that starts that tries to reserve swap space will fail if it exceeds that 2GB that you have when it tries to reserve it.&lt;BR /&gt;&lt;BR /&gt;Your 2 solutions are:&lt;BR /&gt;&lt;BR /&gt;Set swapmem_on to 1 to enable RAM to exceed swap space.  This does require a reboot.&lt;BR /&gt;&lt;BR /&gt;Increase swap space to 4GB so it is the same size as RAM.  This can be done without a reboot.</description>
      <pubDate>Tue, 11 Dec 2001 16:14:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629498#M40725</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-12-11T16:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: cannot fork: no swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629499#M40726</link>
      <description>Turn on psudo swap by setting swapmem_on to 1 in the kernel parms.  This will rebuild the kernel and force a reboot.&lt;BR /&gt;&lt;BR /&gt;This will allocate phantom swap so that the need for actual swap space will be much lower.</description>
      <pubDate>Tue, 11 Dec 2001 16:40:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629499#M40726</guid>
      <dc:creator>John Bolene</dc:creator>
      <dc:date>2001-12-11T16:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: cannot fork: no swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629500#M40727</link>
      <description>I increased the swap space to 6GB, but swapinfo says that 0% is used. Is this normal?</description>
      <pubDate>Tue, 11 Dec 2001 17:52:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629500#M40727</guid>
      <dc:creator>Tom Sepka</dc:creator>
      <dc:date>2001-12-11T17:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: cannot fork: no swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629501#M40728</link>
      <description>You typically should see a 0% usage of swap space.  But you will probably see a fairly high number in the 'reserve' line of the swapinfo output.&lt;BR /&gt;&lt;BR /&gt;This is because each process reserves a portion of the swap space just in case it has to swap.  It doesn't actually use it unless it has to, which should be never because RAM is so cheap.  This is the beauty of the swapmem_on kernel parameter.  When you set this, it actually reserves swap space in memory.  Keep in mind that it does NOT use memory for this though.  This kernel parameter allows you to have less swap space than RAM, thus allowing you to free up precious disk space.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Dec 2001 18:10:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629501#M40728</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-12-11T18:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: cannot fork: no swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629502#M40729</link>
      <description>You won't use swap space until RAM has been exhausted.  However, in your listing:&lt;BR /&gt;&lt;BR /&gt;ora-prod:/oracle/orauat/8.1.7/dbs&amp;gt; ping ora-apps &lt;BR /&gt;/usr/bin/getmemwindow[29]: cannot fork: no swap space &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;getmemwindow indicates that you are running memory windows, something that allows old 32-bit applications to address an entire 32-bit address space independently from other applications. This is more likely an issue with the way memory has been laid out for memory windows rather than swap space.  &lt;BR /&gt;&lt;BR /&gt;Unfortunately, the error message does not indicate whether memory window #0 (the default 32-bit addressing space) is the culprit.  Since you started ping without any memory window directive, this is likely the case.  ping will run in the default window and it may indeed be due to the default memory window being used up.&lt;BR /&gt;&lt;BR /&gt;I would recommend that each instance of Oracle be run in a non-default memory window so that the #0 window will have lots of room for ordinary commands.</description>
      <pubDate>Tue, 11 Dec 2001 18:16:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629502#M40729</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-12-11T18:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: cannot fork: no swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629503#M40730</link>
      <description>Bill,&lt;BR /&gt;&lt;BR /&gt;With 4GB memory can I create more than 1 additional memory window?&lt;BR /&gt;&lt;BR /&gt;Currently I have max_mem_window set to 1. Below is output for this configuation.&lt;BR /&gt;&lt;BR /&gt;# memwin_stats -m&lt;BR /&gt;Shared Memory:&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP   UserKey   KernId&lt;BR /&gt;m       0 0x411c0626 --rw-rw-rw-      root      root    Global       0&lt;BR /&gt;m       1 0x4e0c0002 --rw-rw-rw-      root      root    Global       0&lt;BR /&gt;m       2 0x4120042c --rw-rw-rw-      root      root    Global       0&lt;BR /&gt;m   22531 0x5f1e6748 --rw-rw----   oraprod       dba       1         2&lt;BR /&gt;m   70148 0x930df460 --rw-rw----    orauat       dba    Global       0&lt;BR /&gt;# memwin_stats -w&lt;BR /&gt;Entry   USER_KEY KERN_KEY  QUAD2_AVAIL  QUAD3_AVAIL    PID    REFCNT&lt;BR /&gt;Memory Windows:&lt;BR /&gt;   0    Global         0     262144       152940    10516      212&lt;BR /&gt;   1   Private         1          0            0        0        1&lt;BR /&gt;   2         1         2     262144        45095    10541      177&lt;BR /&gt;# ipcs -ma&lt;BR /&gt;IPC status from /dev/kmem as of Tue Dec 11 13:38:29 2001&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP   CREATOR    CGROUP NATTCH  SEGSZ  CPID  LPID   ATIME    DTIME    CTIME &lt;BR /&gt;Shared Memory:&lt;BR /&gt;m       0 0x411c0626 --rw-rw-rw-      root      root      root      root      0    348   353   353  8:58:33  8:58:33  8:58:26&lt;BR /&gt;m       1 0x4e0c0002 --rw-rw-rw-      root      root      root      root      2  31040   353   355  3:05:12  8:58:33  8:58:26&lt;BR /&gt;m       2 0x4120042c --rw-rw-rw-      root      root      root      root      2   8192   353   355  3:05:12  8:58:26  8:58:26&lt;BR /&gt;m   22531 0x5f1e6748 --rw-rw----   oraprod       dba   oraprod       dba     88 889032704  3211 10559 13:38:28 13:38:28 17:14:24&lt;BR /&gt;m   70148 0x930df460 --rw-rw----    orauat       dba    orauat       dba     50 447250432  6586 10516 13:38:11 13:38:11 12:34:10&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Dec 2001 18:45:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629503#M40730</guid>
      <dc:creator>Tom Sepka</dc:creator>
      <dc:date>2001-12-11T18:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: cannot fork: no swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629504#M40731</link>
      <description>You can create a dozen memory windows.  The memory window does not allocate 3.75Gb per window--a memory window provides a private addressing space for 32bit programs which can extend to 3.75Gb (not all 3.75 is available to programs), and this is kept separate from other memory windows. &lt;BR /&gt;&lt;BR /&gt;The idea is to keep each instance of a large program separate from another copy so multiple copies do not have to share a single 3.75Gb area. Now having only 4Gb is going to be a big performance hit if you have four instances of Oracle that each need 1200 megs of RAM.  The instances will swap like crazy and performance will be awful.&lt;BR /&gt;&lt;BR /&gt;If you are going to use memory windows to allow multiple instances of the program to use all addressable memory, you'll need a lot more RAM to have acceptable performance.  If you change the programs to use only 500 megs each, then 4 copies should fit just fine but then memory windows would probably not be necessary.</description>
      <pubDate>Tue, 11 Dec 2001 19:22:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-fork-no-swap-space/m-p/2629504#M40731</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-12-11T19:22:40Z</dc:date>
    </item>
  </channel>
</rss>

