<?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: Shared Memory error? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979851#M121944</link>
    <description>What happen if I increas shmseg from 32 to 100 for example.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Filo</description>
    <pubDate>Thu, 22 May 2003 14:36:46 GMT</pubDate>
    <dc:creator>Filosofo</dc:creator>
    <dc:date>2003-05-22T14:36:46Z</dc:date>
    <item>
      <title>Shared Memory error?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979845#M121938</link>
      <description>Hallo......I'm always Filo...unfortunatly..&lt;BR /&gt;I have in Single view Log this error :&lt;BR /&gt;SHM: Could not get shared memory segment with key 5C12397&lt;BR /&gt;&lt;BR /&gt;The OS version is 11.11 .&lt;BR /&gt;I have a L3000 with 4Gb of memory.&lt;BR /&gt;&lt;BR /&gt;Please help me.&lt;BR /&gt;</description>
      <pubDate>Thu, 22 May 2003 13:46:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979845#M121938</guid>
      <dc:creator>Filosofo</dc:creator>
      <dc:date>2003-05-22T13:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory error?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979846#M121939</link>
      <description>kernel&lt;BR /&gt;&lt;BR /&gt;shmmax&lt;BR /&gt;shmseg&lt;BR /&gt;&lt;BR /&gt;Might want to bump those up.&lt;BR /&gt;&lt;BR /&gt;Might want to collect some performance data, script attached.&lt;BR /&gt;&lt;BR /&gt;ipcs -mob&lt;BR /&gt;&lt;BR /&gt;This will give you some data with which to act.&lt;BR /&gt;&lt;BR /&gt;swapinfo -tam&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 22 May 2003 13:49:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979846#M121939</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-05-22T13:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory error?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979847#M121940</link>
      <description>Sorry misssed one.&lt;BR /&gt;&lt;BR /&gt;echo total_lockable_mem/D | adb /stand/vmunix  /dev/mem&lt;BR /&gt;&lt;BR /&gt;Post results so that someone can help you.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 22 May 2003 13:50:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979847#M121940</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-05-22T13:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory error?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979848#M121941</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Nobody is going to be able to help you very much because there is so little useful data. Do an ipcs -ma. The key value you refer to is the hex 'KEY' column in this display. It is the value that a related group of processes agree upon so that they can all attach a common shared memory segment. Typically, the function ftok() is called and given a filename as an argument (filenames are more meaningful than arbitrary hex values) and a key is generated. &lt;BR /&gt;&lt;BR /&gt;What is happening to you is that someone/something is removing the shared memory segments (perhaps via ipcrm) andc then processes that depend upon them are now in trouble.&lt;BR /&gt;&lt;BR /&gt;I have seen some dangerous advice given that tells you if you run ipcs and see that nattach (the number of processes that are attached to this shmid) is zero then it is safe to remove this shmid. While nattach = 0 is a necessary condition, it may not be a sufficient condition. Often, a process sets up shared memory and exit - nattach = 0. It is only when subsequent processes need that memory - perhaps days later - that there is an actual problem.&lt;BR /&gt;You have to know how the the shared memory was intended to be used.&lt;BR /&gt;&lt;BR /&gt;You need to dig deeper but the place to start is ipcs -ma.&lt;BR /&gt;</description>
      <pubDate>Thu, 22 May 2003 13:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979848#M121941</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-05-22T13:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory error?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979849#M121942</link>
      <description>Hello this is the output of your command:&lt;BR /&gt;&lt;BR /&gt;shmmax   4294967296&lt;BR /&gt;shmseg  32&lt;BR /&gt;&lt;BR /&gt;ipcs -mob&lt;BR /&gt;IPC status from /dev/kmem as of Thu May 22 16:55:41 2003&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP NATTCH  SEGSZ&lt;BR /&gt;Shared Memory:&lt;BR /&gt;m       0 0x411c025e --rw-rw-rw-      root      root      0    348&lt;BR /&gt;m       1 0x4e0c0002 --rw-rw-rw-      root      root      1  61760&lt;BR /&gt;m       2 0x41200097 --rw-rw-rw-      root      root      1   8192&lt;BR /&gt;m       3 0x301c63c0 --rw-rw-rw-      root      root      3 1048576&lt;BR /&gt;m    2564 0x5e10000b --rw-------      root      root      1    512&lt;BR /&gt;m    9221 0x00000000 D-rw-------      root      root      6 1052672&lt;BR /&gt;m     518 0x00000000 D-rw-------       www     other      6 184324&lt;BR /&gt;m  105479 0xe07e7728 --rw-rw----    oracle       dba     91 286228480&lt;BR /&gt;m     520 0x16c5a37c --rw-rw-rw-  gbcldv25        sv      6 500580&lt;BR /&gt;m     521 0x0000ef6a --rw-rw-rw-  gbcldv25        sv     96 1773272&lt;BR /&gt;m     522 0x00000000 --rw-------  gbcldv25        sv      3    652&lt;BR /&gt;m      11 0x00009669 --rw-------  gbcldv25        sv      5 5617029&lt;BR /&gt;m      12 0x00008193 --rw-------  gbcldv25        sv      5 5617029&lt;BR /&gt;m     525 0x0001d299 --rw-------  gbcldv25        sv      5 5668149&lt;BR /&gt;m     526 0x16c9ea2d --rw-rw-rw-  gbcldv25        sv      6 477452&lt;BR /&gt;m     527 0x16c95e7a --rw-rw-rw-  gbcldv25        sv     18 1779752&lt;BR /&gt;m     528 0x16c56899 --rw-rw-rw-  gbcldv25        sv     17 2076280&lt;BR /&gt;m    1553 0xc8277587 --rw-rw-rw-  gbcldv25        sv     16 364324&lt;BR /&gt;m   13842 0x0fd93c00 --rw-rw----    oracle       dba     61 93609984&lt;BR /&gt;m     531 0x21dc6698 --rw-rw----    oracle       dba     72 66617344&lt;BR /&gt;m   11796 0x00019ec3 --rw-rw-rw-  gbcldv19        sv     77 1773272&lt;BR /&gt;m    8725 0x00000000 --rw-------  gbcldv19        sv      2    652&lt;BR /&gt;m    8726 0x000393c2 --rw-------  gbcldv19        sv      5 5668149&lt;BR /&gt;m    8727 0x00025792 --rw-------  gbcldv19        sv      5 5617029&lt;BR /&gt;m    8728 0x00018704 --rw-------  gbcldv19        sv      5 5617029&lt;BR /&gt;m    2073 0x00037bf5 --rw-------  gbcldv21        sv      5 5668149&lt;BR /&gt;m    2074 0x00023fc5 --rw-------  gbcldv21        sv      5 5617029&lt;BR /&gt;m    2075 0x000209cf --rw-------  gbcldv21        sv      5 5617029&lt;BR /&gt;m    2076 0x00028006 --rw-rw-rw-  gbcldv21        sv     84 819616&lt;BR /&gt;m    2077 0x00000000 --rw-------  gbcldv21        sv      1    804&lt;BR /&gt;m     542 0x1644deb0 --rw-rw-rw-  gbcldv21        sv      5 500916&lt;BR /&gt;m     543 0x1640b3c1 --rw-rw-rw-  gbcldv21        sv      5 477548&lt;BR /&gt;m     544 0x1640280e --rw-rw-rw-  gbcldv21        sv     17 5925216&lt;BR /&gt;m     545 0x163c322d --rw-rw-rw-  gbcldv21        sv     16 2137864&lt;BR /&gt;m     546 0xa84ed080 --rw-rw-rw-  gbcldv21        sv     16 367192&lt;BR /&gt;&lt;BR /&gt;echo total_lockable_mem/D | adb /stand/vmunix /dev/mem&lt;BR /&gt;total_lockable_mem:&lt;BR /&gt;total_lockable_mem:             852081&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        4096     860    3236   21%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -    2749   -2749&lt;BR /&gt;memory     3260     793    2467   24%&lt;BR /&gt;total      7356    4402    2954   60%       -       0    -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks Filo</description>
      <pubDate>Thu, 22 May 2003 13:59:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979849#M121942</guid>
      <dc:creator>Filosofo</dc:creator>
      <dc:date>2003-05-22T13:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory error?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979850#M121943</link>
      <description>4 Gig of shared memory is enough&lt;BR /&gt;&lt;BR /&gt;I however have 4000 shared memory segments.&lt;BR /&gt;&lt;BR /&gt;shmseg should be increased.&lt;BR /&gt;&lt;BR /&gt;Its dynamic, you should be able to do it on the fly.&lt;BR /&gt;&lt;BR /&gt;If you believe you have hung shared memory segments here is a command to clear them.&lt;BR /&gt;&lt;BR /&gt;ipcrm -m &lt;KEY from="" ipcs="" command=""&gt;&lt;BR /&gt;ipcrm -s &lt;KEY from="" ipcs="" command=""&gt;&lt;BR /&gt;&lt;BR /&gt;Also might want to look into increasing nproc,nfiles and posting a complete kmtune commond for better analysis.&lt;BR /&gt;&lt;BR /&gt;If we help, please assign a point or two.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/KEY&gt;&lt;/KEY&gt;</description>
      <pubDate>Thu, 22 May 2003 14:25:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979850#M121943</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-05-22T14:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory error?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979851#M121944</link>
      <description>What happen if I increas shmseg from 32 to 100 for example.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Filo</description>
      <pubDate>Thu, 22 May 2003 14:36:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979851#M121944</guid>
      <dc:creator>Filosofo</dc:creator>
      <dc:date>2003-05-22T14:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory error?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979852#M121945</link>
      <description>You can increase shmseg to 512 or so but I rather doubt that that is your problem. This is the per process limit of separate shmid's that can attach. It is very, very unusual for a process to attach more than about 8 - though there are exceptions. I would have a very serious talk with a programmer who ever thought he needed more than 32. Because it's dynamic, you can change shmseg "on the fly". If there is also a small number (&amp;lt; 200) listed anywhere in your log then that could be very meaningful because that is almost certainly errno. Errno gets sets when a system call (like shmget()) fails. &lt;BR /&gt;</description>
      <pubDate>Thu, 22 May 2003 14:46:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979852#M121945</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-05-22T14:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory error?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979853#M121946</link>
      <description>No points deserved for anything I wrote.&lt;BR /&gt;&lt;BR /&gt;HP has just gone over my system performance because Oracle has been performing like dog doo doo.&lt;BR /&gt;&lt;BR /&gt;Seems while Oracle ias was out of whack some guy who looked a lot like me played around with the kernel, increasing shared memory a bit too much, and shmseg.  When the problem was solved by other means, this same guy didn't back out the changes.&lt;BR /&gt;&lt;BR /&gt;Note:&lt;BR /&gt;&lt;BR /&gt;shmmax on my system is 4 Gig.  It should be dropped to 1.5 Gig.  I will be doing so.&lt;BR /&gt;&lt;BR /&gt;shmseg is set for 4000, I'm only using 13.&lt;BR /&gt;&lt;BR /&gt;It's dropping to 100 or so.&lt;BR /&gt;&lt;BR /&gt;My buffer cache is too big and by dbc_max_pct is too high(I think).&lt;BR /&gt;&lt;BR /&gt;Here is the complete post from HP support, because it highlights a good analysis which hasn't really been done in this thread(though A. Clay did a lot better than me).&lt;BR /&gt;&lt;BR /&gt;-----&lt;BR /&gt;Memory &lt;BR /&gt;&lt;BR /&gt;There is a sufficient quantity of memory on the system , however there are&lt;BR /&gt;some configuration areas that need to be optimized . &lt;BR /&gt;&lt;BR /&gt;The size and utilization of the dynamic buffer cache indicates a need for a&lt;BR /&gt;change . &lt;BR /&gt;&lt;BR /&gt;The average percent write to cache was 25-39% . Sizing dbc_max_pct to 40%&lt;BR /&gt;causes 2 issues : 1) excessive volatility of the cache.&lt;BR /&gt;2) intrusion into available RAM forces paging to disk , increasing disk I/O&lt;BR /&gt;. The point of using the buffer cache is to facilitate faster read/write&lt;BR /&gt;transactions to disk . &lt;BR /&gt;&lt;BR /&gt;For the first run of data the total average throughput per second was only&lt;BR /&gt;2.06Mb for all disk combined , for the set run this a.m. it is 1.56 Mb /sec&lt;BR /&gt;.  To allocate up to 819 Mb of RAM for buffering this amount of data is a&lt;BR /&gt;waste.   &lt;BR /&gt;&lt;BR /&gt;In Oracle and Unix Performance Tuning , Ahmed Alomari recommends and average&lt;BR /&gt;write to cache of 95%  or greater . He is a Senior Oracle engineer , and his&lt;BR /&gt;books are quite good although not HP-UX specific.  &lt;BR /&gt;&lt;BR /&gt;It would be prudent to reduce the size of the buffer cache to no more than&lt;BR /&gt;10 % maximum.  As your lockable memory is 19.2% of RAM , to avoid memory&lt;BR /&gt;contention setting dbc_max_pct to no greater than 6 would be best .  This&lt;BR /&gt;will decrease the amount of cpu time cleaning dirty buf pages and still&lt;BR /&gt;provide more than enough memory to buffer the read/writes. It will also&lt;BR /&gt;prevent paging to disk , this is currently happening due to the lack of&lt;BR /&gt;clean memory pages . &lt;BR /&gt;&lt;BR /&gt;The other configuration issue has to do with shared memory .  You have&lt;BR /&gt;shmmax set to shmmax  4200000000 or 3.91 GB. this parameter sets the largest&lt;BR /&gt;segment size for shared memory , which is limited by the size of the memory&lt;BR /&gt;quadrant. As you have 6GB of total system memory , your quadrants are 1.5GB&lt;BR /&gt;each . While there are no performance penalties for oversizing this&lt;BR /&gt;parameter , you won't be able to get that size segment with the current&lt;BR /&gt;configured memory . Setting shmmax to    1.5Gb=0x60000000 would be&lt;BR /&gt;appropriate . In order to be able to have a 3.91GB quadrant you would have&lt;BR /&gt;to increase system memory by 9.64GB.  The total amount of shared memory in&lt;BR /&gt;use is currently only 379Mb. &lt;BR /&gt;&lt;BR /&gt;The current available shared memory for 64 bit processes is 2.75Gb , for 32&lt;BR /&gt;bit 1.75GB . &lt;BR /&gt;&lt;BR /&gt;The other shared memory parameter that is questionable is shmseg set at 4000&lt;BR /&gt;, the default is 120 . Currently you are only using 13 . &lt;BR /&gt;&lt;BR /&gt;-----&lt;BR /&gt;&lt;BR /&gt;There is more, but its not relavent to this thread.&lt;BR /&gt;&lt;BR /&gt;You have twice the system memory I do, so make appropriate adjustments while doing your analysis.&lt;BR /&gt;&lt;BR /&gt;If you want the analysis tools I used, I will be happy to put them together for you, but currently need to be updated.&lt;BR /&gt;&lt;BR /&gt;I do apologize for my earlier post. It was unworthy of someone with my ability.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 22 May 2003 18:13:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979853#M121946</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-05-22T18:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Memory error?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979854#M121947</link>
      <description>Here is a document on performance that might be of assistance.&lt;BR /&gt;&lt;BR /&gt;* beats the dead horse again....&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/search.do?category=c0&amp;amp;docType=Security&amp;amp;docType=Patch&amp;amp;docType=EngineerNotes&amp;amp;docType=BugReports&amp;amp;docType=Hardware&amp;amp;docType=ReferenceMaterials&amp;amp;docType=ThirdParty&amp;amp;searchString=UPERFKBAN00000726&amp;amp;mode=id&amp;amp;admit=-682735245+1053636168960+28353475&amp;amp;searchCrit=allwords&amp;amp;printable=true" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/search.do?category=c0&amp;amp;docType=Security&amp;amp;docType=Patch&amp;amp;docType=EngineerNotes&amp;amp;docType=BugReports&amp;amp;docType=Hardware&amp;amp;docType=ReferenceMaterials&amp;amp;docType=ThirdParty&amp;amp;searchString=UPERFKBAN00000726&amp;amp;mode=id&amp;amp;admit=-682735245+1053636168960+28353475&amp;amp;searchCrit=allwords&amp;amp;printable=true&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 22 May 2003 19:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-error/m-p/2979854#M121947</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-05-22T19:46:33Z</dc:date>
    </item>
  </channel>
</rss>

