<?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 size in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875315#M399554</link>
    <description>Slawomir,&lt;BR /&gt;&lt;BR /&gt;Thanks for your answer. First I wanted to go for 1 LV of 8GB, but as Mark said, that would maybe be better to have 2 LV of 4GB, each one on an internal drive... except if someone here tells it is better to mirror. In that case, I would go for 1 single 8GB LV.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
    <pubDate>Tue, 14 Dec 2004 04:47:44 GMT</pubDate>
    <dc:creator>Fred Ruffet</dc:creator>
    <dc:date>2004-12-14T04:47:44Z</dc:date>
    <item>
      <title>Swap size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875311#M399550</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;I have here a server with 4GB of RAM. It is newly installed and has only 1GB Swap created at install time. I'd like to increase this swap to 8GB (twice the RAM) and have afew questions :&lt;BR /&gt;&lt;BR /&gt;. Can I extend swap LV to 8GB ? This wouldn't be contiguous anymore. Is it a problem ?&lt;BR /&gt;. Can I create an other 7GB LV for swap ? This would give 8GB but it wouldn't be more contiguous than first solution. What happen if a crash occurs, and system dumps ?&lt;BR /&gt;. Is it better to have 8LV of 1GB than 1LV of 8GB or 1 of 1GB and 1 of 7GB ?&lt;BR /&gt;&lt;BR /&gt;Thanks for any replies.&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2004 04:30:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875311#M399550</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-12-14T04:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Swap size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875312#M399551</link>
      <description>If you have more than one disc, it's recommended to have swap areas on each. This way, the two areas can be used in parallel to avoid too much io on the main swap area.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Tue, 14 Dec 2004 04:39:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875312#M399551</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2004-12-14T04:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Swap size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875313#M399552</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;swap must be created with contiguous&lt;BR /&gt;allocation policy so you can't extend your 1GB swap online.&lt;BR /&gt;&lt;BR /&gt;You can create new contiguos LV 7GB and add new swap area.&lt;BR /&gt;&lt;BR /&gt;You can always make tape recovery and &lt;BR /&gt;during restore process extend your primary 1GB&lt;BR /&gt;swap to 8GB. &lt;BR /&gt;&lt;BR /&gt;It is better to have 1LV of 8GB.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2004 04:42:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875313#M399552</guid>
      <dc:creator>Slawomir Gora</dc:creator>
      <dc:date>2004-12-14T04:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Swap size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875314#M399553</link>
      <description>Thanks Mark !&lt;BR /&gt;&lt;BR /&gt;I have 2 internal disks. Should I go for half swap on each disk ? (4GB on each)&lt;BR /&gt;&lt;BR /&gt;This make me ask an other question : Is it better not to mirror swap LVs ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2004 04:43:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875314#M399553</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-12-14T04:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Swap size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875315#M399554</link>
      <description>Slawomir,&lt;BR /&gt;&lt;BR /&gt;Thanks for your answer. First I wanted to go for 1 LV of 8GB, but as Mark said, that would maybe be better to have 2 LV of 4GB, each one on an internal drive... except if someone here tells it is better to mirror. In that case, I would go for 1 single 8GB LV.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2004 04:47:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875315#M399554</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-12-14T04:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Swap size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875316#M399555</link>
      <description>Hi Fred,&lt;BR /&gt;&lt;BR /&gt;I also think you should use 2 different logical volumes for this. I've this solution, only with different sizes on my servers as you can see from my swapinfo command:&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        1024      67     957    7%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        1024      65     959    6%       0       -    1  /dev/vg00/lvol9&lt;BR /&gt;reserve       -    1132   -1132&lt;BR /&gt;memory     1129     268     861   24%&lt;BR /&gt;total      3177    1532    1645   48%       -       0    -&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
      <pubDate>Tue, 14 Dec 2004 04:48:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875316#M399555</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2004-12-14T04:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Swap size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875317#M399556</link>
      <description>I would try to go for half on each disc, but if you're short of space on the root disc or don't want to go through the hassle of using an ignite tape I can't see any problem with having a larger area on your application disc - in fact, that's the very setup I've got on some systems.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Tue, 14 Dec 2004 04:52:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875317#M399556</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2004-12-14T04:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Swap size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875318#M399557</link>
      <description>Thanks for aswers.&lt;BR /&gt;&lt;BR /&gt;No problem for space. What I have in mind is the following : I have 2 internal 36GB disks wich I want to use for OS mirroring. I want to mirror anything except swap which will be composed of 4GB on each drive.&lt;BR /&gt;&lt;BR /&gt;All of that because I heard mirroring swap is very bad for performance purpose.&lt;BR /&gt;&lt;BR /&gt;Is it bad ? good ? better to have 8GB mirrored ?&lt;BR /&gt;&lt;BR /&gt;Eric, are this swap devices mirrored ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2004 05:08:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875318#M399557</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-12-14T05:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Swap size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875319#M399558</link>
      <description>Hi Fred&lt;BR /&gt;&lt;BR /&gt;No, you won't be able to increase current swap space (default in /dev/vg00/lvol2)&lt;BR /&gt;Why don't you creat for second swap space?&lt;BR /&gt;You can use this command to create:&lt;BR /&gt; &lt;BR /&gt;lvcreate -L xxxM -C y -r n /dev/vgxx/lvolx&lt;BR /&gt;&lt;BR /&gt;regard,&lt;BR /&gt;&lt;BR /&gt;Jimkery</description>
      <pubDate>Tue, 14 Dec 2004 05:10:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875319#M399558</guid>
      <dc:creator>Hoang Chi Cong_1</dc:creator>
      <dc:date>2004-12-14T05:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Swap size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875320#M399559</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;if you use mirror for local system disks&lt;BR /&gt;swap lvols must be mirrored too.&lt;BR /&gt;&lt;BR /&gt;If there will be no mirror for swap then when&lt;BR /&gt;one disk is broken you lose some swap space&lt;BR /&gt;and your system will hang.</description>
      <pubDate>Tue, 14 Dec 2004 05:12:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875320#M399559</guid>
      <dc:creator>Slawomir Gora</dc:creator>
      <dc:date>2004-12-14T05:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Swap size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875321#M399560</link>
      <description>Hi Fred,&lt;BR /&gt;If its OS internal you must mirror also (all) the swap...&lt;BR /&gt;If you had other disks, than you could have created secondary swaps of same size so that in case of swaping it would write on all at the same time...&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Tue, 14 Dec 2004 05:16:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875321#M399560</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2004-12-14T05:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Swap size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875322#M399561</link>
      <description>You are right. Why mirror the swap? &lt;BR /&gt;But in case if it is required to boot from the mirrored disk, that time which LV will be the primamry swap space. I hope you understand why is it required to mirror swap.&lt;BR /&gt;&lt;BR /&gt;2) Pripary swap must be of the size of RAM of system. Because it acts as dump device when system crashes and data in the memory is dumped here so 1 GB of primary swap is not a good IDEA atall.&lt;BR /&gt;&lt;BR /&gt;cheers.&lt;BR /&gt;Saurav</description>
      <pubDate>Tue, 14 Dec 2004 05:20:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875322#M399561</guid>
      <dc:creator>Saurav_1</dc:creator>
      <dc:date>2004-12-14T05:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Swap size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875323#M399562</link>
      <description>Slawomir, that's the point. As I was searching on forums, I just found an answer from Patrick Wallek saying that you must mirror swap as long as if you boot on mirror, you need your primary swap.&lt;BR /&gt;&lt;BR /&gt;So I will go for everything mirrored on this system. I'm going to try to have a "single contiguous 8GB primary mirrored swap", and that will be the best (I think).&lt;BR /&gt;&lt;BR /&gt;Thanks all.&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2004 05:23:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875323#M399562</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-12-14T05:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Swap size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875324#M399563</link>
      <description>Thanks all for replies.&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2004 05:28:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-size/m-p/4875324#M399563</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-12-14T05:28:06Z</dc:date>
    </item>
  </channel>
</rss>

