<?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: HPUX11.0 Shared Memory Fragmentation in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux11-0-shared-memory-fragmentation/m-p/2630747#M41125</link>
    <description>Ah... missed a flag.&lt;BR /&gt;&lt;BR /&gt;Make that ipcs -bmpt&lt;BR /&gt;&lt;BR /&gt;so you get the segment size as well.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, I don't know anyway other than using q4 on the kernel to find out the virtual addresses things are mapped to (if you *can* use q4 on the kernel, let me know) - but the size information and PID should give you a start, I'd hope.&lt;BR /&gt;</description>
    <pubDate>Thu, 13 Dec 2001 00:40:24 GMT</pubDate>
    <dc:creator>Don Morris_1</dc:creator>
    <dc:date>2001-12-13T00:40:24Z</dc:date>
    <item>
      <title>HPUX11.0 Shared Memory Fragmentation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux11-0-shared-memory-fragmentation/m-p/2630745#M41123</link>
      <description>Hi there all, I've scanned most of the posts on ITRC and can't see an answer to my question, so I'm resorting to asking it directly :)&lt;BR /&gt;&lt;BR /&gt;I'm work for an app vendor supporting an Oracle/Tuxedo app on HPUX 11.0 (800 series box etc. etc.)&lt;BR /&gt;&lt;BR /&gt;Our system requires a large-ish (200-700Mb) single chunk of shared memory to use as an application data cache.  Right now everything's running as 32-bit, meaning that we're kind of stuck using a maximum of 1.75Gb of SHM...&lt;BR /&gt;&lt;BR /&gt;However, that's not the issue, the issue is that our shared memory can get pretty badly fragmented.  we've got two Oracle instances with 1/2 Gb SGA's, plus our application and tux using SHM, and sometimes we just can't allocate our cache!  HPUX reports us an error 12 (ENOMEM) on the shmget call, even when there's significant amounts of SHM actually free.&lt;BR /&gt;&lt;BR /&gt;How can I identify which process or processes are responsible for fragmenting the SHM? how can I prevent it on an ongoing basis?  &lt;BR /&gt;&lt;BR /&gt;Our current proposed solutions is to move Oracle to 64-bit so that it doesn't use the 32-bit SHM segment, but in the shorter term (and from a general question point of view) I'd like to be able to identify SHM fragmentation, and ideally identify which processed do it, are doing it and how to STOP them doing it :)&lt;BR /&gt;&lt;BR /&gt;I've 'proved' fragmentation using a simple C program where I attempt to get a block of X Mb, then if that fails, I try two blocks of X/2, then 4 blocks of X/4 etc up to the point where it hits the shmseg limit.  According to my hazy interpretation, on a static system where an allocation of 512Mb fails, but 4 allocations of 128Mb succeed, the memory is fragmented.&lt;BR /&gt;&lt;BR /&gt;I know HP Omniback II is a SHM user, and unfortunately our downtime on things like Oracle and our app tend to happen while backups are running, so that's my gut feeling/suspicion, but if glance, or any undocumented API call can give me an answer then I'll be a happy happy camper.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance.&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Dec 2001 22:24:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux11-0-shared-memory-fragmentation/m-p/2630745#M41123</guid>
      <dc:creator>Drew Mayo</dc:creator>
      <dc:date>2001-12-12T22:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX11.0 Shared Memory Fragmentation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux11-0-shared-memory-fragmentation/m-p/2630746#M41124</link>
      <description>Hope this helps:&lt;BR /&gt;&lt;BR /&gt;ipcs -mpt&lt;BR /&gt;&lt;BR /&gt;should give you the owner, group, cpid, and lpid for every segment as well as the time of creation.&lt;BR /&gt;&lt;BR /&gt;Hopefully that will be enough.</description>
      <pubDate>Thu, 13 Dec 2001 00:34:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux11-0-shared-memory-fragmentation/m-p/2630746#M41124</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2001-12-13T00:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX11.0 Shared Memory Fragmentation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux11-0-shared-memory-fragmentation/m-p/2630747#M41125</link>
      <description>Ah... missed a flag.&lt;BR /&gt;&lt;BR /&gt;Make that ipcs -bmpt&lt;BR /&gt;&lt;BR /&gt;so you get the segment size as well.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, I don't know anyway other than using q4 on the kernel to find out the virtual addresses things are mapped to (if you *can* use q4 on the kernel, let me know) - but the size information and PID should give you a start, I'd hope.&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Dec 2001 00:40:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux11-0-shared-memory-fragmentation/m-p/2630747#M41125</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2001-12-13T00:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX11.0 Shared Memory Fragmentation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux11-0-shared-memory-fragmentation/m-p/2630748#M41126</link>
      <description>As mentioned, ipcs does help (I use ipcs -bmop which shows creator+lastaccessPID).  However, for everyone using Oracle, Sybase, Informix, or any other big shared-memory users, here is the tool: &lt;BR /&gt;&lt;BR /&gt;shminfo&lt;BR /&gt;&lt;BR /&gt;You can get a copy at:&lt;BR /&gt;&lt;BR /&gt;ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/&lt;BR /&gt;&lt;BR /&gt;Here's selected portions:&lt;BR /&gt;&lt;BR /&gt;Global 32-bit shared quadrants:&lt;BR /&gt;===============================&lt;BR /&gt;        Space      Start        End  Kbytes Usage&lt;BR /&gt;Q4 0x00f33c00.0xc0000000-0xc0008fff      36 OTHER&lt;BR /&gt;Q4 0x00f33c00.0xc0009000-0xc0009fff       4 SHMEM id=0&lt;BR /&gt;Q4 0x00f33c00.0xc000a000-0xc000bfff       8 SHMEM id=2&lt;BR /&gt;Q4 0x00f33c00.0xc000c000-0xc0056fff     300 OTHER&lt;BR /&gt;Q4 0x00f33c00.0xc0057000-0xc005efff      32 SHMEM id=1 locked&lt;BR /&gt;Q4 0x00f33c00.0xc005f000-0xc00cefff     448 OTHER&lt;BR /&gt;Q4 0x00f33c00.0xc00cf000-0xc00cffff       4 FREE&lt;BR /&gt;Q4 0x00f33c00.0xc00d0000-0xc00fbfff     176 OTHER&lt;BR /&gt;&lt;BR /&gt;&lt;SNIP&gt;&lt;BR /&gt;&lt;BR /&gt;Private 32-bit shared quadrants:&lt;BR /&gt;================================&lt;BR /&gt;&lt;BR /&gt;Shared space from Window id 0 (global):&lt;BR /&gt;        Space      Start        End  Kbytes Usage&lt;BR /&gt;Q2 0x0213e800.0x40000000-0x7fffffff 1048576 FREE&lt;BR /&gt;Q3 0x00f33c00.0x80000000-0xbfffffff 1048576 FREE&lt;BR /&gt;&lt;BR /&gt;Shared space from Window id 1 (q3private):&lt;BR /&gt;        Space      Start        End  Kbytes Usage&lt;BR /&gt;Q2 0xffffffff.0x40000000-0x7fffffff 1048576 OTHER&lt;BR /&gt;Q3 0xffffffff.0x80000000-0xbfffffff 1048576 OTHER&lt;BR /&gt;&lt;BR /&gt;Limits for 32-bit SHMEM allocation:&lt;BR /&gt;===================================&lt;BR /&gt;&lt;BR /&gt;Maximum shmem segment:      65536 Kbytes (shmmax)&lt;BR /&gt;Largest free  segment:    1048576 Kbytes (Window id 0 (global) quadrant 2)&lt;BR /&gt;Available swap       :     852432 Kbytes (swapspc_cnt)&lt;BR /&gt;Available pseudo-swap:     248408 Kbytes (swapmem_cnt)&lt;BR /&gt;&lt;BR /&gt;----&lt;BR /&gt;Along with an actual map of shared memory areas, this tool will also map memory windows when used.  Along with shminfo, sourcecode for a test program called shmalloc.c which can be used to test shared memory calls.&lt;BR /&gt;&lt;BR /&gt;It is a contributed program with all the requisite disclaimers about goodness and fitness and all that...&lt;/SNIP&gt;</description>
      <pubDate>Thu, 13 Dec 2001 01:20:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux11-0-shared-memory-fragmentation/m-p/2630748#M41126</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-12-13T01:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX11.0 Shared Memory Fragmentation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux11-0-shared-memory-fragmentation/m-p/2630749#M41127</link>
      <description>Thanks _heaps_ Bill, that tool is exactly what I wanted...&lt;BR /&gt;&lt;BR /&gt;(strangely enough after browsing all questions related to SHM on the ITRC, I thought that you might be the one to answer it - heh)</description>
      <pubDate>Thu, 13 Dec 2001 03:06:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux11-0-shared-memory-fragmentation/m-p/2630749#M41127</guid>
      <dc:creator>Drew Mayo</dc:creator>
      <dc:date>2001-12-13T03:06:04Z</dc:date>
    </item>
  </channel>
</rss>

