<?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 swap reservation in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683107#M53499</link>
    <description>Hi, does anyone know why hpux requieres every&lt;BR /&gt;process to *reserve* swapspace?</description>
    <pubDate>Thu, 14 Mar 2002 13:47:10 GMT</pubDate>
    <dc:creator>Tore_1</dc:creator>
    <dc:date>2002-03-14T13:47:10Z</dc:date>
    <item>
      <title>swap reservation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683107#M53499</link>
      <description>Hi, does anyone know why hpux requieres every&lt;BR /&gt;process to *reserve* swapspace?</description>
      <pubDate>Thu, 14 Mar 2002 13:47:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683107#M53499</guid>
      <dc:creator>Tore_1</dc:creator>
      <dc:date>2002-03-14T13:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: swap reservation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683108#M53500</link>
      <description>It's a virtual memory system.&lt;BR /&gt;&lt;BR /&gt;If an app needs to be paged out to free up real mem, then it must be able to have the swap reserved.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;man swapinfo.&lt;BR /&gt;&lt;BR /&gt;You can also set swap mem on to false in the kernel and page in memory (useful if you have 100G of memory!)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Thu, 14 Mar 2002 13:50:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683108#M53500</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-03-14T13:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: swap reservation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683109#M53501</link>
      <description>i know, but why doesnt all unixes require swap&lt;BR /&gt;reservation?</description>
      <pubDate>Thu, 14 Mar 2002 13:54:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683109#M53501</guid>
      <dc:creator>Tore_1</dc:creator>
      <dc:date>2002-03-14T13:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: swap reservation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683110#M53502</link>
      <description>Hi Tore,&lt;BR /&gt;&lt;BR /&gt;swapping is needed if your memory is full with processes and there is no space available for more required processes. Then either whole processes ( swapping ) or pages ( paging ) are outsourced into swapspace. This should appear not very intensively or often, if so, you should add physical RAM to your computer. Swapping and paging is very slow compared with processes which are run directly out of RAM. But swapspace guarantees, that you are still able to act, if your RAM is fully occupied. Computers with up to a GB RAM it is a normal amount of swapspace round about two times total RAM amount.&lt;BR /&gt;&lt;BR /&gt;more information see:&lt;BR /&gt;&lt;BR /&gt;man swapinfo&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Thu, 14 Mar 2002 13:58:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683110#M53502</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-03-14T13:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: swap reservation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683111#M53503</link>
      <description>sory got the swap mem on wrong:&lt;BR /&gt;&lt;BR /&gt;kibo:root&amp;gt; kmtune | grep swap&lt;BR /&gt;allocate_fs_swapmap  0&lt;BR /&gt;maxswapchunks        512&lt;BR /&gt;nswapdev             10&lt;BR /&gt;nswapfs              10&lt;BR /&gt;remote_nfs_swap      0&lt;BR /&gt;swapmem_on           1&lt;BR /&gt;&lt;BR /&gt;See this link for more:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com//hpux/onlinedocs/os/KCparam.SwapMemOn.html" target="_blank"&gt;http://docs.hp.com//hpux/onlinedocs/os/KCparam.SwapMemOn.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Thu, 14 Mar 2002 14:00:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683111#M53503</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-03-14T14:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: swap reservation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683112#M53504</link>
      <description>say you have 1G ram, and 2G swap. If you put a 1,5 G memory load on the system, would it be usable? If not, why do you need 2G swap?</description>
      <pubDate>Thu, 14 Mar 2002 14:28:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683112#M53504</guid>
      <dc:creator>Tore_1</dc:creator>
      <dc:date>2002-03-14T14:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: swap reservation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683113#M53505</link>
      <description>Well, that depends on what your definition of "usable" is.  If you have already maxed out your 1GB of RAM and something comes in that needs 500MB, then processes in memory will start getting paged to disk to free up RAM.  When it comes back to time for those processes to run, something else will get paged out so the process coming in has memory to work with.&lt;BR /&gt;&lt;BR /&gt;Your system will still run, but things will be VERY VERY SLOW.&lt;BR /&gt;&lt;BR /&gt;Paging really should not be an issue today.  If you start using swap significantly, then you buy more RAM.  RAM is cheap!!!!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Mar 2002 14:33:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683113#M53505</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-03-14T14:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: swap reservation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683114#M53506</link>
      <description>If the kernel parameter swapmem_on is set to 1, which is in nearly all cases the most sensible thing to do, then (80% of) memory is included in the swapspace calculations. If swapmem_on is 1, the swapinfo(1M) output will have an extra "memory" line. (Note: Always use "swapinfo -t" and only/mainly look at the "total" line.)&lt;BR /&gt;&lt;BR /&gt;So for example if you have 1GB of RAM and 800MB of processes, the *disk* swap space is not *used* at all, so the "USED" field of the "dev" line(s) would be zero and there would be *no* disk *activity*.&lt;BR /&gt;&lt;BR /&gt;If you have HP-UX 11.X, you may also want to read the section on "Lazy Swap" in the Release Notes (/usr/share/11.00RelNotes). Note however that that is for very specific cases, while swapmem_on addresses the more general cases.&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Mar 2002 11:08:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683114#M53506</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-03-15T11:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: swap reservation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683115#M53507</link>
      <description>It is the system's way of making sure that it will not start a process that it will not be able to swap out at a later point in time.  If there is no memory pressure then yea, set swapmen_on to 1.  That will keep you from wasting disk space to reserve swap that is never used.  If you programs are reserving a large amount of swapspace compared to how much is actually they actually end up using then I would look into lazy swap (an attribute of the exectuable).  I would read up and test before implementing first.  See man page for chatr,also see white pages for HP_UX memory management and process management.&lt;BR /&gt;Only if you are experiencing memory pressure do you need more ram (it did not sound like you were).</description>
      <pubDate>Tue, 18 Feb 2003 19:44:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683115#M53507</guid>
      <dc:creator>William Lara</dc:creator>
      <dc:date>2003-02-18T19:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: swap reservation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683116#M53508</link>
      <description>Hi Tore,&lt;BR /&gt;&lt;BR /&gt;I understood it in this way. It wants to make sure that there is swap space available in case if it needs to page out. Best way to confirm it is by reserving the swap space.&lt;BR /&gt;&lt;BR /&gt;For ex., if you have 1 GB memory and if you alloted only 100MB of swap, what will happen if the system has to pageout 200MB if it &lt;BR /&gt;didn't reserve the swap space?.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 18 Feb 2003 19:49:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683116#M53508</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-02-18T19:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: swap reservation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683117#M53509</link>
      <description>Just a small note on "but why doesnt all unixes require swap reservation?".&lt;BR /&gt;&lt;BR /&gt;This is designer's choice. By default HP-UX reserves swap for allocations. Period.&lt;BR /&gt;&lt;BR /&gt;This can be changed using lazy swap allocation (like Frank already stated). Beginning with 11.00 you could flag an executable to use lazy swapping with the chatr(1M) command. Programs can e.g. use mmap(2) with the MAP_NORESERVE option, like the java VM usually does.&lt;BR /&gt;&lt;BR /&gt;Some other vendors use the lazy scheme by default... however, if swap gets full, "lazy processes" need to be killed. That's the disadvantage, so lazy swapping is somewhat "more dangerous" and risky.&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt; Dietmar.</description>
      <pubDate>Tue, 18 Feb 2003 19:54:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683117#M53509</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-02-18T19:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: swap reservation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683118#M53510</link>
      <description>William,&lt;BR /&gt;&lt;BR /&gt;Just wondering: Why did you 'wake' this thread which was nearly a year old?</description>
      <pubDate>Wed, 19 Feb 2003 07:22:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-reservation/m-p/2683118#M53510</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2003-02-19T07:22:58Z</dc:date>
    </item>
  </channel>
</rss>

