<?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? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2926997#M634445</link>
    <description>You should start by reading document available in /usr/share/doc/mem_mgt.txt&lt;BR /&gt;&lt;BR /&gt;You can create swap in different VGs. &lt;BR /&gt;Primary can not be increased.&lt;BR /&gt;Best way for you to use sam to create secondary swap. &lt;BR /&gt;&lt;BR /&gt;SAM&amp;gt;disk and File systems&amp;gt; swap.. and go from there...&lt;BR /&gt;Goodluck...&lt;BR /&gt;-USA..&lt;BR /&gt;</description>
    <pubDate>Thu, 13 Mar 2003 21:13:07 GMT</pubDate>
    <dc:creator>Uday_S_Ankolekar</dc:creator>
    <dc:date>2003-03-13T21:13:07Z</dc:date>
    <item>
      <title>Swap?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2926996#M634444</link>
      <description>I have several quiestion about swap?&lt;BR /&gt;Can I create swap in diferents vgs?&lt;BR /&gt;How can I increase the primery swap?&lt;BR /&gt;How can I create the secondary swap commands?&lt;BR /&gt;My problem is when I want to create another swap with the sam, I have the error, that I have to compile the new kernel, what parameters I have to change to enable the second swap in the kernel?&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Mar 2003 21:07:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2926996#M634444</guid>
      <dc:creator>castro_2</dc:creator>
      <dc:date>2003-03-13T21:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Swap?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2926997#M634445</link>
      <description>You should start by reading document available in /usr/share/doc/mem_mgt.txt&lt;BR /&gt;&lt;BR /&gt;You can create swap in different VGs. &lt;BR /&gt;Primary can not be increased.&lt;BR /&gt;Best way for you to use sam to create secondary swap. &lt;BR /&gt;&lt;BR /&gt;SAM&amp;gt;disk and File systems&amp;gt; swap.. and go from there...&lt;BR /&gt;Goodluck...&lt;BR /&gt;-USA..&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Mar 2003 21:13:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2926997#M634445</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2003-03-13T21:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Swap?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2926998#M634446</link>
      <description>Yes you can create swap in different volume groups.&lt;BR /&gt;You can't extend a primary swap partition, but you can create addition ones.&lt;BR /&gt;The difference between primary and secondary is simply the priority number given.&lt;BR /&gt;The kernel parameter your after is called 'maxswapchunks'. Before we can really recommend a value what do you have now?&lt;BR /&gt;# kmtune -l -q maxswapchunks&lt;BR /&gt;I've attached a white paper on memory management. It also contains a great deal of information on understanding swap.</description>
      <pubDate>Thu, 13 Mar 2003 21:19:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2926998#M634446</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-03-13T21:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Swap?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2926999#M634447</link>
      <description>Hi castro,&lt;BR /&gt;&lt;BR /&gt;1) Certainly, although swap is at the LV level - not VG.&lt;BR /&gt;You just create an LV normally &amp;amp; in it's fstab entry you denote it like&lt;BR /&gt;/dev/vgSwap/swap1 ... swap pri=0 0 0&lt;BR /&gt;&lt;BR /&gt;2) Primary can be increased ONLY if you have free space contigous to the existing sawp - highly unlikely. One normally has to Ignite the system &amp;amp; reconfigure on reload to do this. I never increase primary, I normally add more &amp;amp; rearrange priority to give the faster array disks where I'm designating swap a higher priority which means they're used first.&lt;BR /&gt;&lt;BR /&gt;3) swapon -a  is the normal command to enable new swap.&lt;BR /&gt;&lt;BR /&gt;4) You're probably bumping up against maxswapchunks - the limit of swap chunks that can be managed. You take that value &amp;amp; the value of swchunk  - the size of the chunks in 1K blocks - that value determines the maximum amount of swap you can have until you increase one or the other. I would recommend you increase maxswapchunks. This will require a reboot.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Mar 2003 21:20:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2926999#M634447</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-03-13T21:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Swap?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2927000#M634448</link>
      <description>I have K380 and the maxswapchunks   512.&lt;BR /&gt;How much should be increase? To create another swap the 700 MB</description>
      <pubDate>Thu, 13 Mar 2003 21:23:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2927000#M634448</guid>
      <dc:creator>castro_2</dc:creator>
      <dc:date>2003-03-13T21:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Swap?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2927001#M634449</link>
      <description>- Yes you can.&lt;BR /&gt;- Primary swap must be contiguous because the dump space (usually in pri swap) has to be contigous. Since pri swap is defined during OS installation, you'll will not be able find any free contigous extents to extend your pri swap. To extend it you need to use the ignite process. Hence secondary swap space is added if additional swap is needed.&lt;BR /&gt;- To create a 400MB 2ndary priority 1 swap space (say /dev/vg01/swap2)..&lt;BR /&gt;# lvcreate -L 400 -n swap2 -C y -r n /dev/vg01&lt;BR /&gt;# swapon -p 1 /dev/vg01/swap2&lt;BR /&gt;# swapinfo -tam&lt;BR /&gt;# vi /etc/fstab&lt;BR /&gt;....&lt;BR /&gt;/dev/vg01/swap2 ... swap pri=1  0  1&lt;BR /&gt;....&lt;BR /&gt;- The parameter to change is "maxswapchunks".&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Mar 2003 21:31:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2927001#M634449</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2003-03-13T21:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Swap?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2927002#M634450</link>
      <description>Suggest you increase the value of 'maxswapchunks' to 2048.&lt;BR /&gt;&lt;BR /&gt;As mentioned, the existing primary swap area is contiguous. Attempting to fix this can only be done with an ignite tape with an outage of at least 1-2 hours. I would suggest that you create a second primary swap partition. Our friend SK Chan has provided a good example.</description>
      <pubDate>Thu, 13 Mar 2003 21:40:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2927002#M634450</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-03-13T21:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Swap?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2927003#M634451</link>
      <description>You don;t have to be exact. The formula is ..&lt;BR /&gt;max-swap=maxswapchunk*swchunk*1024bytes&lt;BR /&gt;The "swchunk" is another kernel parameter (default is 2048 I think). You need to add up all the swap space to determine the total before you can calculate the maxswapchunk needed. For example setting maxswapchunk to 1024 gives ..&lt;BR /&gt;1024*2048*1024bytes ie about 2GB of total swap.</description>
      <pubDate>Thu, 13 Mar 2003 21:43:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap/m-p/2927003#M634451</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2003-03-13T21:43:01Z</dc:date>
    </item>
  </channel>
</rss>

