<?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 management in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-management/m-p/4065033#M306520</link>
    <description>Their reasoning is correct --- as far as it goes. This is the reason for HP's pseudoswap (swapmem_on=1). Unless pseudoswap is enabled, if you had 8Gib of device swap, for example, you could only reserve space for 8GiB of processes eventhough you have 24GiB of RAM free. Pseudoswap (which is nothing more than kernel bookkeeping) allows 75% of RAM to be counted as process reservation space. In this case (0.75 x 32GiB RAM) + 8 GiB Device Swap would allow you to use the entire 32GiB as process reservation space.&lt;BR /&gt;&lt;BR /&gt;These days, it is very common for boxes to have much less memory than swap --- and that is a perfect use for pseudoswap. I would start out with 8GiB of swap and monitor swap usage. As long as you leave some unconfigured space (and it doesn't have to be in vg00), it's so easy to add additional swap that it's not worth worrying about. One point: Make sure every dab of your swap is mirrored --- this has the effect of making your 1.5X requirement grow to 3X. Remember, you bought all that memory so that you would never have to swap. Why allocate disk that is never going to be used?</description>
    <pubDate>Tue, 04 Sep 2007 09:29:07 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2007-09-04T09:29:07Z</dc:date>
    <item>
      <title>Swap management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-management/m-p/4065031#M306518</link>
      <description>Hi all,&lt;BR /&gt;My company has purchased a fine new rx7640, and came preinstalled with HP-UX B.11.23 .&lt;BR /&gt;This machine should be used totally ( no virtualization ) for one application. The guys from the software company have some idiot swap memory requirements. The machine has 32gig of memory and they want us to allocate 1.5 times the amount of memory for swap. A total of 48gig of swap. I cannot make it clear to them that this is some old manner ( unknown to me ) o swap space allocation.&lt;BR /&gt;Can one of you link me to the documentation that proves ( to my reseller ) that his requirement is not a useable value.&lt;BR /&gt;&lt;BR /&gt;I'll quote the email that he sent me back.&lt;BR /&gt;"In Unix, when a process requests some memory - say 1MB from the&lt;BR /&gt;operating system, the OS allocates that amount of memory to the process&lt;BR /&gt;and also reserves a corresponding amount of swap space on the swap&lt;BR /&gt;device in case that process ever needs to be swapped out. SV needs a lot&lt;BR /&gt;of swap due to the fact that it uses a lot of shared memory segments -&lt;BR /&gt;If 15 processes all share a 1MB data segment then you will consume 1MB&lt;BR /&gt;of memory and will reserve 15MB of swap in case any of those processes&lt;BR /&gt;need to get a private version of the segment. &lt;BR /&gt;The recommendation still stands at 1.5 times physical RAM."</description>
      <pubDate>Tue, 04 Sep 2007 09:06:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-management/m-p/4065031#M306518</guid>
      <dc:creator>Maurice Commandeur</dc:creator>
      <dc:date>2007-09-04T09:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Swap management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-management/m-p/4065032#M306519</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I'll give you the knowledge of an experienced administrator.&lt;BR /&gt;&lt;BR /&gt;On a system with 32 GB of memory, it is unlikely that you will need 48 GB of swap.&lt;BR /&gt;&lt;BR /&gt;The minimum swap/dump (if consolidated on the same logical volume) is 50% of RAM. This is to accommodate a memory dump.&lt;BR /&gt;&lt;BR /&gt;Going lower than 50% of RAM is known to make HP-UX unstable.&lt;BR /&gt;&lt;BR /&gt;All processes that open reserve swap, and if swap is too small, you may run into trouble openning processes.&lt;BR /&gt;&lt;BR /&gt;The link you want:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90672/ch06s03.html" target="_blank"&gt;http://docs.hp.com/en/B2355-90672/ch06s03.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://safari.oreilly.com/0131433490/ch08lev1sec10" target="_blank"&gt;http://safari.oreilly.com/0131433490/ch08lev1sec10&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The recommendation is wrong. I'd do between 50% of RAM and 100% of RAM depending on how much memory will actually be used on the system.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 04 Sep 2007 09:16:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-management/m-p/4065032#M306519</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-09-04T09:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Swap management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-management/m-p/4065033#M306520</link>
      <description>Their reasoning is correct --- as far as it goes. This is the reason for HP's pseudoswap (swapmem_on=1). Unless pseudoswap is enabled, if you had 8Gib of device swap, for example, you could only reserve space for 8GiB of processes eventhough you have 24GiB of RAM free. Pseudoswap (which is nothing more than kernel bookkeeping) allows 75% of RAM to be counted as process reservation space. In this case (0.75 x 32GiB RAM) + 8 GiB Device Swap would allow you to use the entire 32GiB as process reservation space.&lt;BR /&gt;&lt;BR /&gt;These days, it is very common for boxes to have much less memory than swap --- and that is a perfect use for pseudoswap. I would start out with 8GiB of swap and monitor swap usage. As long as you leave some unconfigured space (and it doesn't have to be in vg00), it's so easy to add additional swap that it's not worth worrying about. One point: Make sure every dab of your swap is mirrored --- this has the effect of making your 1.5X requirement grow to 3X. Remember, you bought all that memory so that you would never have to swap. Why allocate disk that is never going to be used?</description>
      <pubDate>Tue, 04 Sep 2007 09:29:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-management/m-p/4065033#M306520</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-09-04T09:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Swap management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-management/m-p/4065034#M306521</link>
      <description>Sorry, missed an important link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71028.www7.hp.com/ERC/downloads/c00792791.pdf" target="_blank"&gt;http://h71028.www7.hp.com/ERC/downloads/c00792791.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Deals with superdome systems which commonly have huge memory.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 04 Sep 2007 09:29:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-management/m-p/4065034#M306521</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-09-04T09:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Swap management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-management/m-p/4065035#M306522</link>
      <description>Maurice,&lt;BR /&gt;&lt;BR /&gt; Having the swap space &amp;gt; 1.5 times usually standard recommendation by HP. Further, it is also for performance robustness.&lt;BR /&gt;&lt;BR /&gt;Take a look on the performance cookbook, hope this will help.&lt;BR /&gt;&lt;BR /&gt;WK&lt;BR /&gt;&lt;BR /&gt;please assign points&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Sep 2007 10:51:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-management/m-p/4065035#M306522</guid>
      <dc:creator>whiteknight</dc:creator>
      <dc:date>2007-09-04T10:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Swap management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-management/m-p/4065036#M306523</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Having large swaps used to be popular and was driven by old technologies and software.&lt;BR /&gt;&lt;BR /&gt;After dealing with numerous projects, I&lt;BR /&gt;adopted the following stance and it has not failed me:&lt;BR /&gt;&lt;BR /&gt;a) Primary swap is 4 GB (maximum 8 GB&lt;BR /&gt;if there is enough space on boot disks).&lt;BR /&gt;&lt;BR /&gt;b) Create dedicated dump device.&lt;BR /&gt;If enough space, dedicated dump volume&lt;BR /&gt;equals RAM size, or between 1/2 and 3/4&lt;BR /&gt;of it.&lt;BR /&gt;&lt;BR /&gt;Dedicated dump device will not shorten the &lt;BR /&gt;time required to write from memory to dump &lt;BR /&gt;during the crash, but WILL SHORTEN the&lt;BR /&gt;reboot time.&lt;BR /&gt;&lt;BR /&gt;Think what happens at crash time typically:&lt;BR /&gt;&lt;BR /&gt;1. Memory image gets dumped into swap/dump area.&lt;BR /&gt;&lt;BR /&gt;2. At reboot, due to risk of swap&lt;BR /&gt;overwriting those dump pages, savecrash&lt;BR /&gt;"exports" them into the crash dump directory&lt;BR /&gt;(typically /var/adm/crash).&lt;BR /&gt;&lt;BR /&gt;That way, you can keep an image in the dump&lt;BR /&gt;area until the next crash or run&lt;BR /&gt;savecrash at will.&lt;BR /&gt;&lt;BR /&gt;On a server with large amount of RAM, this is&lt;BR /&gt;a serious problem because the reboot&lt;BR /&gt;can take a loooong time. That is a huge&lt;BR /&gt;risk because the golden rule of system&lt;BR /&gt;administration is: restore production&lt;BR /&gt;services AS SOON AS POSSIBLE and then&lt;BR /&gt;analyze the root cause.&lt;BR /&gt;&lt;BR /&gt;So, with 32 GB RAM (or more - I worked&lt;BR /&gt;on much larger servers too), set up primary swap of 4 or 8 GB only, then set up a &lt;BR /&gt;dedicated dump volume of say 24 GB, mirror &lt;BR /&gt;them. Enable pseudo-swap.&lt;BR /&gt;&lt;BR /&gt;If ever, for some weird reason you&lt;BR /&gt;run out of resources, either add more RAM,&lt;BR /&gt;or create secondary swap (ideally same&lt;BR /&gt;size as primary swap - that is best&lt;BR /&gt;for performance). The secondary swap MUST&lt;BR /&gt;not and SHOULD NOT be on the same physical &lt;BR /&gt;disks as primary swap.&lt;BR /&gt;&lt;BR /&gt;So far, this has never failed me.&lt;BR /&gt;Maybe I have been lucky for the last&lt;BR /&gt;23 years :)&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Tue, 04 Sep 2007 16:08:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-management/m-p/4065036#M306523</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2007-09-04T16:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Swap management</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-management/m-p/4065037#M306524</link>
      <description>Thanks for all the comments!&lt;BR /&gt;It really helped me.&lt;BR /&gt;The other thing that I need to use is a seperate crash partition, thanks for that hint.&lt;BR /&gt;&lt;BR /&gt;Cheers Maurice.</description>
      <pubDate>Wed, 05 Sep 2007 04:27:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-management/m-p/4065037#M306524</guid>
      <dc:creator>Maurice Commandeur</dc:creator>
      <dc:date>2007-09-05T04:27:49Z</dc:date>
    </item>
  </channel>
</rss>

