<?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: swapmem_on in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520640#M366969</link>
    <description>Hi Himacs,&lt;BR /&gt;&lt;BR /&gt;In swapinfo -tam:&lt;BR /&gt;memory line: &lt;BR /&gt;     + indicative of how much of pseudo-swap has been reserved  &lt;BR /&gt;     + when present, indicates  pseudo-swap is enabled   (i.e.  swapmem_on kernel paraemter is set to 1, which  is the default. The size of pseudoswap is calculated to be 75% of the size of RAM (a.k.a. memory.)  In other words, it does not refer to acual physical memory use!!!!  Pseudo-swap was designed specifically for large memory systems for which actual swapping is never (or rarely) expected to occur, so thereâ  s less need to use actual physical disk space for swap. &lt;BR /&gt;&lt;BR /&gt;For more information, see swapmem_on(5) , which reads: &lt;BR /&gt;In previous versions of HP-UX, system configuration required sufficient physical swap space for the maximum possible number of processes on the system. This is because HP-UX reserves swap space for a process when it is created, to ensure that a running process never needs to be killed due to insufficient swap. This was difficult, however, for systems needing gigabytes of swap space with gigabytes of physical memory, and those with workloads where the entire load would always be in core. This tunable was created to allow system swap space to be less than core memory. To accomplish this, a portion of physical memory is set aside as 'pseudo-swap' space. While actual swap space is still available, processes still reserve all the swap they will need at fork or execute time from the physical device or file system swap. Once this swap is completely used, new processes do not reserve swap, and each page which would have been swapped to the physical device or file system is instead locked in memory and counted as part of the pseudo-swap space.</description>
    <pubDate>Sun, 25 Oct 2009 07:57:16 GMT</pubDate>
    <dc:creator>R.K. #</dc:creator>
    <dc:date>2009-10-25T07:57:16Z</dc:date>
    <item>
      <title>swapmem_on</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520639#M366968</link>
      <description>Hi Admin,&lt;BR /&gt;&lt;BR /&gt;My swapinfo  shows below output.&lt;BR /&gt;&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev        8192     808    7384   10%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        6144     814    5330   13%       0       -    1  /dev/vg00/lvswap&lt;BR /&gt;dev        2048     696    1352   34%       0       -    1  /dev/vg00/lvol13&lt;BR /&gt;reserve       -    8756   -8756&lt;BR /&gt;total     16384   11074    5310   68%       -       0    -&lt;BR /&gt;&lt;BR /&gt;Please note that memory field details is not present.I heard we need to enable swapmem_on parameter for the same.&lt;BR /&gt;&lt;BR /&gt;What are the advantages by enabling swapmem_on?&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;himacs&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 25 Oct 2009 07:20:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520639#M366968</guid>
      <dc:creator>himacs</dc:creator>
      <dc:date>2009-10-25T07:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: swapmem_on</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520640#M366969</link>
      <description>Hi Himacs,&lt;BR /&gt;&lt;BR /&gt;In swapinfo -tam:&lt;BR /&gt;memory line: &lt;BR /&gt;     + indicative of how much of pseudo-swap has been reserved  &lt;BR /&gt;     + when present, indicates  pseudo-swap is enabled   (i.e.  swapmem_on kernel paraemter is set to 1, which  is the default. The size of pseudoswap is calculated to be 75% of the size of RAM (a.k.a. memory.)  In other words, it does not refer to acual physical memory use!!!!  Pseudo-swap was designed specifically for large memory systems for which actual swapping is never (or rarely) expected to occur, so thereâ  s less need to use actual physical disk space for swap. &lt;BR /&gt;&lt;BR /&gt;For more information, see swapmem_on(5) , which reads: &lt;BR /&gt;In previous versions of HP-UX, system configuration required sufficient physical swap space for the maximum possible number of processes on the system. This is because HP-UX reserves swap space for a process when it is created, to ensure that a running process never needs to be killed due to insufficient swap. This was difficult, however, for systems needing gigabytes of swap space with gigabytes of physical memory, and those with workloads where the entire load would always be in core. This tunable was created to allow system swap space to be less than core memory. To accomplish this, a portion of physical memory is set aside as 'pseudo-swap' space. While actual swap space is still available, processes still reserve all the swap they will need at fork or execute time from the physical device or file system swap. Once this swap is completely used, new processes do not reserve swap, and each page which would have been swapped to the physical device or file system is instead locked in memory and counted as part of the pseudo-swap space.</description>
      <pubDate>Sun, 25 Oct 2009 07:57:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520640#M366969</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2009-10-25T07:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: swapmem_on</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520641#M366970</link>
      <description>&amp;gt;What are the advantages by enabling swapmem_on?&lt;BR /&gt;&lt;BR /&gt;On 11.31, this tunable was removed because it is always a good thing.  What OS version to you have?</description>
      <pubDate>Sun, 25 Oct 2009 18:00:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520641#M366970</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-10-25T18:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: swapmem_on</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520642#M366971</link>
      <description>In simple terms it enables you to start more programs with less swap memory.&lt;BR /&gt;&lt;BR /&gt;eg. If you have 4 GB of swap you would be able to start 4GB of programs (as you have to reserve space in swap to start a program), but ur swap is never fully used so it kindda waste of space.&lt;BR /&gt;&lt;BR /&gt;With swapmem_on you would be able to start 4G of program with only 1G of swap(approx 75% of 4G)&lt;BR /&gt; reason being system rarely swap the whole program at a time.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Oct 2009 00:45:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520642#M366971</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2009-10-26T00:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: swapmem_on</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520643#M366972</link>
      <description>himacs,&lt;BR /&gt;&lt;BR /&gt;pseudo swap:  System memory used for swap space that allows users to execute processes in memory without allocating&lt;BR /&gt;physical swap. Pseudo-swap is controlled by the operating system parameter swapmem_on which by default set to 1. that means enabled.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What is the os version you have: ,&lt;BR /&gt;&lt;BR /&gt;For 11.31 the tunable swapmem_on has been obsoleted. Pseudo-swap will always be enabled, as was the default for previous releases of HP-UX. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For details Check out: [ Pseudo-Swap Space ]&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/1218/mem_mgt.html" target="_blank"&gt;http://docs.hp.com/en/1218/mem_mgt.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hth,&lt;BR /&gt;Raj.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Oct 2009 01:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520643#M366972</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2009-10-26T01:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: swapmem_on</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520644#M366973</link>
      <description>Hi Admins,&lt;BR /&gt;&lt;BR /&gt;Thanx for the responses.&lt;BR /&gt;&lt;BR /&gt;My server version is 11.23&lt;BR /&gt;&lt;BR /&gt;my server memory usage is high most of the time.So by enabling swapon_mem i can reduce the high usage..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;himacs</description>
      <pubDate>Mon, 26 Oct 2009 02:39:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520644#M366973</guid>
      <dc:creator>himacs</dc:creator>
      <dc:date>2009-10-26T02:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: swapmem_on</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520645#M366974</link>
      <description>&amp;gt;my server memory usage is high most of the time.  So by enabling swapon_mem I can reduce the high usage?&lt;BR /&gt;&lt;BR /&gt;I doubt it will make a difference.&lt;BR /&gt;Are you running into out of swap space error?  Your swapinfo total was only 68%.&lt;BR /&gt;Is your buffer cache parms configured too high?</description>
      <pubDate>Mon, 26 Oct 2009 03:01:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520645#M366974</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-10-26T03:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: swapmem_on</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520646#M366975</link>
      <description>Hi Denis,&lt;BR /&gt;&lt;BR /&gt;Most of the time my total memory usage is above 85% and recently we have upgraded the memory.&lt;BR /&gt;and whats buffer cache parms..&lt;BR /&gt;&lt;BR /&gt;If Enbaling swapon_mem does not resolve issue,what are the possibilities we can consider?&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;himacs</description>
      <pubDate>Mon, 26 Oct 2009 03:06:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520646#M366975</guid>
      <dc:creator>himacs</dc:creator>
      <dc:date>2009-10-26T03:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: swapmem_on</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520647#M366976</link>
      <description>himacs,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;my server memory usage is high most of the time.So by enabling swapon_mem i can reduce the high usage..&lt;BR /&gt;&lt;BR /&gt;Is it swap or physical memory you are refering as high. ?&lt;BR /&gt;&lt;BR /&gt;- What is the current value of swapmem_on :&lt;BR /&gt;# kctune | grep -i swapmem&lt;BR /&gt;&lt;BR /&gt;- swapmem_on when enabled it use physical memory to serve processes insted of allocating from  swap memory.  As mentioned earlier. If you are running out of physical memory , you have to add physical memory. &lt;BR /&gt;- Also swap space usage  looks quite high. &lt;BR /&gt;- What is the ratio of physical memory vs swap memory configured in your system.&lt;BR /&gt;- You may add more device swap and see if the swap usage comes down. Then performance will improve little bit. &lt;BR /&gt;&lt;BR /&gt;- Check paging activity with :&lt;BR /&gt;# vmstat -3 -5  &lt;BR /&gt;( look at the pi/po value , a non zero value represents paging activity that is not good, do you see heavy paging..) &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hth,&lt;BR /&gt;Raj.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Oct 2009 03:10:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520647#M366976</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2009-10-26T03:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: swapmem_on</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520648#M366977</link>
      <description>himacs,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;memory usage is above 85% and recently we have upgraded the memory.&lt;BR /&gt;&lt;BR /&gt;- Have you added the extra swap space accordingly after adding the memory. Swap can be 150 or 200% of physical memory.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hth,&lt;BR /&gt;Raj.&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Oct 2009 03:12:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520648#M366977</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2009-10-26T03:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: swapmem_on</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520649#M366978</link>
      <description>Hi Raj,&lt;BR /&gt;&lt;BR /&gt;Thanx for the response.&lt;BR /&gt;&lt;BR /&gt;Server memory is 12 GB&lt;BR /&gt;&lt;BR /&gt;Total swap memory is 16 GB&lt;BR /&gt;&lt;BR /&gt;swapinfo -atm&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        8192     550    7642    7%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        6144     550    5594    9%       0       -    1  /dev/vg00/lvswap&lt;BR /&gt;dev        2048     442    1606   22%       0       -    1  /dev/vg00/lvol13&lt;BR /&gt;reserve       -   10187  -10187&lt;BR /&gt;total     16384   11729    4655   72%       -       0    -&lt;BR /&gt;&lt;BR /&gt;swapmem_on is not enable&lt;BR /&gt;&lt;BR /&gt;kctune |grep swapmem_on&lt;BR /&gt;swapmem_on                            0  0&lt;BR /&gt;&lt;BR /&gt;I will provide u vmstat putput once business hours starts.&lt;BR /&gt;&lt;BR /&gt;Please suggest on this&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;himacs</description>
      <pubDate>Mon, 26 Oct 2009 03:23:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520649#M366978</guid>
      <dc:creator>himacs</dc:creator>
      <dc:date>2009-10-26T03:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: swapmem_on</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520650#M366979</link>
      <description>himacs,&lt;BR /&gt;&lt;BR /&gt;Hmm..! &lt;BR /&gt;&amp;gt;Total swap memory is 16 GB&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;16GB (swap memory)  is not enough  for 12GB physical memory . Thats why you are seeing more swap usage .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- You should have 18 GB swap space,  20-24GB would be better .&lt;BR /&gt;- Try to add a 4 to 8 GB LV and configure as swap space. So that it will balance the swap space with physical memory. &lt;BR /&gt;- This can be done online if you have space on the vg00 or any other vg that can be allocated for swap space.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hth,&lt;BR /&gt;Raj. &lt;BR /&gt;</description>
      <pubDate>Mon, 26 Oct 2009 03:35:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520650#M366979</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2009-10-26T03:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: swapmem_on</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520651#M366980</link>
      <description>&amp;gt; swapmem_on is not enable&lt;BR /&gt;&lt;BR /&gt;If you enable swapmem_on, you will have pseudo swap enabled and it will allocate  physical memory for processes and will not allocate more swap memory, so result you may see release of little bit of swap memory.&lt;BR /&gt;&lt;BR /&gt;Btw, it looks like you need to add some swap space, at least 2-4GB.&lt;BR /&gt;&lt;BR /&gt;Hth,&lt;BR /&gt;Raj.</description>
      <pubDate>Mon, 26 Oct 2009 03:41:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520651#M366980</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2009-10-26T03:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: swapmem_on</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520652#M366981</link>
      <description>&amp;gt;Server memory is 12 GB&lt;BR /&gt;&amp;gt;Total swap memory is 16 GB&lt;BR /&gt;&lt;BR /&gt;By enabling swapmem_on, you will increase your total swap to ~ 25 Gb.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;what's buffer cache parms?&lt;BR /&gt;&lt;BR /&gt;dbc_min_pct, dbc_max_pct&lt;BR /&gt;kctune | grep dbc_&lt;BR /&gt;&lt;BR /&gt;&amp;gt;If enabling swapmem_on does not resolve issue, what are the possibilities we can consider?&lt;BR /&gt;&lt;BR /&gt;More memory, more swap, reduce buffer cache or reduce piggy applications.&lt;BR /&gt;What is your real problem?&lt;BR /&gt;A total memory usage of 100% is usually a good thing.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Raj: What is the current value of swapmem_on?&lt;BR /&gt;&lt;BR /&gt;Why are you asking this?  You must trust in the swapinfo(1m).</description>
      <pubDate>Mon, 26 Oct 2009 03:46:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520652#M366981</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-10-26T03:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: swapmem_on</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520653#M366982</link>
      <description>Dennis,  correct.. , memory line is not there ,  swapinfo has the required info.  thanks! .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Oct 2009 04:00:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520653#M366982</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2009-10-26T04:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: swapmem_on</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520654#M366983</link>
      <description>If things don't improve even after enabling swapmem_on, you have two options:&lt;BR /&gt;1) Add more RAM space (recommended)&lt;BR /&gt;2) Add more swap space.</description>
      <pubDate>Mon, 26 Oct 2009 04:16:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapmem-on/m-p/4520654#M366983</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2009-10-26T04:16:51Z</dc:date>
    </item>
  </channel>
</rss>

