<?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 usage for Java native libraries in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-usage-for-java-native-libraries/m-p/2901297#M719628</link>
    <description>This question and the replies seem unclear on just what memory areas are being discussed.&lt;BR /&gt;&lt;BR /&gt;The normal process data area used by malloc is private to a process.&lt;BR /&gt;&lt;BR /&gt;The java heap used by java new operations is private to a process.&lt;BR /&gt;&lt;BR /&gt;Explicitly created System V shared memory and shared mmap regions are shared between processes.&lt;BR /&gt;&lt;BR /&gt;Shared libraries have both text and data areas.  A shared library's text area can be shared between multiple processes.  Its data area is always private.  Calls to malloc from shared library code use the same private data area that calls from the a.out&lt;BR /&gt;use.&lt;BR /&gt;&lt;BR /&gt;Only the shared memory areas use a system-wide address space.  The other data areas are private to a process and only compete with other processes for swap space.&lt;BR /&gt;&lt;BR /&gt;So, multiple 32 bit processes can have more data than a single 32 bit process.</description>
    <pubDate>Tue, 11 Feb 2003 23:23:14 GMT</pubDate>
    <dc:creator>Mike Stroyan</dc:creator>
    <dc:date>2003-02-11T23:23:14Z</dc:date>
    <item>
      <title>Shared memory usage for Java native libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-usage-for-java-native-libraries/m-p/2901293#M719624</link>
      <description>I have a large Java application that has to use the services of a (similarly large) 32-bit C++ library. This application and the associated library are memory intensive. And it runs out of memory already :-)&lt;BR /&gt;&lt;BR /&gt;My question is: does it make sense to try and start multiple instances of the application on the same machine and find a way of sharing the load between them? &lt;BR /&gt;Why I ask this question: I have heard that all 32-bit libraries share the same memory area - is that true? If the memory area is shared then I don't gain anything by starting multiple processes, the many library instances will just share the same area that was previously used by a single instance. If on the other hand the memory is not shared and the library gets a separate memory area in each process then it's worth the trouble of distributing the load.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Dino&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Feb 2003 01:16:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-usage-for-java-native-libraries/m-p/2901293#M719624</guid>
      <dc:creator>Dino Marin</dc:creator>
      <dc:date>2003-02-11T01:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Shared memory usage for Java native libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-usage-for-java-native-libraries/m-p/2901294#M719625</link>
      <description>Hi Dino,&lt;BR /&gt;&lt;BR /&gt;In a nutshell, If they share the same libs, then they MUST occupy the same memory area.&lt;BR /&gt;If they didn't then you *could* run them in seperate memory windows. Else you're constricted to a 1.75Gb shared area.&lt;BR /&gt;&lt;BR /&gt;See the whitepaper on this in &lt;BR /&gt;/usr/share/doc/mem_wndws.txt&lt;BR /&gt;And do mans on&lt;BR /&gt;getmemwindow &lt;BR /&gt;setmemwindow&lt;BR /&gt;for detailed explanations on how/why to use memory windows on 32-bit apps.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 11 Feb 2003 01:26:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-usage-for-java-native-libraries/m-p/2901294#M719625</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-02-11T01:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Shared memory usage for Java native libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-usage-for-java-native-libraries/m-p/2901295#M719626</link>
      <description>Hi Dino,&lt;BR /&gt;&lt;BR /&gt;By default, you will get a maximum of 1.75 GB of shared memory. Even less in case the allocation is fragmented.&lt;BR /&gt;&lt;BR /&gt;You are right. All 32-bit processes share the same area.&lt;BR /&gt;&lt;BR /&gt;However, you can make use of memory windows and create seperate pools of shared memory. If your application does not use IPC_GLOBAL while creating the shared memory window, you will not be able to access the shared objects of other processes that are using a different memory window.&lt;BR /&gt;&lt;BR /&gt;/usr/share/doc/memwindows.txt has more information.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 11 Feb 2003 01:32:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-usage-for-java-native-libraries/m-p/2901295#M719626</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-02-11T01:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Shared memory usage for Java native libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-usage-for-java-native-libraries/m-p/2901296#M719627</link>
      <description>I red /usr/share/doc/mem_wndwns.txt and also the man pages for setmemwindow/getmemwindow and the information there is very useful.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Dino&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Feb 2003 02:10:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-usage-for-java-native-libraries/m-p/2901296#M719627</guid>
      <dc:creator>Dino Marin</dc:creator>
      <dc:date>2003-02-11T02:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Shared memory usage for Java native libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-usage-for-java-native-libraries/m-p/2901297#M719628</link>
      <description>This question and the replies seem unclear on just what memory areas are being discussed.&lt;BR /&gt;&lt;BR /&gt;The normal process data area used by malloc is private to a process.&lt;BR /&gt;&lt;BR /&gt;The java heap used by java new operations is private to a process.&lt;BR /&gt;&lt;BR /&gt;Explicitly created System V shared memory and shared mmap regions are shared between processes.&lt;BR /&gt;&lt;BR /&gt;Shared libraries have both text and data areas.  A shared library's text area can be shared between multiple processes.  Its data area is always private.  Calls to malloc from shared library code use the same private data area that calls from the a.out&lt;BR /&gt;use.&lt;BR /&gt;&lt;BR /&gt;Only the shared memory areas use a system-wide address space.  The other data areas are private to a process and only compete with other processes for swap space.&lt;BR /&gt;&lt;BR /&gt;So, multiple 32 bit processes can have more data than a single 32 bit process.</description>
      <pubDate>Tue, 11 Feb 2003 23:23:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-usage-for-java-native-libraries/m-p/2901297#M719628</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2003-02-11T23:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Shared memory usage for Java native libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-usage-for-java-native-libraries/m-p/2901298#M719629</link>
      <description>Mike?. I believe it was the subject that made us to think about shared memory area.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 11 Feb 2003 23:29:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-usage-for-java-native-libraries/m-p/2901298#M719629</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-02-11T23:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Shared memory usage for Java native libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-usage-for-java-native-libraries/m-p/2901299#M719630</link>
      <description>While the title contained the magic words "shared memory", the question really seems to be "What memory is shared?".&lt;BR /&gt;The correct answer is that most memory is not shared between processes.</description>
      <pubDate>Wed, 12 Feb 2003 18:35:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-usage-for-java-native-libraries/m-p/2901299#M719630</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2003-02-12T18:35:37Z</dc:date>
    </item>
  </channel>
</rss>

