<?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: Sizing swap in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234178#M172671</link>
    <description>Your swap DEFINITELY must be mirrored.  If it is not, and the disk that has your swap area on it dies, thus making swap inaccessable, then you are screwed.  Your machine will not function and may actually crash.  When a process starts, it must be able to reserve swap space.  If no swap space is there no processes will be able to start.  If you  mirror  your root disk(s), go ahead and mirror the swap as well.&lt;BR /&gt;&lt;BR /&gt;I think you may be confusing swap and dump.  Dump space does not need to be mirrored as it is just used for crash dumps.</description>
    <pubDate>Wed, 31 Mar 2004 11:15:24 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2004-03-31T11:15:24Z</dc:date>
    <item>
      <title>Sizing swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234171#M172664</link>
      <description>There appear to be two schools of thought regarding sizing swap under HP-UX. 1: set swap to match RAM. 2: If you have a lot of RAM, keep swap small, like 1GB. What are the dis/advantages of each scheme?</description>
      <pubDate>Tue, 30 Mar 2004 13:30:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234171#M172664</guid>
      <dc:creator>Lonny Balderston</dc:creator>
      <dc:date>2004-03-30T13:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sizing swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234172#M172665</link>
      <description>As far as I know, there is no disadvantage in keeping the swap size equal to the RAM size except for the $$$ you are going to spend on the disk space :-)</description>
      <pubDate>Tue, 30 Mar 2004 13:36:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234172#M172665</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-03-30T13:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sizing swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234173#M172666</link>
      <description>A lot of this depends on your application(s)...&lt;BR /&gt;&lt;BR /&gt;If you want to be able to dump - then Primary swap should be 1 x memory.&lt;BR /&gt;&lt;BR /&gt;Application - SAP - requires 24GB of swap...&lt;BR /&gt;&lt;BR /&gt;Another thing I like to do is set /var/adm/crash - 1 x memory + 512MB&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 30 Mar 2004 13:36:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234173#M172666</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-03-30T13:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sizing swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234174#M172667</link>
      <description>The primary advantage of smaller swap spaces is that you are not wasting disk space for something that you don't use --- that's why you bought all that RAM in the first place.&lt;BR /&gt;&lt;BR /&gt;The idea is to never have to swap at all. If you enable pseudoswap then you can fully utilize your system with 25% of RAM as swap.&lt;BR /&gt;&lt;BR /&gt;My typical setup on boxes with large amounts of RAM is to configure 1GB or so or primary swap and then monitor swap usage. It's so easy to add additional swap that it is really not worth worrying about. All swap should be mirrored so this means that whatever disk space you thought you were wasting just got doubled. For applications like SAP that require 3X memory for swap during installation, my answer to that is too configure filesystem swap at low priority. After the SAP install is done, you can then reduce swap to tiny values and SAP is still happy.&lt;BR /&gt;&lt;BR /&gt;I am also a firm believer that swap and dump have nothing to do with one another.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2004 13:56:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234174#M172667</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-03-30T13:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sizing swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234175#M172668</link>
      <description>There are other schemes/schools as well.&lt;BR /&gt;&lt;BR /&gt;I am a member(without invitation)in the A. Clay Stephenson school of swap.&lt;BR /&gt;&lt;BR /&gt;Set a primary swap area to half of ram. Then set a lower priority one to make up the difference between that and 1.5 times RAM. The 1.5 is up to you.&lt;BR /&gt;&lt;BR /&gt;This scheme provides excellent performance when system loads are light with the scalability of being able to handle higher loads.&lt;BR /&gt;&lt;BR /&gt;Just setting swap to 2x RAM can impede performance when compared to other scenarios. To cover the swap area there are more and longer head movements on the disks. Whether that makes a huge impace with todays 10K and 15K disks is open to debate.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 30 Mar 2004 14:55:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234175#M172668</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-30T14:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sizing swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234176#M172669</link>
      <description>This is a judgement call on the part of you, the systems administrator.  To be very conservative, set swap AT LEAST as much as RAM--and a little more, perhaps as much as 1.5x as much as RAM.  This allows you to catch a crash dump if necessary.  In a true production environment, this is absolutely mandatory (because figuring out why it crashed and died is absolutely mandatory). In a development or test environment, especially on older/slower hardware, this is not as necessary.  In these environments, if the system crashes, you just blame it on the end user and give a blank stare if they ask you for a crash dump analysis.  &lt;BR /&gt;&lt;BR /&gt;Otherwise, if its using 8GB of swap along with 8GB of RAM, the system is SERIOUSLY hurting.  In fact, if this system is using even half a gigabyte of swap on a routine basis, your computer is hopelessly overworked.  So the real answer to your question, like for most good questions, is "It all depends.....".  In this case, it all depends on the use of the system and tolerance of error.  The less error you can tolerate, the more swap the system will need.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2004 15:19:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234176#M172669</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2004-03-30T15:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sizing swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234177#M172670</link>
      <description>Clay, I'm admittedly a bit slow, but would you care to elucidate "All swap should be mirrored"? I thought just the opposite. -sorrel</description>
      <pubDate>Wed, 31 Mar 2004 11:05:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234177#M172670</guid>
      <dc:creator>Sorrel G. Jakins</dc:creator>
      <dc:date>2004-03-31T11:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sizing swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234178#M172671</link>
      <description>Your swap DEFINITELY must be mirrored.  If it is not, and the disk that has your swap area on it dies, thus making swap inaccessable, then you are screwed.  Your machine will not function and may actually crash.  When a process starts, it must be able to reserve swap space.  If no swap space is there no processes will be able to start.  If you  mirror  your root disk(s), go ahead and mirror the swap as well.&lt;BR /&gt;&lt;BR /&gt;I think you may be confusing swap and dump.  Dump space does not need to be mirrored as it is just used for crash dumps.</description>
      <pubDate>Wed, 31 Mar 2004 11:15:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234178#M172671</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-03-31T11:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sizing swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234179#M172672</link>
      <description>Well, it's normally considered a good thing to never need to shutdown except for planned maintenance. If a disk housing a swap space needs to be replaced and it's not mirrored then you must shutdown -- if the OS hasn't already failed anyway. I haven't shutdown a box to replace a failed disk in many years although I've replaced many, many disks over that period. The thing that I never mirror is dump space because that unlike swap is not a critical resource and can be dealt with during a scheduled maintenance window and I never want to ask myself "Now which mirror did the dump really get written to?"&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Mar 2004 11:21:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234179#M172672</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-03-31T11:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sizing swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234180#M172673</link>
      <description>Sorrel,&lt;BR /&gt;&lt;BR /&gt;If swap is not mirrored. you may have problems when your boot disk fails and you have NO swap available for root...when you fail over to your alt boot path.&lt;BR /&gt;&lt;BR /&gt;that is why you should have at least SOME of your total swap located in VG00 on the root bootable disk both PRI and ALT... so that it will be mirrored at least for the OS to have swap.&lt;BR /&gt;&lt;BR /&gt;In some cases it will prevent you from being able to boot with out swap being mirrored.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;---------------------------------------------------&lt;BR /&gt;All my swap areas are mirrored whether on vg00 or vg01. And my swap is typically half of Memory unless the box has large amount of Memory...In one case 72GB memory with 26GB Swap&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Mar 2004 11:22:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234180#M172673</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2004-03-31T11:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sizing swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234181#M172674</link>
      <description>Clay and Patrick are right - you need to mirror swap - just in case you lose a disk - if the one that had swap on is gone - and something was reserved in swap - your machine will crash - this is a recommendation from HP - just can't find the doc...&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 31 Mar 2004 11:26:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234181#M172674</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-03-31T11:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sizing swap</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234182#M172675</link>
      <description>One more thing.&lt;BR /&gt;&lt;BR /&gt;It is also recommended that you have a separate DUMP area from SWAP so that if you need to reboot or your box reboots on a panic, you dont lose the dump...&lt;BR /&gt;&lt;BR /&gt;If your dump is the same as swap you can risk losing a dump that could be crucial to a solution.</description>
      <pubDate>Wed, 31 Mar 2004 11:37:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sizing-swap/m-p/3234182#M172675</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2004-03-31T11:37:28Z</dc:date>
    </item>
  </channel>
</rss>

