<?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 Tuning in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667722#M243095</link>
    <description>Virtual memory usage is what all programs use. It is real RAM when there is enough room and swap space when all the prgrams won't fit into RAM. You reduce virtual memory usage by stopping the big programs. Now that is usually not an option so you ask the developers or the application manufacturer how to make the programs smaller. This usually results in heavy performance penalties.&lt;BR /&gt; &lt;BR /&gt;In otherr words, 95% virtual memory usage means that your machines are severely undersized for RAM. If you double the amount of RAM, the issues all disappear. I know, RAM is expensive but the alternative means reconfiguring programs to run smaller (if possible) and this means performance issues. You already have paging taking place based on swapinfo which in itself is a performance hit. There is no other fix. Run slow or add RAM.</description>
    <pubDate>Thu, 10 Nov 2005 09:28:31 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2005-11-10T09:28:31Z</dc:date>
    <item>
      <title>Swap Tuning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667717#M243090</link>
      <description>Hello guys...&lt;BR /&gt;&lt;BR /&gt;I have an 9000/800/rp7410 server with HP-UX 11i. This server has 4Gb of Physical Memory.&lt;BR /&gt;&lt;BR /&gt;I want to check if my swap configuration is good or not to my server. I have heard that the "ideal" swap area has to be 2 times greater than the physical memory in a server without database. If database like oracle is installed on the server, the swap has to be 3 times greater than the physical memory.&lt;BR /&gt;&lt;BR /&gt;My swapinfo:&lt;BR /&gt;&lt;BR /&gt;root@draco$ 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    1579    2517   39%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -    2354   -2354&lt;BR /&gt;memory     3049    1896    1153   62%&lt;BR /&gt;total      7145    5829    1316   82%       -       0    -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;root@draco$ kmtune | grep swap&lt;BR /&gt;allocate_fs_swapmap         0  -  0                          &lt;BR /&gt;dmp_swapdev_is_vol          0  -  0                          &lt;BR /&gt;maxswapchunks           16384  -  16384                      &lt;BR /&gt;nswapdev                   10  -  10                         &lt;BR /&gt;nswapfs                    10  -  10                         &lt;BR /&gt;remote_nfs_swap             1  -  1                          &lt;BR /&gt;swapmem_on                  1  -  1  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;root@draco$ kmtune -l -q dbc_max_pct                             &lt;BR /&gt;Parameter:      dbc_max_pct         &lt;BR /&gt;Current:        40&lt;BR /&gt;Planned:        40                                                          &lt;BR /&gt;Default:        50                                                          &lt;BR /&gt;Minimum:        -                                                           &lt;BR /&gt;Module:         -                             &lt;BR /&gt;Version:        -                             &lt;BR /&gt;Dynamic:        No&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do you can help me to determine if these are good parameters or not?&lt;BR /&gt;&lt;BR /&gt;Tks,&lt;BR /&gt;&lt;BR /&gt;Rafael M. Braga&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Nov 2005 09:31:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667717#M243090</guid>
      <dc:creator>Rafael Mendonça Braga</dc:creator>
      <dc:date>2005-11-09T09:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Swap Tuning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667718#M243091</link>
      <description>I think your server performance would be better served by adding memory (you're actually paging out 1.54Gb of data (USED for dev swap on lvol2), which means that your system is more likely to be busy doing I/O for page faults than real work... unless of course that 1.54Gb is for processes you don't care about..).&lt;BR /&gt;&lt;BR /&gt;If you can add memory (at least 2Gb to cover what you already know you need, another 4Gb wouldn't be a bad idea [rp7410 can go up to 8 on a single cell board, 16 if you have two boards if I read the spec correctly, so you should be able to manage 8Gb]) then you can monitor your virtual address space consumption (swap reservation: dev + pseudo-swap) to see if you need to add more swap to manage your workload. If you do, your tunables will allow up to 32Gb of device/FS swap without reconfiguration. (Which is good).&lt;BR /&gt;&lt;BR /&gt;All that aside -- the next time you reconfigure the kernel, I would disable remote_nfs_swap. You aren't really using it (since you have only device swap) anyway - but NFS swapping is not a good idea.</description>
      <pubDate>Wed, 09 Nov 2005 09:53:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667718#M243091</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2005-11-09T09:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Swap Tuning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667719#M243092</link>
      <description>Hi:&lt;BR /&gt;Try to tune the swap space from 4gb to 8gb, that means add another 4gb as swap space.&lt;BR /&gt;&lt;BR /&gt;and the dbc_max_pct kernel parameter is not necessary to be so large, 10 is enough for most applications.  Too many buffer cache used by file system may cause performance lack.</description>
      <pubDate>Wed, 09 Nov 2005 20:55:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667719#M243092</guid>
      <dc:creator>Fred.Wu</dc:creator>
      <dc:date>2005-11-09T20:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Swap Tuning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667720#M243093</link>
      <description>It is very important to understand that swapping (more accurately, paging) is a very bad thing for performance. You trade performance for memory but the penalty is very high. If your customers are not concerned about rapid response (many seconds to minutes for a response) then swap is fine. If you don't use all of your swap space, then all the programs will run. Note that swap space is actually used  when there is not enough RAM and this is when paging will dramatically slow down performaqnce (10x to 100x slower). &lt;BR /&gt; &lt;BR /&gt;But swap space is also reserved even though it is not used. In this case, you need enough swap space to cover all processes that may be in RAM at the same time, or less depending on the kernel parameter swapmem_on. When this parameter is 0, then the minimum swap is 1xRAM. If you need to run more processes at the same time, then increase as needed. There is NO valid rule about 2xRAM for swap space. It all depends on swapmem_on and what your processes actually require. Now if you change swapmem_on to 1 (the default), then you can reduce your swap space by as much as 75% of RAM.&lt;BR /&gt; &lt;BR /&gt;Leave the default setting sxwapmem_on=1 and change your dbc_max_pct to 8 to 10. 4Gb of RAM is a good starting point but your swapinfo command shows 40% usage...not goo for performance at all. If you add an additional 4Gb of RAM, swapping should stop and performance should improve significantly.</description>
      <pubDate>Wed, 09 Nov 2005 21:31:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667720#M243093</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-11-09T21:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Swap Tuning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667721#M243094</link>
      <description>Hello guys... Tks for the tips 'till now...&lt;BR /&gt;&lt;BR /&gt;Let try to explain wht I'm trying to tune it...&lt;BR /&gt;&lt;BR /&gt;This server I took as an example, but I have several servers here in the company with a performance monitor installed that are reporting me "Virtual Memory Usage is at 95%".&lt;BR /&gt;&lt;BR /&gt;I think is not a good thing all right?&lt;BR /&gt;&lt;BR /&gt;So I put this server as an example... I would like to know what parameters I have to set to reduce the Virtual Memory Usage...&lt;BR /&gt;&lt;BR /&gt;tks,&lt;BR /&gt;&lt;BR /&gt;Rafael M. Braga</description>
      <pubDate>Thu, 10 Nov 2005 05:55:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667721#M243094</guid>
      <dc:creator>Rafael Mendonça Braga</dc:creator>
      <dc:date>2005-11-10T05:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Swap Tuning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667722#M243095</link>
      <description>Virtual memory usage is what all programs use. It is real RAM when there is enough room and swap space when all the prgrams won't fit into RAM. You reduce virtual memory usage by stopping the big programs. Now that is usually not an option so you ask the developers or the application manufacturer how to make the programs smaller. This usually results in heavy performance penalties.&lt;BR /&gt; &lt;BR /&gt;In otherr words, 95% virtual memory usage means that your machines are severely undersized for RAM. If you double the amount of RAM, the issues all disappear. I know, RAM is expensive but the alternative means reconfiguring programs to run smaller (if possible) and this means performance issues. You already have paging taking place based on swapinfo which in itself is a performance hit. There is no other fix. Run slow or add RAM.</description>
      <pubDate>Thu, 10 Nov 2005 09:28:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667722#M243095</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-11-10T09:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Swap Tuning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667723#M243096</link>
      <description>The best way to tune swapping is to make surre it never happens.&lt;BR /&gt;&lt;BR /&gt;The summary of what I've seen so far indicates the need to get mor ememory.&lt;BR /&gt;&lt;BR /&gt;I think the dbc_max_pct should be scaled back to within a few numbers of dbc_min_pct&lt;BR /&gt;&lt;BR /&gt;That wastes a lot of memory and is very hard on the system when the actual value is being changed.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 10 Nov 2005 09:33:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667723#M243096</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-11-10T09:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Swap Tuning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667724#M243097</link>
      <description>You are likely to improve performance by reducting max_dbc_pct as stated by others.  Also, you may want to consider OnLineJFS which gives you additional mount options to avoid double buffering data in both Oracle and in the buffer cache.  See the attached.</description>
      <pubDate>Thu, 10 Nov 2005 11:14:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-tuning/m-p/3667724#M243097</guid>
      <dc:creator>Ted Buis</dc:creator>
      <dc:date>2005-11-10T11:14:12Z</dc:date>
    </item>
  </channel>
</rss>

