<?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: Need a good view into shared memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429489#M767702</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;ipcs doesn't do such a good job of showing you where the fragmentation in shared memory are. It's a lot more investigative work to find those "holes".&lt;BR /&gt;&lt;BR /&gt;I've got a program attached which can show you the addresses the segments begin with the sizes. You will probably need to map it out on a piece of paper to see where the gaps are, and how big these gaps are.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 07 Jul 2000 06:57:01 GMT</pubDate>
    <dc:creator>SEA RC</dc:creator>
    <dc:date>2000-07-07T06:57:01Z</dc:date>
    <item>
      <title>Need a good view into shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429483#M767696</link>
      <description>I am trying to watch shared memory allocation on a development machine.  I can see the segments created with ipcs, and I can write a script to add up the segment sizes.  However, this value does not seem to correspond to the value I see in glance - &amp;gt; system tables.  (Said value, BTW, sems WAY out of range since it reports more shared memory available than I have on the system in RAM and SWAP combined.)&lt;BR /&gt;&lt;BR /&gt;As a rule, though, when I se two metrics which do not agree I like to nail down why they differ and which one I can rely on.  Any suggestions?</description>
      <pubDate>Thu, 06 Jul 2000 16:34:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429483#M767696</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-07-06T16:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need a good view into shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429484#M767697</link>
      <description>Is it possible you have pseudo-swap enabled? This would cause your virtual memory to be greater than real memory + configured swap.&lt;BR /&gt;&lt;BR /&gt;Brian&lt;BR /&gt;&amp;lt;*(((&amp;gt;&amp;lt; er</description>
      <pubDate>Thu, 06 Jul 2000 16:39:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429484#M767697</guid>
      <dc:creator>Brian M. Fisher</dc:creator>
      <dc:date>2000-07-06T16:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need a good view into shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429485#M767698</link>
      <description>Understanding Shared Memory on PA-RISC Systems&lt;BR /&gt;Document Type  MD &lt;BR /&gt;Date  1999 Nov 02 &lt;BR /&gt;Description  Understanding Shared Memory on PA-RISC Systems &lt;BR /&gt;Document Id  RCMEMKBAN00000027 &lt;BR /&gt;Search String  shared memory process &lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jul 2000 16:45:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429485#M767698</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-07-06T16:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need a good view into shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429486#M767699</link>
      <description>Thanks for the document search.  I amreasonably certain I have a shared memory fragmentation issue.  I remain confused, though, about the numbers glance is reporting for shared memory:&lt;BR /&gt;&lt;BR /&gt;Available   Requested&lt;BR /&gt;95.4gb       1.43gb&lt;BR /&gt;&lt;BR /&gt;The requested value is close, though not identical, to the tabulated results from ipcs.  The avauilable number seems absurd for a 10.20 K box with 4GB of physical memory.</description>
      <pubDate>Thu, 06 Jul 2000 17:14:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429486#M767699</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-07-06T17:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need a good view into shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429487#M767700</link>
      <description>Hi Alan,&lt;BR /&gt;&lt;BR /&gt;Check the value set for SHMMAX in your kernel parameter. &lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Fri, 07 Jul 2000 06:21:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429487#M767700</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-07-07T06:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need a good view into shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429488#M767701</link>
      <description>Alan,&lt;BR /&gt;&lt;BR /&gt;In glance you have the RSS and VSS size. The VSS should always match the size you get from ipcs. The RSS will typically be smaller.&lt;BR /&gt;&lt;BR /&gt;I'm attaching a program that displays all shared resource uses (shmem, mmap, shared lib etc).&lt;BR /&gt;&lt;BR /&gt;It's an unix program really (ignore the .exe bit!)&lt;BR /&gt;&lt;BR /&gt;Run it and it will self-expand into the 'real' program</description>
      <pubDate>Fri, 07 Jul 2000 06:37:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429488#M767701</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2000-07-07T06:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need a good view into shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429489#M767702</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;ipcs doesn't do such a good job of showing you where the fragmentation in shared memory are. It's a lot more investigative work to find those "holes".&lt;BR /&gt;&lt;BR /&gt;I've got a program attached which can show you the addresses the segments begin with the sizes. You will probably need to map it out on a piece of paper to see where the gaps are, and how big these gaps are.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Jul 2000 06:57:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429489#M767702</guid>
      <dc:creator>SEA RC</dc:creator>
      <dc:date>2000-07-07T06:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need a good view into shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429490#M767703</link>
      <description>Check out the help text for the glance metric TBL_SHMEM_AVAIL. It is basicly just the product of shmmni and shmmmax. It's not really very useful since most people don't have enough swap to really use all the shared memory that they could based on these kernel parmeters. And if the kernel values are very large you can actually overflow the variables used to calculate the number and get some strange results.&lt;BR /&gt;&lt;BR /&gt;Also, if you try to sum up the rss values for processes in glance, remember to check the defination of the proc_mem_res metric. Some versions report the entire value of rss for each process so that if 10 processes shared the same segment and you sum up their rss values, you would count the same segment 10 times. I believe that the scaled the shared memory segments by the reference count in C.02.40 so that will help. But unless you actually go through a memory region loop in your adviser script (or go to the memory regions screen in glance for each process), you do not have an accurate count of memory usage for each process (too much overhead to re-calculate the actual rss every interval by default), so you could still end up with an approximation.</description>
      <pubDate>Fri, 07 Jul 2000 14:16:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429490#M767703</guid>
      <dc:creator>Jim Welch</dc:creator>
      <dc:date>2000-07-07T14:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need a good view into shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429491#M767704</link>
      <description>Thanks to all.  I find the calculated value that glance uses to determine shared memory available to be ridiculous when you take into account the 1.75 (2.75) GB limits when running 10.20 (swap space will not let you escape this limit).  Truly this is a useless metric.&lt;BR /&gt;&lt;BR /&gt;For those who attached programs, thank you but I am afraid I make it a rule never to run downloaded programs unless I can examine the source code.</description>
      <pubDate>Fri, 07 Jul 2000 14:59:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-good-view-into-shared-memory/m-p/2429491#M767704</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-07-07T14:59:24Z</dc:date>
    </item>
  </channel>
</rss>

