<?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: about shared memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-shared-memory/m-p/3643975#M239592</link>
    <description>To see actual shared memory usage, &lt;BR /&gt;# ipcs -bmop will help. &lt;BR /&gt;&lt;BR /&gt;1),2),3) and 4)  &lt;A href="http://devresource.hp.com/drc/STK/docs/refs/3264interop.jsp" target="_blank"&gt;http://devresource.hp.com/drc/STK/docs/refs/3264interop.jsp&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;5) 32 bit addressing (2 power 32) &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
    <pubDate>Fri, 07 Oct 2005 01:45:41 GMT</pubDate>
    <dc:creator>Arunvijai_4</dc:creator>
    <dc:date>2005-10-07T01:45:41Z</dc:date>
    <item>
      <title>about shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-shared-memory/m-p/3643974#M239591</link>
      <description>Hello Everyone, i'd like to ask :&lt;BR /&gt;1) how is the shared memory affect the 32 bit and 64 bit applications? &lt;BR /&gt;2) What is the concept of shared memory with this scenarios? &lt;BR /&gt;3) How will the shared memory be allocated if i have a 32 bit process/application and 64 bit process/application as well in one box? &lt;BR /&gt;4) How will the system manage the sharing of 32 bit and 64 bit application?.&lt;BR /&gt;5) Why does the 32 bit only has a maximum of 2GB memory sharing.  &lt;BR /&gt;&lt;BR /&gt;Hoping to hear from you, jst wanted to understand it fully well.&lt;BR /&gt;Many Thanks!&lt;BR /&gt;irene=)&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Oct 2005 01:37:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-shared-memory/m-p/3643974#M239591</guid>
      <dc:creator>Irene Macabio</dc:creator>
      <dc:date>2005-10-07T01:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: about shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-shared-memory/m-p/3643975#M239592</link>
      <description>To see actual shared memory usage, &lt;BR /&gt;# ipcs -bmop will help. &lt;BR /&gt;&lt;BR /&gt;1),2),3) and 4)  &lt;A href="http://devresource.hp.com/drc/STK/docs/refs/3264interop.jsp" target="_blank"&gt;http://devresource.hp.com/drc/STK/docs/refs/3264interop.jsp&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;5) 32 bit addressing (2 power 32) &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Fri, 07 Oct 2005 01:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-shared-memory/m-p/3643975#M239592</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-10-07T01:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: about shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-shared-memory/m-p/3643976#M239593</link>
      <description>[Note: your various questions are intertwined in the answers, so I'm just going to address them in total, not point-by-point].&lt;BR /&gt;&lt;BR /&gt;I don't think "affect" is precisely the word you want here. Shared memory is still shared memory in 32-bit or 64-bit applications, with the caveat that some memory is shared only between 64-bit processes and can not be shared by 32-bit. [Unsurprising since the 64-bit address space is so much larger]. Applications which plan on mixed 32-bit/64-bit sharing on HP-UX must use the MAP_GLOBAL or IPC_GLOBAL flag when creating the shared memory to let the OS know.&lt;BR /&gt;&lt;BR /&gt;Remember how 32-bit processes are laid out as far as the virtual address space (&lt;A href="http://docs.hp.com/en/1218/mem_mgt.html" target="_blank"&gt;http://docs.hp.com/en/1218/mem_mgt.html&lt;/A&gt; for a refresher). There are always 4 1Gb quadrants. The default configuration is for the first quadrant to be for Text/Static Data, the second for Private objects (Heap, Stack, private mmaps) and the last two for Shared Objects (with 256Mb reserved on PA-RISC for I/O mappings). This is what results in the 1.75Gb (PA) or 2GB (IPF) default limit on shared memory for a 32-bit process.&lt;BR /&gt;&lt;BR /&gt;You can use other address space layouts (linker options or chatr) to get more shared address space (moving private to q1 and using q2 for shared -- but only shared with other q2's for 32-bit). &lt;BR /&gt;&lt;BR /&gt;For 64-bit processes (on PA - I don't want to go into the IPF octants right at this moment, but the concept is the same), the first quadrant is shared, with a range just above 4Gb reserved for I/O mappings [note that this is contiguous with the 32-bit I/O mapping range]. There's another shared quadrant as well which is 64-bit only and not terribly germane to our discussion at the moment. As you will note, the 64-bit shared q1 overlays the entire sharable 32-bit space... so now I think you can see how sharing between 32-bit and 64-bit can be managed.&lt;BR /&gt;&lt;BR /&gt;If Memory Windows didn't exist (so that all 32-bit processes used the same shared quadrants), then everything is simple -- any 32-bit shared object is sharable with a 64-bit object. The converse is not true... and so 64-bit shared object creators who intend to share with 32-bit processes must use the MAP_SHARE32/IPC_SHARE32 flag on object creation to let the kernel know that the shared object should be placed below 4Gb in the 64-bit q1 / 32-bit quadrants.&lt;BR /&gt;&lt;BR /&gt;Memory Windows complicates things because the 32-bit shared quadrants may not be the same as the shared 64-bit q1. HP-UX handles this by leaving 32-bit q4 as "global" by default [visible across all processes, even though using Memory Windows]. So PA-RISC has 0.75Gb of shared address space which any process should be able to "see" - since this is a limited resource, the kernel will try to put new objects in other shared quadrants first unless the process uses MAP_GLOBAL/IPC_GLOBAL to specify that they want this object sharable across Memory Windows.&lt;BR /&gt;&lt;BR /&gt;Hope this answers your question.</description>
      <pubDate>Fri, 07 Oct 2005 07:08:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-shared-memory/m-p/3643976#M239593</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2005-10-07T07:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: about shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-shared-memory/m-p/3643977#M239594</link>
      <description>Hello Don,Arunvijai,&lt;BR /&gt;Thanks Gentlemen....i got what i wanted =).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Oct 2005 05:25:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-shared-memory/m-p/3643977#M239594</guid>
      <dc:creator>Irene Macabio</dc:creator>
      <dc:date>2005-10-11T05:25:08Z</dc:date>
    </item>
  </channel>
</rss>

