<?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 Memory and Swap issues in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498121#M843871</link>
    <description>Hi.&lt;BR /&gt;&lt;BR /&gt;I have a SD32 server with 16 processors and 24GB RAM. It have 4 swap devices of 12GB each one and parameter swapmem_on is equal to 1. Besides, that server is hosting 1 Oracle 9i DB instance.&lt;BR /&gt;&lt;BR /&gt;The issue is the server is showing high level of paging when it still have physical memory available and use of swap devices on disk is pretty high.&lt;BR /&gt;&lt;BR /&gt;Any idea ? how could I understand and tune that behavior ?</description>
    <pubDate>Fri, 04 Mar 2005 15:04:53 GMT</pubDate>
    <dc:creator>Rafael Gutierrez</dc:creator>
    <dc:date>2005-03-04T15:04:53Z</dc:date>
    <item>
      <title>Memory and Swap issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498121#M843871</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;I have a SD32 server with 16 processors and 24GB RAM. It have 4 swap devices of 12GB each one and parameter swapmem_on is equal to 1. Besides, that server is hosting 1 Oracle 9i DB instance.&lt;BR /&gt;&lt;BR /&gt;The issue is the server is showing high level of paging when it still have physical memory available and use of swap devices on disk is pretty high.&lt;BR /&gt;&lt;BR /&gt;Any idea ? how could I understand and tune that behavior ?</description>
      <pubDate>Fri, 04 Mar 2005 15:04:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498121#M843871</guid>
      <dc:creator>Rafael Gutierrez</dc:creator>
      <dc:date>2005-03-04T15:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Memory and Swap issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498122#M843872</link>
      <description>What are your settings for buffer cache?? Dynamic or static??&lt;BR /&gt;kmtune -lq dbc_max_ct&lt;BR /&gt;kmtune -lq dbc_min_pct&lt;BR /&gt;kmtune -lq nbuf&lt;BR /&gt;kmtune -lq bufpages&lt;BR /&gt;&lt;BR /&gt;vmstat 5 5&lt;BR /&gt;swapinfo -mat&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Mar 2005 15:08:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498122#M843872</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-03-04T15:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Memory and Swap issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498123#M843873</link>
      <description>How are you measuring this high level of paging?  Are they page-ins or page-outs?  Run "vmstat 1 10" and look at the "po" column.  Activity here is indicative of a problem.  Activity in the "pi" column is not a cause for concern.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 04 Mar 2005 15:09:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498123#M843873</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-03-04T15:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Memory and Swap issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498124#M843874</link>
      <description>Are you seeing high pageout rates? Pagein rates don't matter. Please post your swapinfo -tam output and either vmstat or glance output showing paging. It would also be good to see you ipcs -ma output.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;One possible explanation for device swap showing as used is that memory-mapped files are in use. You may also have huge chunks of shared memory allocated from defunct oracle instances.&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Mar 2005 15:13:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498124#M843874</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-03-04T15:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Memory and Swap issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498125#M843875</link>
      <description>It's probably a good idea to also post your kmtune output.</description>
      <pubDate>Fri, 04 Mar 2005 15:26:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498125#M843875</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-03-04T15:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Memory and Swap issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498126#M843876</link>
      <description>Hi guys, answers for all of you...&lt;BR /&gt;&lt;BR /&gt;ECARV10D - root # kmtune -lq dbc_max_pct&lt;BR /&gt;Parameter:dbc_max_pct         &lt;BR /&gt;Current:15&lt;BR /&gt;Planned:15                                   Default:50                                   Dynamic:No&lt;BR /&gt;ECARV10D - root # kmtune -lq dbc_min_pct&lt;BR /&gt;Parameter:dbc_min_pct         &lt;BR /&gt;Current:5&lt;BR /&gt;Planned:5                                    Default:5                                    Dynamic:No&lt;BR /&gt;ECARV10D - root # kmtune -lq nbuf&lt;BR /&gt;Parameter:nbuf                &lt;BR /&gt;Current:0&lt;BR /&gt;Planned:0                                    Default:0&lt;BR /&gt;Dynamic:No&lt;BR /&gt;ECARV10D - root # kmtune -lq bufpages&lt;BR /&gt;Parameter:bufpages            &lt;BR /&gt;Current:0&lt;BR /&gt;Planned:(NBUF*2)&lt;BR /&gt;Default:(NBUF*2)           &lt;BR /&gt;Dynamic:No&lt;BR /&gt;&lt;BR /&gt;ECARV10D - root # vmstat 5 5&lt;BR /&gt;         procs           memory                   page                          &lt;BR /&gt;    faults       cpu&lt;BR /&gt;    r     b     w      avm    free   re   at    pi   po    fr   de    sr     in &lt;BR /&gt;    sy    cs  us sy id&lt;BR /&gt;    8     2     0  2454053  219459  461   15    25   35     1    0   644   7461 &lt;BR /&gt; 81073  3492  45  4 51&lt;BR /&gt;    8     2     0  2454053  214918  507   12     5    0     0    0     0   9630 &lt;BR /&gt; 82118  3271  42  4 54&lt;BR /&gt;    7     3     0  2414161  209127  767   12     8    0     0    0     0   8897 &lt;BR /&gt; 70750  2991  37  3 60&lt;BR /&gt;    7     3     0  2414161  207413  529   12     5    0     0    0     0   8784 &lt;BR /&gt; 73989  2985  39  3 58&lt;BR /&gt;    7     3     0  2436193  209589  348   25     3    0     0    0     0   7980 &lt;BR /&gt; 65597  2655  42  3 54&lt;BR /&gt;&lt;BR /&gt;ECARV10D - root # swapinfo -mat&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       12288     351   11937    3%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev       12288     347   11941    3%       0       -    1  /dev/vg00/lvol9&lt;BR /&gt;dev       12272     358   11914    3%       0       -    1  /dev/vg02/lvol1&lt;BR /&gt;dev       12272     361   11911    3%       0       -    1  /dev/vg10/lvol1&lt;BR /&gt;reserve       -   20503  -20503&lt;BR /&gt;memory    18455    4749   13706   26%&lt;BR /&gt;total     67575   26669   40906   39%       -       0    -</description>
      <pubDate>Fri, 04 Mar 2005 16:28:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498126#M843876</guid>
      <dc:creator>Rafael Gutierrez</dc:creator>
      <dc:date>2005-03-04T16:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Memory and Swap issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498127#M843877</link>
      <description>ECARV10D - root # ipcs -ma&lt;BR /&gt;IPC status from /dev/kmem as of Fri Mar  4 16:33:24 2005&lt;BR /&gt;T         ID     KEY        MODE        OWNER     GROUP   CREATOR    CGROUP NATT&lt;BR /&gt;CH      SEGSZ  CPID  LPID   ATIME    DTIME    CTIME &lt;BR /&gt;Shared Memory:&lt;BR /&gt;m          0 0x41180262 --rw-rw-rw-      root      root      root      root     &lt;BR /&gt; 0        348   856   856 22:47:33 22:47:33 22:47:27&lt;BR /&gt;m          1 0x4e0c0002 --rw-rw-rw-      root      root      root      root     &lt;BR /&gt; 1      61760   856   856 22:47:29 22:47:33 22:47:27&lt;BR /&gt;m          2 0x41306b32 --rw-rw-rw-      root      root      root      root     &lt;BR /&gt; 1       8192   856   868 22:47:29 22:47:27 22:47:27&lt;BR /&gt;m      11267 0x0c6629c9 --rw-r-----      root      root      root      root     &lt;BR /&gt; 3   59227784  2202 28504 18:52:35 14:18:17 22:48:47&lt;BR /&gt;m          4 0x06347849 --rw-rw-rw-      root      root      root      root     &lt;BR /&gt; 1      77384  2202  2325 22:48:53 22:48:47 22:48:47&lt;BR /&gt;m       4101 0x4910364e --rw-r--r--      root      root      root      root     &lt;BR /&gt; 0      22908  2198  7683 16:33:12 16:33:12 22:48:51&lt;BR /&gt;m      64518 0x5e141613 --rw-------      root      root      root      root     &lt;BR /&gt; 1        512  2836  2836 22:49:29 no-entry 22:49:29&lt;BR /&gt;m      86023 0x00000000 --rw-r-----    ora500       dba    ora500       dba   12&lt;BR /&gt;17 6442450944 27524  3213 16:33:24 16:33:24  4:11:33&lt;BR /&gt;m       7176 0x3c4f4c74 --rw-r-----    ora500       dba    ora500       dba   12&lt;BR /&gt;17 1991241728 27524  3213 16:33:24 16:33:24  4:11:33&lt;BR /&gt;&lt;BR /&gt;Why I'm getting po=35 at the first line of vmstat, but the other lines po is equal to zero (0) ?&lt;BR /&gt;&lt;BR /&gt;Thanks, Rafael.</description>
      <pubDate>Fri, 04 Mar 2005 16:35:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498127#M843877</guid>
      <dc:creator>Rafael Gutierrez</dc:creator>
      <dc:date>2005-03-04T16:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Memory and Swap issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498128#M843878</link>
      <description>I'm uploading kmtune output.</description>
      <pubDate>Fri, 04 Mar 2005 16:40:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498128#M843878</guid>
      <dc:creator>Rafael Gutierrez</dc:creator>
      <dc:date>2005-03-04T16:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Memory and Swap issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498129#M843879</link>
      <description>What makes you think that your server has swap problem?? What does glance -m says?? Do you experience performance problems. Looking at your figures, everything looks normal except po of 35. Try resetting vmstat conter (-z option) and watch vmstat.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Fri, 04 Mar 2005 16:43:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498129#M843879</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-03-04T16:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Memory and Swap issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498130#M843880</link>
      <description>Your pageout rates are so low as to be insignificant. You didn't do an ipcs -ma output so I suspect you have large chunks of shared memory allocated. One thing to note is that your dbc_max_pct (even at 15% - 3.6GB) is too large. I would set bufpages to a non-zero value to pin the buffer cache at a fixed level. That makes much more sense on a system with large amounts of memory. About the absolute maximum buffer cache size on an 11.11 box is 1600MB (bufpages=409600) and that is quite generous. 1200MB would work quite well. Because you have more swap than physical memory, swapmem_on=1 serves no purpose. I would turn it off. The small amount of used device swap could very easily be memory-mapped files and if so is no problem at all. Although not related make sure that your timeslice value is not set to 1 but rather is set to 10 or very nearly so.</description>
      <pubDate>Fri, 04 Mar 2005 16:44:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498130#M843880</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-03-04T16:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Memory and Swap issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498131#M843881</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;Clay, you can see ipcs output in an earlier reply. &lt;BR /&gt;&lt;BR /&gt;After vmstat -z command, I haven't found po greater than zero anymore (I have executed vmstat several times).&lt;BR /&gt;&lt;BR /&gt;I have another question: bufpages=nbuf*2 and nbuf=0 currently, how can I guess nbuf value according to server configuration ?&lt;BR /&gt;&lt;BR /&gt;Thanks, Rafael.</description>
      <pubDate>Fri, 04 Mar 2005 17:43:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498131#M843881</guid>
      <dc:creator>Rafael Gutierrez</dc:creator>
      <dc:date>2005-03-04T17:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Memory and Swap issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498132#M843882</link>
      <description>My question for Clay.&lt;BR /&gt;&lt;BR /&gt;If nbuf and bufpages both are set non-zero, then how cache is calculated??</description>
      <pubDate>Fri, 04 Mar 2005 17:47:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498132#M843882</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-03-04T17:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Memory and Swap issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498133#M843883</link>
      <description>In almost every case, the default behavior with nbuf set to zero is fine. I would set bufpages as I mentioned earlier and leave nbuf=0.</description>
      <pubDate>Fri, 04 Mar 2005 17:53:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498133#M843883</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-03-04T17:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Memory and Swap issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498134#M843884</link>
      <description>RAC,&lt;BR /&gt;&lt;BR /&gt;compute it as mentionned here&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/939/KCParms/KCparam.Nbuf.html" target="_blank"&gt;http://docs.hp.com/en/939/KCParms/KCparam.Nbuf.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/939/KCParms/KCparam.BufPages.html" target="_blank"&gt;http://docs.hp.com/en/939/KCParms/KCparam.BufPages.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;++Cyrille</description>
      <pubDate>Mon, 07 Mar 2005 09:01:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498134#M843884</guid>
      <dc:creator>MAUCCI_2</dc:creator>
      <dc:date>2005-03-07T09:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Memory and Swap issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498135#M843885</link>
      <description>Thank you everybody. The memory and swap usage is really hard to understand in HP-UX, but it's more clear for me now.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Rafael GZ.</description>
      <pubDate>Mon, 21 Mar 2005 15:28:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-and-swap-issues/m-p/3498135#M843885</guid>
      <dc:creator>Rafael Gutierrez</dc:creator>
      <dc:date>2005-03-21T15:28:47Z</dc:date>
    </item>
  </channel>
</rss>

