<?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: Memory problems - swap at 100% - DOH! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789921#M79427</link>
    <description>If Oracle is the main application on the system&lt;BR /&gt;you should have very little&lt;BR /&gt;swapping.  Don't let the &lt;BR /&gt;shared memory segment start&lt;BR /&gt;swapping or performance will&lt;BR /&gt;tank big time.&lt;BR /&gt;&lt;BR /&gt;It looks like you may not have the swap mounted if it isn't&lt;BR /&gt;already in fstab.  If so mounting should help&lt;BR /&gt;immediately.  &lt;BR /&gt;&lt;BR /&gt;Oracle has had problems with memory leaks from time to time&lt;BR /&gt;but I think those are all patched.  Last time I had a &lt;BR /&gt;server crash due lack of memory, it was a leak in a &lt;BR /&gt;monitoring program.  Sys admin&lt;BR /&gt;said 2k physical memory free wasn't a problem.</description>
    <pubDate>Tue, 20 Aug 2002 15:50:07 GMT</pubDate>
    <dc:creator>Bill Thorsteinson</dc:creator>
    <dc:date>2002-08-20T15:50:07Z</dc:date>
    <item>
      <title>Memory problems - swap at 100% - DOH!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789909#M79415</link>
      <description>Hey all,&lt;BR /&gt;&lt;BR /&gt;RP7400, HP-UX 11.11, Oracle 8i.  Oracle users complaining that they can't get connections.  I seem to be having memory issues.&lt;BR /&gt;&lt;BR /&gt;Output of swapinfo -atm:&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        2048       0    2048    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -    2045   -2045&lt;BR /&gt;total      2048    2045       3  100%       -       0    -&lt;BR /&gt;&lt;BR /&gt;vmstat info:&lt;BR /&gt;&lt;BR /&gt;/tmp/tim # vmstat 5 5&lt;BR /&gt;         procs           memory                   page                              faults       cpu&lt;BR /&gt;    r     b     w      avm    free   re   at    pi   po    fr   de    sr     in     sy    cs  us sy id&lt;BR /&gt;    1     0     0   140992  451423    9    4     0    0     0    0     0   1666   2414   572   3  1 95&lt;BR /&gt;    1     0     0   140992  452135   36    0     0    0     0    0     0   1504   3758   564   6  1 93&lt;BR /&gt;    1     0     0   150460  451121   25    0     0    0     0    0     0   1552   4634   599   6  2 92&lt;BR /&gt;    1     0     0   150460  451121    7    0     0    0     0    0     0   1610   4164   604   4  1 95&lt;BR /&gt;    1     0     0   155913  452136   20    0     0    0     0    0     0   1436   3337   457   3  1 96&lt;BR /&gt;&lt;BR /&gt;It looks to me that I'm out of swap, but have memory available.  Any ideas on where I can look next?  Rebooting is a worst case scenario, so I'm hoping to not have to do that.&lt;BR /&gt;&lt;BR /&gt;Any suggetions would be greatly appreciated!&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Tue, 20 Aug 2002 14:24:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789909#M79415</guid>
      <dc:creator>Timothy Czarnik</dc:creator>
      <dc:date>2002-08-20T14:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems - swap at 100% - DOH!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789910#M79416</link>
      <description>Well, the first suggestion would be to add a swap device if you have disk space available. You would need to add it to the /etc/fstab to continue using after reboot. This is probably the fastest short-term suggestion.&lt;BR /&gt;&lt;BR /&gt;Longer term you might want to consider enabling psuedo-swap or memory swap - it is disabled on your system. The kernel parameter is swapmem_on - set to 1 to enable (you'll need to rebuild kernel and reboot).&lt;BR /&gt;&lt;BR /&gt;Also, check maxswapchunks to insure you'll be able to address all swap configured.</description>
      <pubDate>Tue, 20 Aug 2002 14:33:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789910#M79416</guid>
      <dc:creator>keith persons</dc:creator>
      <dc:date>2002-08-20T14:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems - swap at 100% - DOH!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789911#M79417</link>
      <description>The first thing to add is turning on pseudo-swap.&lt;BR /&gt;&lt;BR /&gt;kernel parm&lt;BR /&gt;swapmem_on 1&lt;BR /&gt;&lt;BR /&gt;yes a reboot is needed&lt;BR /&gt;&lt;BR /&gt;after that you may need to add more swap</description>
      <pubDate>Tue, 20 Aug 2002 14:34:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789911#M79417</guid>
      <dc:creator>John Bolene</dc:creator>
      <dc:date>2002-08-20T14:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems - swap at 100% - DOH!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789912#M79418</link>
      <description>Hi Tim:&lt;BR /&gt;&lt;BR /&gt;I would turn on the kernel 'swapmem_on' to enable pseudoswap.  You will need to reboot, of course.&lt;BR /&gt;&lt;BR /&gt;You could also create additional device swap, but arming pseudoswap will certainly help.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 20 Aug 2002 14:37:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789912#M79418</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-08-20T14:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems - swap at 100% - DOH!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789913#M79419</link>
      <description>If you can't reboot and don't have any free LVOL's available for device swap, you could add&lt;BR /&gt;some filesystem swap at low priority. The best answer is to of course add more memory along with an increase in swap or enabling pseudoswap.&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Aug 2002 14:46:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789913#M79419</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-08-20T14:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems - swap at 100% - DOH!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789914#M79420</link>
      <description>Add more swap space. Make sure maxswapchunks is large enough to use all the space. Add an entry into /etc/fstab for the new space. Make sure the priority is the same as your other swap spaces.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Marty</description>
      <pubDate>Tue, 20 Aug 2002 14:47:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789914#M79420</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-08-20T14:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems - swap at 100% - DOH!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789915#M79421</link>
      <description>Hey all,&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick replies!&lt;BR /&gt;&lt;BR /&gt;Am I correct in thinking that the basic formula for swapsize is (physical memory *2)?&lt;BR /&gt;&lt;BR /&gt;We have SAN disk via a VA7400 attached to this server.  Any issues with putting additional swap space on this?&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Tue, 20 Aug 2002 14:56:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789915#M79421</guid>
      <dc:creator>Timothy Czarnik</dc:creator>
      <dc:date>2002-08-20T14:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems - swap at 100% - DOH!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789916#M79422</link>
      <description>&amp;lt;&lt;AM i="" correct="" in="" thinking="" that="" the="" basic="" formula="" for="" swapsize="" is=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;  It depends on the memory configuration and system usage. For high memory systems , making the swap size twice the size of RAM is a waste of disk space.   &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;WE have="" san="" disk="" via="" a="" va7400="" attached="" to="" this="" server.="" any="" issues="" with="" putting="" additional="" swap="" space="" on="" this=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt; No problem in doing it.  Just make sure the priority of the swap is the same and the sizes of the swap are the same.&lt;BR /&gt;&lt;BR /&gt;In your current situation, you can create a temporary swap space (filesystem or raw) and use it, without rebooting the system.  &lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;raj&lt;BR /&gt;&lt;/WE&gt;&lt;/AM&gt;</description>
      <pubDate>Tue, 20 Aug 2002 15:06:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789916#M79422</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2002-08-20T15:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems - swap at 100% - DOH!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789917#M79423</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;That's is an OLD formula! When there was only a few amount of RAM available in each systems, this formulas was useful. But now almost all systems comes with a good amount of memory and the swap space should be calculated according to the usage only.&lt;BR /&gt;&lt;BR /&gt;By observing the swap and memory usage, and if all Kernel parameters are tuned perfectly, then you can increase the swap space and you could easily calcaulate the amount of swap needed according to the usage.&lt;BR /&gt;&lt;BR /&gt;For the other question, Yes! you can add the swap space on the disk array. Check the swap priority too</description>
      <pubDate>Tue, 20 Aug 2002 15:06:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789917#M79423</guid>
      <dc:creator>Sajid_1</dc:creator>
      <dc:date>2002-08-20T15:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems - swap at 100% - DOH!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789918#M79424</link>
      <description>Hi Timothy&lt;BR /&gt;&lt;BR /&gt;You can run a simple program which give the o/p like this&lt;BR /&gt;&lt;BR /&gt;Also there is small c program that you can run to get teh o/p in the following format if you want :. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Memory Stat total used avail %used &lt;BR /&gt;physical 32764.0 10640.1 22123.9 32% &lt;BR /&gt;active virtual 1784.9 245.5 1539.4 14% &lt;BR /&gt;active real 1963.9 267.1 1696.7 14% &lt;BR /&gt;memory swap 26522.5 5508.9 21013.6 21% &lt;BR /&gt;device swap 3332.0 3332.0 0.0 100% &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have attached the program all you ahve to do is to recomiple it and run it . &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava &lt;BR /&gt;</description>
      <pubDate>Tue, 20 Aug 2002 15:12:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789918#M79424</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-08-20T15:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems - swap at 100% - DOH!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789919#M79425</link>
      <description>Hey all,&lt;BR /&gt;&lt;BR /&gt;It is simply amazing the stuff you learn when fighting fires :)&lt;BR /&gt;&lt;BR /&gt;There is no entry in my /etc/fstab for my current 2 GB swap (/dev/vg00/lvol2).  Is this just assumed in the kernel somewhere?&lt;BR /&gt;&lt;BR /&gt;Also, will turning swapmem_on in the kernel negate my need for additional swap.  That is, should I turn swapmem_on in the kernel before I add more swap space, or do both at the same time.&lt;BR /&gt;&lt;BR /&gt;It looks like I'll be rebooting over lunch anyhow.&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Tue, 20 Aug 2002 15:33:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789919#M79425</guid>
      <dc:creator>Timothy Czarnik</dc:creator>
      <dc:date>2002-08-20T15:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems - swap at 100% - DOH!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789920#M79426</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;For getting details about the primary swap space:&lt;BR /&gt;# lvlnboot -v&lt;BR /&gt;# swapinfo -tam&lt;BR /&gt;# sam&lt;BR /&gt;When you add any additional file system swap, that will make an entry in the fstab file.&lt;BR /&gt;&lt;BR /&gt;For the second question, I would first create the swap space (which you can do online) with SAM, check the outputs with swapinfo -t, and then do the kernel configuration. Once you reconfigure kernel, you need to restart the system!</description>
      <pubDate>Tue, 20 Aug 2002 15:40:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789920#M79426</guid>
      <dc:creator>Sajid_1</dc:creator>
      <dc:date>2002-08-20T15:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems - swap at 100% - DOH!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789921#M79427</link>
      <description>If Oracle is the main application on the system&lt;BR /&gt;you should have very little&lt;BR /&gt;swapping.  Don't let the &lt;BR /&gt;shared memory segment start&lt;BR /&gt;swapping or performance will&lt;BR /&gt;tank big time.&lt;BR /&gt;&lt;BR /&gt;It looks like you may not have the swap mounted if it isn't&lt;BR /&gt;already in fstab.  If so mounting should help&lt;BR /&gt;immediately.  &lt;BR /&gt;&lt;BR /&gt;Oracle has had problems with memory leaks from time to time&lt;BR /&gt;but I think those are all patched.  Last time I had a &lt;BR /&gt;server crash due lack of memory, it was a leak in a &lt;BR /&gt;monitoring program.  Sys admin&lt;BR /&gt;said 2k physical memory free wasn't a problem.</description>
      <pubDate>Tue, 20 Aug 2002 15:50:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789921#M79427</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2002-08-20T15:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems - swap at 100% - DOH!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789922#M79428</link>
      <description>The default swap /dev/vg000/lvol2  will not be in /etc/fstab , what is the system memory , if you ahve lots of physical memeory then do the swapmem_on stuff if the real memopry is less then just add a secondary swap , this can be done online.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Tue, 20 Aug 2002 15:59:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789922#M79428</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-08-20T15:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems - swap at 100% - DOH!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789923#M79429</link>
      <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt; Primary swap (i.e lvol2) won't be listed in fstab file.  Pseudo-swap alone may not solve your swap problem . If youcan  give the details of how much RAM your system has and what applications you are running, it would help in making a approximate estimate of usage.&lt;BR /&gt;&lt;BR /&gt;If you have free disk space, it doesn't harm to throw in a extra swap volume. To create device swap do the following:&lt;BR /&gt;&lt;BR /&gt;Identify a VG which has free space of 2Gb. (since it is the same as your primary swap size).&lt;BR /&gt;&lt;BR /&gt;Then,&lt;BR /&gt;1.  Create a contiguous logical volume:&lt;BR /&gt;&lt;BR /&gt;lvcreate -n swap1 -L size -C y /dev/vgX&lt;BR /&gt;&lt;BR /&gt;2.  Turn swap on in the logical volume:&lt;BR /&gt;&lt;BR /&gt;swapon /dev/vgX/swap1&lt;BR /&gt;&lt;BR /&gt;IMPORTANT:  The default priority for swap is "1".  It is a recommended to have&lt;BR /&gt;     all the swap devices set to the same priority.&lt;BR /&gt;&lt;BR /&gt;3.  Edit the /etc/fstab so that swap will be turned on at boot-up; add the&lt;BR /&gt;    following line:&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;    /dev/vgX/swap1 ... swap pri=1 0 0&lt;BR /&gt;     &lt;BR /&gt;***&lt;BR /&gt;&lt;BR /&gt;  Reboot is not necessary for the above three steps. If you want to enable pseudo swap, then you would need to run SAM, turn swapmem_on kernel bit to value 1  and rebuild the kernel, which would reboot the system .&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;raj</description>
      <pubDate>Tue, 20 Aug 2002 18:21:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789923#M79429</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2002-08-20T18:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems - swap at 100% - DOH!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789924#M79430</link>
      <description>Since swap 100% unused, you don't have any problems with virtual memory. The po (page out) rate in vmstat is also very low. However, if you have changed the default setting of swapmem_on from 1 to 0, then you are indeed completely out of virtual memory.&lt;BR /&gt;&lt;BR /&gt;Here's the simple explanation. When you set swapmem_on=0, *ALL* RAM for user processes must have a unique reservation spot on the swap disk. And if you have 2Gb of swap then you have 2Gb of usable RAM for processes. Since it appears that about 2Gb of RAM is in use, there is no space for any new processes because all the swap disk is currently mapped.&lt;BR /&gt;&lt;BR /&gt;Now, change to swapmem_on=1 and now you will now have 3.5 Gb of virtual memory. This has been discussed several times before in the forums:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x6f537bb04b5cd611abdb0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x6f537bb04b5cd611abdb0090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;By the way, 2Gb is a bit too small for most Oracle systems. Your customers will be a lot happier with 4Gb and your DBAs can do more with SGA to improve performance.</description>
      <pubDate>Wed, 21 Aug 2002 00:49:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-problems-swap-at-100-doh/m-p/2789924#M79430</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-08-21T00:49:06Z</dc:date>
    </item>
  </channel>
</rss>

