<?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: Memory Usage in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193887#M165232</link>
    <description>Karthik,&lt;BR /&gt; &lt;BR /&gt;many thanks for the whitepaper!&lt;BR /&gt;This will educate me more on memory issues.&lt;BR /&gt; &lt;BR /&gt;Swap chunk Nos. and size should, though not terribly high, allow me to set up 8 GB of swap space (swapon has claimed it without complaints anyway).&lt;BR /&gt; &lt;BR /&gt;# kmtune -q swchunk -q maxswapchunks&lt;BR /&gt;Parameter            Value&lt;BR /&gt;===============================================================================&lt;BR /&gt;swchunk              2048&lt;BR /&gt;maxswapchunks        4096&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Stefan,&lt;BR /&gt; &lt;BR /&gt;yes, I also doubt that they will be able to, with the resources given, bring up that Oracle 9 beast as long as they aren't willing to free resources occupied by the other instance.&lt;BR /&gt; &lt;BR /&gt;I assume they're going for a 64 Bit build.&lt;BR /&gt;Probably that's what made them upgrade?&lt;BR /&gt; &lt;BR /&gt;How can I find out?&lt;BR /&gt;Yeah, I should ask them...&lt;BR /&gt; &lt;BR /&gt;Damian,&lt;BR /&gt; &lt;BR /&gt;is kmeminfo a harmful command?&lt;BR /&gt;Though, it doesn't sound like.&lt;BR /&gt; &lt;BR /&gt;However, I found these docs in the Q4 tree&lt;BR /&gt; &lt;BR /&gt;# compress -dc /usr/contrib/Q4/doc/Q4Docs.tar.Z |tar tvf -&lt;BR /&gt;r--r--r-- 3031/171  56490 Dec  2 19:05 1997 Q4BeginnersGuide.ps&lt;BR /&gt;r--r--r-- 3031/171 215246 Dec  2 19:05 1997 Q4ProgrammersReference.ps&lt;BR /&gt;r--r--r-- 3031/171  37747 Dec  2 19:05 1997 Q4KernelDevelopersGuide.ps&lt;BR /&gt;r--r--r-- 3031/171 154211 Dec  2 19:05 1997 Q4ReferenceManual.ps&lt;BR /&gt; &lt;BR /&gt;But by superficial glance at those in gv I couldn't find a reference for kminfo.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;The shared mem segs look like this,&lt;BR /&gt;with procs/threads attached to all.&lt;BR /&gt;(I anonymized the users, not to offend anyone ;-)&lt;BR /&gt;  &lt;BR /&gt;# ipcs -mbo&lt;BR /&gt;IPC status from /dev/kmem as of Tue Feb 17 15:18:19 2004&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP NATTCH  SEGSZ&lt;BR /&gt;Shared Memory:&lt;BR /&gt;m       0 0x411c173c --rw-rw-rw-      root      root      0    348&lt;BR /&gt;m       1 0x4e0c0002 --rw-rw-rw-      root      root      2  31040&lt;BR /&gt;m       2 0x41200035 --rw-rw-rw-      root      root      2   8192&lt;BR /&gt;m    9731 0x00000000 D-rw-------      root      root      7 1052672&lt;BR /&gt;m    2052 0x00000000 D-rw-------       www     other      7 184324&lt;BR /&gt;m   50181 0x3ff0e178 --rw-r-----    oracle       dba     19 93814784&lt;BR /&gt;m    1542 0x30204df4 --rw-rw-rw-       mem      leakers      7  73728&lt;BR /&gt;m    1543 0x3020518c --rw-rw-rw-       mem      leakers      7 14462976&lt;BR /&gt;m    1544 0x302050be --rw-rw-rw-       mem      leakers      7 122880000&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 17 Feb 2004 09:23:03 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2004-02-17T09:23:03Z</dc:date>
    <item>
      <title>Memory Usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193882#M165227</link>
      <description>Hello,&lt;BR /&gt; &lt;BR /&gt;I'm a bit embarrassed to ask you this.&lt;BR /&gt;But it seems I know too little of the fundamentals of Unix memory management to give a convincing explanation when asked by someone.&lt;BR /&gt;  &lt;BR /&gt;The box is a K460 running HP-UX 11.00.&lt;BR /&gt; &lt;BR /&gt;It is fitted according to the memory inventory that you may find as an stm dump attached to this posting (i.e. it has 1 GB RAM where all banks are enabled and no DIMMs marked as failed)&lt;BR /&gt; &lt;BR /&gt;Unfortunately we haven't got a glance license for this box so that I have to use vanilla Unix tools (viz. mainly vmstat).&lt;BR /&gt; &lt;BR /&gt;Below you can see a vmstat dump over 6 intervalls of 20 secs. (just as an example).&lt;BR /&gt; &lt;BR /&gt;Also you may find the dump of swapinfo.&lt;BR /&gt; &lt;BR /&gt;The problem of "insufficient" memory arose when DBAs installed yet another Oracle 9i instance while there was an Oracle 8.1.7 instance already running.&lt;BR /&gt; &lt;BR /&gt;Because they weren't able to start this new Oracle 9i instance I suspected that it was too memory hungry and needed to reserve more swap space than was available at the time of start attempt.&lt;BR /&gt;I've seen many SAP/Oracle startup difficulties that simply resulted from too little swap space.&lt;BR /&gt;Thus I donated yet another swap device, but that didn't help either.&lt;BR /&gt; &lt;BR /&gt;Swap space now is this&lt;BR /&gt;  &lt;BR /&gt;# swapinfo -ta&lt;BR /&gt;             Kb      Kb      Kb   PCT  START/      Kb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev     1126400  302848  823552   27%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev     1048576       0 1048576    0%       0       -    2  /dev/vgbs11/lvol2&lt;BR /&gt;reserve       -  574308 -574308&lt;BR /&gt;memory   720044  609624  110420   85%&lt;BR /&gt;total   2895020 1486780 1408240   51%       -       0    -&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;This is what vmstat reported (during a randomly picked short interval)&lt;BR /&gt; &lt;BR /&gt;# vmstat 20 6&lt;BR /&gt;         procs           memory                   page                              faults       cpu&lt;BR /&gt;    r     b     w      avm    free   re   at    pi   po    fr   de    sr     in     sy    cs  us sy id&lt;BR /&gt;    0     0     0    11767    3032    3    2     0    0     2    0     2   1223   1098   149   4  1 94&lt;BR /&gt;    0     1     0    77748    2920    0    0     0    0     0    0     0   1042    154    50   0  0 99&lt;BR /&gt;    0     0     0    75172    2920    0    0     0    0     0    0     0   1038    103    45   0  0 100&lt;BR /&gt;    0     0     0    12378    2922    0    0     0    0     0    0     0   1033     91    44   0  0 100&lt;BR /&gt;    0     0     0    75114    2922    0    0     0    0     0    0     0   1037    140    45   0  0 100&lt;BR /&gt;    0     0     0    78633    3012    0    0     0    0     0    0     0   1039    114    48   1  1 98&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Only for this very short sampling period the active virtual memory is 55135 pages averaged, while free memory is 2954 pages averaged.&lt;BR /&gt; &lt;BR /&gt;If I recall correctly the page size is 4 KB.&lt;BR /&gt;This would yield some 215 MB avm and only 11.5 MB free.&lt;BR /&gt; &lt;BR /&gt;Now I wonder what the phys. RAM is used for.&lt;BR /&gt; &lt;BR /&gt;Therefore I did this crude calculation,&lt;BR /&gt;i.e. summing up all pages used by processes.&lt;BR /&gt; &lt;BR /&gt;# UNIX95= ps -e -o sz=|awk '{s+=$1};END{printf"%10.2f\n",s*4/1024}'&lt;BR /&gt;   1337.13&lt;BR /&gt; &lt;BR /&gt;which is beyond the phys. RAM size.&lt;BR /&gt;Thus, I assume that probably many pages are currently paged out to the swap devices (e.g. of long runners).&lt;BR /&gt; &lt;BR /&gt;Are my assumptions correct?&lt;BR /&gt; &lt;BR /&gt;What other tools, apart from Glance, can I use to broaden my view of memory usage?&lt;BR /&gt; &lt;BR /&gt;What can I suggest the DBAs how to overcome their Oracle 9i problems?&lt;BR /&gt; &lt;BR /&gt;Rgds.&lt;BR /&gt;Ralph&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Tue, 17 Feb 2004 05:25:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193882#M165227</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2004-02-17T05:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193883#M165228</link>
      <description>Find the attached memory management whitepaper which will answer your basic questions on memory allocation in HP-UX. As far as the oracle instance is concerned I think it is something to do with the kernel configuration. Check kernel parameters like maxswapchunks etc.&lt;BR /&gt;&lt;BR /&gt;-Karthik S S</description>
      <pubDate>Tue, 17 Feb 2004 05:38:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193883#M165228</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2004-02-17T05:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193884#M165229</link>
      <description>Your assumptions are pretty good. Basically, the device line from swapinfo shows over 300MB swapped out - so youre pretty brave trying to install another oracle instance when you are so short of memory (300MB+ short). Sounds like a shared memory problem to me - it needs to be a contiguous chunk of memory which it just cant get. Is the new instance 32bit or 64bit ? I would shutdown a currently running instance or get the users off, then your new instance install should work.&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Feb 2004 06:00:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193884#M165229</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2004-02-17T06:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193885#M165230</link>
      <description>Locate kmeminfo in /usr/contrib/Q4/bin and run it.&lt;BR /&gt;&lt;BR /&gt;It will report memory usage. I think it can be useful.</description>
      <pubDate>Tue, 17 Feb 2004 06:10:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193885#M165230</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2004-02-17T06:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193886#M165231</link>
      <description>I also suggest to check the shared memory regions because this kind of memory is not swapped. Run&lt;BR /&gt;&lt;BR /&gt;ipcs -ma</description>
      <pubDate>Tue, 17 Feb 2004 06:11:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193886#M165231</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2004-02-17T06:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193887#M165232</link>
      <description>Karthik,&lt;BR /&gt; &lt;BR /&gt;many thanks for the whitepaper!&lt;BR /&gt;This will educate me more on memory issues.&lt;BR /&gt; &lt;BR /&gt;Swap chunk Nos. and size should, though not terribly high, allow me to set up 8 GB of swap space (swapon has claimed it without complaints anyway).&lt;BR /&gt; &lt;BR /&gt;# kmtune -q swchunk -q maxswapchunks&lt;BR /&gt;Parameter            Value&lt;BR /&gt;===============================================================================&lt;BR /&gt;swchunk              2048&lt;BR /&gt;maxswapchunks        4096&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Stefan,&lt;BR /&gt; &lt;BR /&gt;yes, I also doubt that they will be able to, with the resources given, bring up that Oracle 9 beast as long as they aren't willing to free resources occupied by the other instance.&lt;BR /&gt; &lt;BR /&gt;I assume they're going for a 64 Bit build.&lt;BR /&gt;Probably that's what made them upgrade?&lt;BR /&gt; &lt;BR /&gt;How can I find out?&lt;BR /&gt;Yeah, I should ask them...&lt;BR /&gt; &lt;BR /&gt;Damian,&lt;BR /&gt; &lt;BR /&gt;is kmeminfo a harmful command?&lt;BR /&gt;Though, it doesn't sound like.&lt;BR /&gt; &lt;BR /&gt;However, I found these docs in the Q4 tree&lt;BR /&gt; &lt;BR /&gt;# compress -dc /usr/contrib/Q4/doc/Q4Docs.tar.Z |tar tvf -&lt;BR /&gt;r--r--r-- 3031/171  56490 Dec  2 19:05 1997 Q4BeginnersGuide.ps&lt;BR /&gt;r--r--r-- 3031/171 215246 Dec  2 19:05 1997 Q4ProgrammersReference.ps&lt;BR /&gt;r--r--r-- 3031/171  37747 Dec  2 19:05 1997 Q4KernelDevelopersGuide.ps&lt;BR /&gt;r--r--r-- 3031/171 154211 Dec  2 19:05 1997 Q4ReferenceManual.ps&lt;BR /&gt; &lt;BR /&gt;But by superficial glance at those in gv I couldn't find a reference for kminfo.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;The shared mem segs look like this,&lt;BR /&gt;with procs/threads attached to all.&lt;BR /&gt;(I anonymized the users, not to offend anyone ;-)&lt;BR /&gt;  &lt;BR /&gt;# ipcs -mbo&lt;BR /&gt;IPC status from /dev/kmem as of Tue Feb 17 15:18:19 2004&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP NATTCH  SEGSZ&lt;BR /&gt;Shared Memory:&lt;BR /&gt;m       0 0x411c173c --rw-rw-rw-      root      root      0    348&lt;BR /&gt;m       1 0x4e0c0002 --rw-rw-rw-      root      root      2  31040&lt;BR /&gt;m       2 0x41200035 --rw-rw-rw-      root      root      2   8192&lt;BR /&gt;m    9731 0x00000000 D-rw-------      root      root      7 1052672&lt;BR /&gt;m    2052 0x00000000 D-rw-------       www     other      7 184324&lt;BR /&gt;m   50181 0x3ff0e178 --rw-r-----    oracle       dba     19 93814784&lt;BR /&gt;m    1542 0x30204df4 --rw-rw-rw-       mem      leakers      7  73728&lt;BR /&gt;m    1543 0x3020518c --rw-rw-rw-       mem      leakers      7 14462976&lt;BR /&gt;m    1544 0x302050be --rw-rw-rw-       mem      leakers      7 122880000&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Feb 2004 09:23:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193887#M165232</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2004-02-17T09:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193888#M165233</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I was given this url once&lt;BR /&gt;&lt;BR /&gt;ftp://eh:spear9@hprc.external.hp.com/memory.htm&lt;BR /&gt;&lt;BR /&gt;It helped me a lot.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Steve Steel</description>
      <pubDate>Tue, 17 Feb 2004 09:45:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193888#M165233</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-02-17T09:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193889#M165234</link>
      <description>Steve,&lt;BR /&gt; &lt;BR /&gt;thank you for another valuable source.&lt;BR /&gt; &lt;BR /&gt;I hope they won't change the login because I suspect this was given to you under the premise of non-disclosure?&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Feb 2004 11:23:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-usage/m-p/3193889#M165234</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2004-02-17T11:23:57Z</dc:date>
    </item>
  </channel>
</rss>

