<?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 performance problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060853#M305887</link>
    <description>Hi all,&lt;BR /&gt;I have an performance problem with my system:&lt;BR /&gt;hpux11.23 + oracle10.2 + application.&lt;BR /&gt;The system is working slow,and what I see is:&lt;BR /&gt;&lt;BR /&gt;1.Performance Monitor show me &lt;BR /&gt;average cpu usage 70% /normal/&lt;BR /&gt;average I/O - /normal, believe me :)/&lt;BR /&gt;average net usage: 120% more, than previous day,&lt;BR /&gt;average Mem usage: 80%, but "Virtual memory queue" is increased unnormally /2-3 times more, than previous day/.&lt;BR /&gt;&lt;BR /&gt;2.Here an output of some commands:&lt;BR /&gt;#vmstat -n&lt;BR /&gt;VM&lt;BR /&gt;       memory                     page                          faults&lt;BR /&gt;     avm    free   re   at    pi   po    fr   de    sr     in     sy    cs&lt;BR /&gt; 6938172  5313567 2214   21   838    0     0    0     0  26871 380866 10274&lt;BR /&gt;CPU&lt;BR /&gt;    cpu          procs&lt;BR /&gt; us sy id    r     b     w&lt;BR /&gt; 24 10 66   40    16     0&lt;BR /&gt; 24 10 66&lt;BR /&gt; 24  9 66&lt;BR /&gt;&lt;BR /&gt;So I see that I have "pi=838" and some blocked procs?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#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       16384       0   16384    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev       16384       0   16384    0%       0       -    1  /dev/vg01/lvol1&lt;BR /&gt;dev       16384       0   16384    0%       0       -    1  /dev/vg01/lvol2&lt;BR /&gt;dev       16384       0   16384    0%       0       -    1  /dev/vg01/lvol3&lt;BR /&gt;dev       16384       0   16384    0%       0       -    1  /dev/vg01/lvol4&lt;BR /&gt;dev        4460       0    4456    0%       0       -    2  /dev/vg01/lvol5&lt;BR /&gt;reserve       -   86358  -86358&lt;BR /&gt;memory   130935  102845   28090   79%&lt;BR /&gt;total    217315  189203   28108   87%       -       0    -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My questions:&lt;BR /&gt;&lt;BR /&gt;1.What mean, that I have memory usage like normal, but "Virtual Memory Queue" so increased. What is an physical meaning of the &lt;BR /&gt;concept: "Virtual Memory Queue". Is that mean, that I have enough memory, but Oracle processes cannot use it effectivelly for some reason?&lt;BR /&gt;&lt;BR /&gt;2."pi=838" - is there any connection with the above.&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
    <pubDate>Mon, 27 Aug 2007 09:15:13 GMT</pubDate>
    <dc:creator>Stanimir</dc:creator>
    <dc:date>2007-08-27T09:15:13Z</dc:date>
    <item>
      <title>memory performance problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060853#M305887</link>
      <description>Hi all,&lt;BR /&gt;I have an performance problem with my system:&lt;BR /&gt;hpux11.23 + oracle10.2 + application.&lt;BR /&gt;The system is working slow,and what I see is:&lt;BR /&gt;&lt;BR /&gt;1.Performance Monitor show me &lt;BR /&gt;average cpu usage 70% /normal/&lt;BR /&gt;average I/O - /normal, believe me :)/&lt;BR /&gt;average net usage: 120% more, than previous day,&lt;BR /&gt;average Mem usage: 80%, but "Virtual memory queue" is increased unnormally /2-3 times more, than previous day/.&lt;BR /&gt;&lt;BR /&gt;2.Here an output of some commands:&lt;BR /&gt;#vmstat -n&lt;BR /&gt;VM&lt;BR /&gt;       memory                     page                          faults&lt;BR /&gt;     avm    free   re   at    pi   po    fr   de    sr     in     sy    cs&lt;BR /&gt; 6938172  5313567 2214   21   838    0     0    0     0  26871 380866 10274&lt;BR /&gt;CPU&lt;BR /&gt;    cpu          procs&lt;BR /&gt; us sy id    r     b     w&lt;BR /&gt; 24 10 66   40    16     0&lt;BR /&gt; 24 10 66&lt;BR /&gt; 24  9 66&lt;BR /&gt;&lt;BR /&gt;So I see that I have "pi=838" and some blocked procs?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#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       16384       0   16384    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev       16384       0   16384    0%       0       -    1  /dev/vg01/lvol1&lt;BR /&gt;dev       16384       0   16384    0%       0       -    1  /dev/vg01/lvol2&lt;BR /&gt;dev       16384       0   16384    0%       0       -    1  /dev/vg01/lvol3&lt;BR /&gt;dev       16384       0   16384    0%       0       -    1  /dev/vg01/lvol4&lt;BR /&gt;dev        4460       0    4456    0%       0       -    2  /dev/vg01/lvol5&lt;BR /&gt;reserve       -   86358  -86358&lt;BR /&gt;memory   130935  102845   28090   79%&lt;BR /&gt;total    217315  189203   28108   87%       -       0    -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My questions:&lt;BR /&gt;&lt;BR /&gt;1.What mean, that I have memory usage like normal, but "Virtual Memory Queue" so increased. What is an physical meaning of the &lt;BR /&gt;concept: "Virtual Memory Queue". Is that mean, that I have enough memory, but Oracle processes cannot use it effectivelly for some reason?&lt;BR /&gt;&lt;BR /&gt;2."pi=838" - is there any connection with the above.&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Mon, 27 Aug 2007 09:15:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060853#M305887</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2007-08-27T09:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: memory performance problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060854#M305888</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Virtual memory queue? Not an often used term.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://64.233.183.104/search?q=cache:e4wcHHDCpGgJ:h50237.www5.hp.com/PartnerPortal/Forum/Messages/DownloadAttachment.aspx%3FAID%3De00be2a0-14ce-44c7-bef7-7d0a0c7854a3+%22Virtual+Memory+Queue%22+hpux&amp;amp;hl=iw&amp;amp;ct=clnk&amp;amp;cd=1&amp;amp;gl=il&amp;amp;client=firefox-a" target="_blank"&gt;http://64.233.183.104/search?q=cache:e4wcHHDCpGgJ:h50237.www5.hp.com/PartnerPortal/Forum/Messages/DownloadAttachment.aspx%3FAID%3De00be2a0-14ce-44c7-bef7-7d0a0c7854a3+%22Virtual+Memory+Queue%22+hpux&amp;amp;hl=iw&amp;amp;ct=clnk&amp;amp;cd=1&amp;amp;gl=il&amp;amp;client=firefox-a&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I would in this situation take a look at shared memory settings.&lt;BR /&gt;&lt;BR /&gt;shmmax&lt;BR /&gt;shmseg&lt;BR /&gt;&lt;BR /&gt;It's possible that shared memory is all used up and that is causing the perofrmance problems.&lt;BR /&gt;&lt;BR /&gt;Pages in is 838 but pages out is zero, which means you are not actually paging. Virtual memory is always reserved any time a process opens so there is a place to put it if needed.&lt;BR /&gt;&lt;BR /&gt;If Oracle is really hungry then maxdsiz_64 and its 32 bit parter (whichever is relavent) is another potential problem area to look at.&lt;BR /&gt;&lt;BR /&gt;You have good tool's but here are a few more:&lt;BR /&gt;&lt;A href="http://www.hpux.ws/system.perf.sh" target="_blank"&gt;http://www.hpux.ws/system.perf.sh&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 27 Aug 2007 09:24:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060854#M305888</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-08-27T09:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: memory performance problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060855#M305889</link>
      <description>The pi (page in) rate is nothing to worry about. Every new program that is executed is not in memory and must be read in from disk. That triggers a page fault and a page in satifies that fault. Pi's are completely normal and are nothing to worry about. Page outs are something quite different. This is really the only column in the vmstat display that you should be concerned about. This indicates that there is not enough room in physical memory to page in needed requests so some pages must be sent to swap to make room. Since your po rate is zero, you really have no problems. Note also that your swapinfo display shows that no actual swap is being used (consistant with  the 0 po rate). The "memory" line in swapinfo indicates that pseudoswap is enabled (swapmem_on=1) but all that is is kernel arithmatic to increase process reservation space and is intended for those systems which have more physical memory than swap space.</description>
      <pubDate>Mon, 27 Aug 2007 09:26:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060855#M305889</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-27T09:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: memory performance problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060856#M305890</link>
      <description>Thank you for your responces,so my &lt;BR /&gt;K-parameters are :&lt;BR /&gt;&lt;BR /&gt;shmmax  137304129536  /= avail memory 128G /&lt;BR /&gt;shmseg 300 default&lt;BR /&gt;maxdsiz   1073741824  Default        maxdsiz_64bit  2147483648  &lt;BR /&gt;&lt;BR /&gt;swapmem_on=1, but I dont thing to change it&lt;BR /&gt;&lt;BR /&gt;So what is your recomendation for these settings? Any other related K-parameters to the sittuation?      &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Aug 2007 09:56:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060856#M305890</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2007-08-27T09:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: memory performance problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060857#M305891</link>
      <description>And also:&lt;BR /&gt;&lt;BR /&gt;shmmni 512 &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Aug 2007 10:04:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060857#M305891</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2007-08-27T10:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: memory performance problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060858#M305892</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Wow that box has a lot of ram.&lt;BR /&gt;&lt;BR /&gt;If its a heavy oracle server, I'd crank shmmax to 25% of ram. Maybe 25% of memory, which HP defines as ram plus swap.&lt;BR /&gt;&lt;BR /&gt;Further, if you have a lot of open oracle processes shmseg at 512 may not be enough. I generally get it up high to not impede Oracle from creating new shared memory segments.&lt;BR /&gt;&lt;BR /&gt;If you want to check usage, you'll need to check with glance.&lt;BR /&gt;&lt;BR /&gt;This seems like a kernel tuning issue, you definitely have enough physical memory.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 27 Aug 2007 10:46:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060858#M305892</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-08-27T10:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: memory performance problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060859#M305893</link>
      <description>Hi Steven,&lt;BR /&gt;Thank you for your advice, I have already &lt;BR /&gt;changed these params /they are dynam /:&lt;BR /&gt;&lt;BR /&gt;shmmni   650&lt;BR /&gt;shmseg   400&lt;BR /&gt;&lt;BR /&gt;Is this enough? I have fear for increasing params so much. I'll look for any change of performance next day.  &lt;BR /&gt;&lt;BR /&gt;Anyway I'm afraid,that there is another reason, an mechanizm,which constrain Ora-procs to use available memory.But this is only my suppose. If you have any suggesstion - will be welcome!&lt;BR /&gt;&lt;BR /&gt;Thank you again, the points are comming :)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Aug 2007 10:59:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060859#M305893</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2007-08-27T10:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: memory performance problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060860#M305894</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;shmmni 650&lt;BR /&gt;shmseg 400&lt;BR /&gt;&lt;BR /&gt;Is this enough? I have fear for increasing params so much. I'll look for any change of performance next day. &lt;BR /&gt;&lt;BR /&gt;Very hard question to answer.&lt;BR /&gt;&lt;BR /&gt;I'd want to know how many shared memory segments I was using. This is however a parameter that can be cranked up higher with little chance of negative impact.&lt;BR /&gt;&lt;BR /&gt;Couple of links might help here:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B3921-90010/shmseg.5.html" target="_blank"&gt;http://docs.hp.com/en/B3921-90010/shmseg.5.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Tuning guidelines.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/J2716-90017/ch06s05.html" target="_blank"&gt;http://www.docs.hp.com/en/J2716-90017/ch06s05.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 27 Aug 2007 11:05:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060860#M305894</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-08-27T11:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: memory performance problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060861#M305895</link>
      <description>Have you checked how your memory is cut up for your Oracle Shared memory?&lt;BR /&gt;&lt;BR /&gt;Run ipcs -am and have a look at the number of spots taken by the user that owns and runs the database (often it's "oracle").&lt;BR /&gt;&lt;BR /&gt;Assuming that you have only database instance running, you should have your shared memory in no more than 6 cuts.  If it is cut up in hundreds of little pieces, then it becomes very inefficient because, from what I've been told (caveat emptor), Oracle will only handle 6 or 7 (can't remember the number for sure) of the sliced memory segments actively.  Above that number and the memory requests start becoming something approaching a fully queued state.  This is information I got from the joint HP/Oracle tuning team for Oracle 9i - don't know if it's relevant to 10G.  Anyway, try keeping the number of shared memory areas down to 6 or less, by increasing the size of shmmax for both 64 bit and 32 bit kernel params.&lt;BR /&gt;&lt;BR /&gt;Overall though, I can't see how you were doing fine before, and suddenly it's running slow.  The above discussion shouldn't really address your issue, if all was well before.&lt;BR /&gt;&lt;BR /&gt;Did you perhaps, have an unclean shutdown leaving old shared memory segments for Oracle out there in the memory space?  Once again, you'd see that with the "ipcs -am" command, and you'd look for initialization times older than your database has been running, and/or low to no NATTCH processes to the segments - depending on whether or not your presumed unclean shutdown pulled ALL of the Oracle processes down, or left some pieces of it out there still trying to run.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Another scenario, do you have any statistics on key/active tables out of whack?&lt;BR /&gt;&lt;BR /&gt;Look at your longest running *active* connections in Oracle, are many of them all running/waiting on the same statements to run?  Pick an active one with longest time since "last call" (this is easiest to find using Toad with either session browser or DBA/Kill/Trace Session if you have it).  Look at the statements, if they seem to be similar either in statement or in tables/functions being called; pick a sid of one of them and run the following:&lt;BR /&gt;&lt;BR /&gt;select *&lt;BR /&gt;from v$session vs, dba_objects do&lt;BR /&gt;where vs.row_wait_obj#=do.object_id&lt;BR /&gt;and vs.sid = &amp;amp;sid;&lt;BR /&gt;&lt;BR /&gt;Look for the object_name and object_type columns returned.&lt;BR /&gt;&lt;BR /&gt;If the answer is a table or an index, and you get many of the same/similar answers for many of the active processes running since their &lt;BR /&gt;last call time (I often sort on this in Toad), then you may have need to refresh some stats on those tables or indexes involved.  If the tables are HUGE try using a low sampling percentage so that it doesn't take too long - like 10% or so, if the table is relatively small - go ahead and sample bigger, 30 or 40 percent.  Keep in mind that while statistics are being gathered on monstrous tables, performance will be even further degraded until its complete.  If the pain threshold is too high, you break the gather without hurting anything further, you'll just be back where you were before.</description>
      <pubDate>Mon, 27 Aug 2007 11:11:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-performance-problem/m-p/4060861#M305895</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2007-08-27T11:11:56Z</dc:date>
    </item>
  </channel>
</rss>

