<?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: pseudo swap enable/disable in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860448#M276641</link>
    <description>You are right at the cusp of actually swapping --- although you might think that you should be showing about 12GiB of swap actually in use. &lt;BR /&gt;&lt;BR /&gt;Let me see if I can give you an example that will mimic your situation. Suppose that I have a process that does a malloc() of a 4GiB chunk of memory. That will immediately increase the reserved chunk of memory but because the process hasn't actually accessed the memory yet the USED value does not change. Some of your processes have apparently done something very similar (ie allocated memory but haven't actually used (accessed) it yet. It's rather common for some applications to allocate very large chunks of memory but initially actually access only very small portions of it. In any event, the answer is to add more swap swapspace. In your case, swapmem_on=1 will only appear to fix things and only temporarily. Now the real answer (because almost certainly the memory is going to be used) is to add more physical memory and more swap space. If you can find some way to better tune the applications to use less memory that is also an option. Playing with the the buffer cache is only going to change things by 0.5GiB or so and that is too small to really affect your situation much. You really need to add about another 12GiB of memory and still a bit more would be nice. In your case (and especially if you are able to install more memory), I would disable dynamic buffer cache and set it to a static size of about 1GiB or so by setting bufpages to a non-zero value.&lt;BR /&gt;</description>
    <pubDate>Mon, 11 Sep 2006 12:18:22 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2006-09-11T12:18:22Z</dc:date>
    <item>
      <title>pseudo swap enable/disable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860444#M276637</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;We have an RP8400 SAP server running 11i with 12 CPUs and 24GB of RAM. We have been facing memory constraints with this system. &lt;BR /&gt;&lt;BR /&gt;After going through HP-UX Performance cook book, man pages, other manuals on kernel tuning etc, we decided to set pseudoswap disabled. swapmem_on to 0. We have 32GB of device swap enabled for this device and we thought pseudo swap is not required. After this there were some of the process failing with an error-insufficient swap space, fork failed. We had to revert the change and system is back to old state now, with memory constraints. &lt;BR /&gt;&lt;BR /&gt;Why and how can this happen please? &lt;BR /&gt;&lt;BR /&gt;Swapinfo -tam output and some of the related parameters are attached. I admit dbc_min and max requires further tuning. How much can be a good value? &lt;BR /&gt;&lt;BR /&gt;swapinfo o/p shows in PCT used column, dev is 0% used, but the total value is 100%. Is there anyhing wrong with this o/p?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Sudheer</description>
      <pubDate>Mon, 11 Sep 2006 10:52:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860444#M276637</guid>
      <dc:creator>sudheer_7</dc:creator>
      <dc:date>2006-09-11T10:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: pseudo swap enable/disable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860445#M276638</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Swap settings require a reboot to take effect.&lt;BR /&gt;&lt;BR /&gt;I also think you may be setting too much swap for this large memory system.&lt;BR /&gt;&lt;BR /&gt;This document may be helpful.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/search.do?searchString=UPERFKBAN00000726&amp;amp;docType=Security&amp;amp;docType=Patch&amp;amp;docType=EngineerNotes&amp;amp;docType=BugReports&amp;amp;docType=Hardware&amp;amp;docType=ReferenceMaterials&amp;amp;docType=ThirdParty&amp;amp;hpweb_printable=true&amp;amp;searchCrit=allwords&amp;amp;search.x=28&amp;amp;admit=-682735245+1157990496963+28353475&amp;amp;mode=id&amp;amp;category=c0&amp;amp;search.y=8" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/search.do?searchString=UPERFKBAN00000726&amp;amp;docType=Security&amp;amp;docType=Patch&amp;amp;docType=EngineerNotes&amp;amp;docType=BugReports&amp;amp;docType=Hardware&amp;amp;docType=ReferenceMaterials&amp;amp;docType=ThirdParty&amp;amp;hpweb_printable=true&amp;amp;searchCrit=allwords&amp;amp;search.x=28&amp;amp;admit=-682735245+1157990496963+28353475&amp;amp;mode=id&amp;amp;category=c0&amp;amp;search.y=8&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 11 Sep 2006 11:01:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860445#M276638</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-09-11T11:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: pseudo swap enable/disable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860446#M276639</link>
      <description>SEP, &lt;BR /&gt;&lt;BR /&gt;Thanks for your reply. The system has been rebooted with the swapmem_on set to 0 as well as 1. &lt;BR /&gt;&lt;BR /&gt;I have seen your earlier notes also on similar subjects, but could not get any clue on my current problem. I am also unable to open the document thread you have copied.&lt;BR /&gt;&lt;BR /&gt;My concerns are pseudo swap should take effect only once the device swap utilization is over. Why disabling pseudo swap lead me to problems? And also why there is a descrepency in the swapinfo output?&lt;BR /&gt;&lt;BR /&gt;Sudheer</description>
      <pubDate>Mon, 11 Sep 2006 11:29:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860446#M276639</guid>
      <dc:creator>sudheer_7</dc:creator>
      <dc:date>2006-09-11T11:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: pseudo swap enable/disable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860447#M276640</link>
      <description>Sudheer!&lt;BR /&gt;&lt;BR /&gt;In the swapinfo -tam that you sent, I can see that in that specific case you disable pseudo-swap becuase your memory line is missing in the output.&lt;BR /&gt;I also notice that even though your system is not swapping, you have reached the %100 reserved swap ( This is very important becuase once you reached that level you are going to start getting  fork failed error messages ).&lt;BR /&gt;&lt;BR /&gt;Once thing to think about maybe is what is consuming all your memory. Other thing please re-enable your pseudo_swap.&lt;BR /&gt;&lt;BR /&gt;Take a look at this doc to analyse memory issues on your machine:&lt;BR /&gt;&lt;BR /&gt;ftp://eh:spear9@hprc.external.hp.com/memory.htm&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jaime</description>
      <pubDate>Mon, 11 Sep 2006 11:56:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860447#M276640</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2006-09-11T11:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: pseudo swap enable/disable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860448#M276641</link>
      <description>You are right at the cusp of actually swapping --- although you might think that you should be showing about 12GiB of swap actually in use. &lt;BR /&gt;&lt;BR /&gt;Let me see if I can give you an example that will mimic your situation. Suppose that I have a process that does a malloc() of a 4GiB chunk of memory. That will immediately increase the reserved chunk of memory but because the process hasn't actually accessed the memory yet the USED value does not change. Some of your processes have apparently done something very similar (ie allocated memory but haven't actually used (accessed) it yet. It's rather common for some applications to allocate very large chunks of memory but initially actually access only very small portions of it. In any event, the answer is to add more swap swapspace. In your case, swapmem_on=1 will only appear to fix things and only temporarily. Now the real answer (because almost certainly the memory is going to be used) is to add more physical memory and more swap space. If you can find some way to better tune the applications to use less memory that is also an option. Playing with the the buffer cache is only going to change things by 0.5GiB or so and that is too small to really affect your situation much. You really need to add about another 12GiB of memory and still a bit more would be nice. In your case (and especially if you are able to install more memory), I would disable dynamic buffer cache and set it to a static size of about 1GiB or so by setting bufpages to a non-zero value.&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Sep 2006 12:18:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860448#M276641</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-09-11T12:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: pseudo swap enable/disable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860449#M276642</link>
      <description>Hi Sudheer,&lt;BR /&gt;&lt;BR /&gt;has your dba required that the value for shm_max be set to two thirds of the physical memory?&lt;BR /&gt;If not, go and ask him what the database requires/recommends, as this is quite important.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Mon, 11 Sep 2006 13:00:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860449#M276642</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2006-09-11T13:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: pseudo swap enable/disable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860450#M276643</link>
      <description>The parameter is swapmem_on and since it dramatically affects how memory is assigned, changing it from 1 to 0 will require a reboot. Now your dbc_max_pct is 8 which means that about 1600 megs is used for the buffer cache. You might reduce it to 6 but it will not halp your memory problems. Almost *every* error message about insufficient swap or lack of memory is from an old 32bit program that is constrained by maxdsiz and shared memory fragmentation.&lt;BR /&gt; &lt;BR /&gt;Managing 32bit programs when they require large amounts of memory requires a lot of knowledge about 32bit program limits. With 24 Gb of RAM, you do not any problems with physical memory -- all your problems are with the severe limitations of 32 bit programs. By default, you are limited to a maximum of about 960 megs local memory. By changing compile options to EXEC_MAGIC, you can get up to 1750 megs of local memory, and with chatr options +q3p and +q4p, your program may be able to get as much as 3700 megs of RAM. These documents will help explain the issues:&lt;BR /&gt; &lt;BR /&gt;32 bit programs&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062686726" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062686726&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/docDisplay.do?doc%3CBR%3ELocale=en_US&amp;amp;docId=200000009254450" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/docDisplay.do?doc%3CBR%3ELocale=en_US&amp;amp;docId=200000009254450&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;Shared memory&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/943/memwn1_4.pdf" target="_blank"&gt;http://docs.hp.com/en/943/memwn1_4.pdf&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;memory windows&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/943/memwn1_4.pdf" target="_blank"&gt;http://docs.hp.com/en/943/memwn1_4.pdf&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;Note that the current value of ulimit in your shell or the startup environment for your programs will affect large programs too.</description>
      <pubDate>Mon, 11 Sep 2006 13:29:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860450#M276643</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-09-11T13:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: pseudo swap enable/disable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860451#M276644</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Thanks for all the replies. &lt;BR /&gt;&lt;BR /&gt;Again what I do not understand is why disabling pseudo swap, caused failure of some of the processes .?</description>
      <pubDate>Wed, 13 Sep 2006 01:09:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860451#M276644</guid>
      <dc:creator>sudheer_7</dc:creator>
      <dc:date>2006-09-13T01:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: pseudo swap enable/disable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860452#M276645</link>
      <description>Sudheer,&lt;BR /&gt;&lt;BR /&gt;The thing is this, if you do not have pseudo-swap enable, then the only thing that you got left is file swap and device swap.&lt;BR /&gt;If you reserved ( not used but reserved ) the 100 % of swap in your system, the no new processes are going to start, becuase for every new process that start a bit of swap space have to be reserved.&lt;BR /&gt;&lt;BR /&gt;Pseudo-swap is not physical swap space backed up by disk and it's not memory either, it's like an imitation of it. Once the system reserved all your swap areas, the kernel will look for pseudo-swap to go beyond that limitation. That is why you started getting fork failed errors becuase you disabled pseudo-swap.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jaime.</description>
      <pubDate>Wed, 13 Sep 2006 06:12:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860452#M276645</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2006-09-13T06:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: pseudo swap enable/disable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860453#M276646</link>
      <description>Thank you Jaime.. &lt;BR /&gt;&lt;BR /&gt;I am closing thread with that...</description>
      <pubDate>Thu, 14 Sep 2006 05:20:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-swap-enable-disable/m-p/3860453#M276646</guid>
      <dc:creator>sudheer_7</dc:creator>
      <dc:date>2006-09-14T05:20:50Z</dc:date>
    </item>
  </channel>
</rss>

