<?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: Increase SWAP in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862109#M276909</link>
    <description>Firstly I would use&lt;BR /&gt;&lt;BR /&gt;swapinfo -tam&lt;BR /&gt;&lt;BR /&gt;to give a better output from swapinfo.&lt;BR /&gt;&lt;BR /&gt;Secondly, to add extra swapfile (you can't increase the primary swapfile without rebuilding the server) you need to create a new logical volume, enable it with swapon, and add it to /etc/fstab to it is reused on boot.&lt;BR /&gt;&lt;BR /&gt;However you should investigate whether you actually need to add swap.  Your output shows you have 4Gb of device swap and about 5Gb RAM (memory line generally shows about 0.75 x real RAM).&lt;BR /&gt;&lt;BR /&gt;Now assuming you have pseudo-swap enabled (the swapmem_on kernel parameter) it looks like you probably do not need any extra swap.&lt;BR /&gt;&lt;BR /&gt;However if you do need to add more you will need to ensure that maxswapchunks kernel parameter is sufficiently large to allow the extra swap space.</description>
    <pubDate>Wed, 13 Sep 2006 10:06:26 GMT</pubDate>
    <dc:creator>Simon Hargrave</dc:creator>
    <dc:date>2006-09-13T10:06:26Z</dc:date>
    <item>
      <title>Increase SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862104#M276904</link>
      <description>I have 418273 Kb  of swap space how can i increase it any commands can help me..&lt;BR /&gt;&lt;BR /&gt;# swapinfo&lt;BR /&gt;             Kb      Kb      Kb   PCT  START/      Kb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev     4194304 1241176 2953128   30%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       - 1323104 -1323104&lt;BR /&gt;memory  4182736 2557532 1625204   61%&lt;BR /&gt;# swapinfo -M&lt;BR /&gt;             Kb      Kb      Kb   PCT&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED&lt;BR /&gt;memory  4182736 2557532 1625204   61%</description>
      <pubDate>Wed, 13 Sep 2006 09:44:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862104#M276904</guid>
      <dc:creator>Lakshmikanth Baddam</dc:creator>
      <dc:date>2006-09-13T09:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Increase SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862105#M276905</link>
      <description>Hi,&lt;BR /&gt;see thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1028045" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1028045&lt;/A&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=897394" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=897394&lt;/A&gt;</description>
      <pubDate>Wed, 13 Sep 2006 09:50:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862105#M276905</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-09-13T09:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Increase SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862106#M276906</link>
      <description>depending on the requirement create a FS or device swap space. and configure it as swap usign swapon command...&lt;BR /&gt;&lt;BR /&gt;write again little more clearly...what application are runnign, to what limit u want to increase the swap...whether u have extra separate disk..or u want FS swap???</description>
      <pubDate>Wed, 13 Sep 2006 09:50:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862106#M276906</guid>
      <dc:creator>inventsekar_1</dc:creator>
      <dc:date>2006-09-13T09:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Increase SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862107#M276907</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The easiest way is to use SAM, but you would need some disk space available...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 13 Sep 2006 09:51:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862107#M276907</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2006-09-13T09:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Increase SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862108#M276908</link>
      <description>Lakshmikanth,&lt;BR /&gt;&lt;BR /&gt;First make sure that your maxswapchunks value will allow for more swap.&lt;BR /&gt;&lt;BR /&gt;Second if creating device swap you can use a command like this:&lt;BR /&gt;&lt;BR /&gt;lvcreate -l (size) -n swap123 -C y -r n /dev/vgxx&lt;BR /&gt;&lt;BR /&gt;Then enable swap:&lt;BR /&gt;&lt;BR /&gt;swapon -p 1 /dev/vgxx/swap123&lt;BR /&gt;&lt;BR /&gt;Make sure to add the entry in the fstab file&lt;BR /&gt;&lt;BR /&gt;/dev/vgxx/swap123 /default swap pri=1&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jaime.</description>
      <pubDate>Wed, 13 Sep 2006 09:52:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862108#M276908</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2006-09-13T09:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Increase SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862109#M276909</link>
      <description>Firstly I would use&lt;BR /&gt;&lt;BR /&gt;swapinfo -tam&lt;BR /&gt;&lt;BR /&gt;to give a better output from swapinfo.&lt;BR /&gt;&lt;BR /&gt;Secondly, to add extra swapfile (you can't increase the primary swapfile without rebuilding the server) you need to create a new logical volume, enable it with swapon, and add it to /etc/fstab to it is reused on boot.&lt;BR /&gt;&lt;BR /&gt;However you should investigate whether you actually need to add swap.  Your output shows you have 4Gb of device swap and about 5Gb RAM (memory line generally shows about 0.75 x real RAM).&lt;BR /&gt;&lt;BR /&gt;Now assuming you have pseudo-swap enabled (the swapmem_on kernel parameter) it looks like you probably do not need any extra swap.&lt;BR /&gt;&lt;BR /&gt;However if you do need to add more you will need to ensure that maxswapchunks kernel parameter is sufficiently large to allow the extra swap space.</description>
      <pubDate>Wed, 13 Sep 2006 10:06:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862109#M276909</guid>
      <dc:creator>Simon Hargrave</dc:creator>
      <dc:date>2006-09-13T10:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Increase SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862110#M276910</link>
      <description>Also a note on swap priorities.  If you add swap on a different physical device then you can set the priority to 1 same as primary swap.  However if the second swap file is on the same physical disk then set it to priority 2 for example.  Otherwise your disk drive heads will be flitting between the 2 swap files as the data is spread across the 2, greatly impacting performance.</description>
      <pubDate>Wed, 13 Sep 2006 10:09:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862110#M276910</guid>
      <dc:creator>Simon Hargrave</dc:creator>
      <dc:date>2006-09-13T10:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Increase SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862111#M276911</link>
      <description># swapinfo -tam&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        4096     948    3148   23%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -    2310   -2310&lt;BR /&gt;memory     4085    1277    2808   31%&lt;BR /&gt;total      8181    4535    3646   55%       -       0    -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now here in the above output my swap space is  memory-- 4085... or total -- 8181  what is Dev?</description>
      <pubDate>Wed, 13 Sep 2006 10:25:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862111#M276911</guid>
      <dc:creator>Lakshmikanth Baddam</dc:creator>
      <dc:date>2006-09-13T10:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Increase SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862112#M276912</link>
      <description>I forgot to add:&lt;BR /&gt;By using SAM, it will be aware of the values of  maxswapchunks kernel parameter, and will inform  you if you need modifying (it will give the values you need...) and you will have to compile a new kernel...&lt;BR /&gt;We cant give you more help since we do not know what you have (as kernel values that is...) and the size swap you want to add...&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 13 Sep 2006 10:27:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862112#M276912</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2006-09-13T10:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Increase SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862113#M276913</link>
      <description># swapinfo -tam&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 4096 948 3148 23% 0 - 1 /dev/vg00/lvol2&lt;BR /&gt;reserve - 2310 -2310&lt;BR /&gt;memory 4085 1277 2808 31%&lt;BR /&gt;total 8181 4535 3646 55% - 0 -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;here i am confused...what is my virtual memory now is it   &lt;BR /&gt;memory-- 4084   or&lt;BR /&gt;&lt;BR /&gt;total --8181  ?  do i need to take toatl field as my total virtual memory or the memory field as total virtual memory??</description>
      <pubDate>Wed, 13 Sep 2006 10:32:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862113#M276913</guid>
      <dc:creator>Lakshmikanth Baddam</dc:creator>
      <dc:date>2006-09-13T10:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Increase SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862114#M276914</link>
      <description>Well,&lt;BR /&gt;HOw  much memory do you have on this box?&lt;BR /&gt;&lt;BR /&gt;From what we see here with your swapinfo, is is only the value of your swap/pseudo-swap (memory used as swap).&lt;BR /&gt;The total of both gives you the total size of your virtual memory.&lt;BR /&gt;So here you have:&lt;BR /&gt;4GB of device swap&lt;BR /&gt;4GB of memory usable as swap&lt;BR /&gt;-----------&lt;BR /&gt;8GB total of virtual memory...</description>
      <pubDate>Wed, 13 Sep 2006 10:56:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862114#M276914</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2006-09-13T10:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Increase SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862115#M276915</link>
      <description>&lt;BR /&gt;Lakshmikanth&lt;BR /&gt;&lt;BR /&gt;# swapinfo -tam&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 4096 948 3148 23% 0 - 1 /dev/vg00/lvol2&lt;BR /&gt;reserve - 2310 -2310&lt;BR /&gt;memory 4085 1277 2808 31%&lt;BR /&gt;total 8181 4535 3646 55% - 0 -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Let's start from the bottom up:&lt;BR /&gt;&lt;BR /&gt;The total line indicates the amount of swap that have been reserved ( not used ).&lt;BR /&gt;&lt;BR /&gt;The memory line, indicates how much pseudo-swap have been used, this line is not to be confused with physical memory.&lt;BR /&gt;&lt;BR /&gt;Reserved line, indicated swap that was separated in case is needed.&lt;BR /&gt;&lt;BR /&gt;Dev, shows how much swap was  actually used since the last reboot. We can see that the most that you have used is 23%.&lt;BR /&gt;&lt;BR /&gt;Unless you are planning on running more intensive application(s), you do not really need to add more swap, and even if you do,&lt;BR /&gt;adding more swap would not be the right solution, but adding more memory and then if needed adding more swap.&lt;BR /&gt;&lt;BR /&gt;For the moment I think you are just fine.&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Sep 2006 11:08:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862115#M276915</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2006-09-13T11:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Increase SWAP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862116#M276916</link>
      <description>Thnx alot jaime that's pretty clear to  me now.</description>
      <pubDate>Wed, 13 Sep 2006 11:47:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-swap/m-p/3862116#M276916</guid>
      <dc:creator>Lakshmikanth Baddam</dc:creator>
      <dc:date>2006-09-13T11:47:54Z</dc:date>
    </item>
  </channel>
</rss>

