<?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: Problem with mallopt() in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-mallopt/m-p/2990671#M718456</link>
    <description>It tells malloc to switch from brk calls to mmap of shared memory segments when brk calls stop working.  That lets a 32-bit process malloc more memory than it could with brk alone.  It was not officially documented.  It is not a good general solution because it uses up the system-wide shared memory address space.  Even two processes using M_ENABLE_MMAP could interfere with eachother.  Many processes using it would very quickly reach the point where they couldn't get substantially more memory.  And that would also interfere with the allocation of shared memory for interprocess communication.&lt;BR /&gt;Current PA-RISC HP-UX releases have better solutions.  Use "ld -N", chatr +q3p, and chatr +q4p for 32-bit processes.  Or use 64-bit processes.</description>
    <pubDate>Fri, 06 Jun 2003 22:15:04 GMT</pubDate>
    <dc:creator>Mike Stroyan</dc:creator>
    <dc:date>2003-06-06T22:15:04Z</dc:date>
    <item>
      <title>Problem with mallopt()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-mallopt/m-p/2990670#M718455</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the call int mallopt(int cmd, int value); in malloc.h it defines a cmd M_ENABLE_MMAP, plz can any body tell me what it means and why it is used?? is documentation/help available on it any where??&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Sunil.&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Jun 2003 05:12:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-mallopt/m-p/2990670#M718455</guid>
      <dc:creator>Sunil Hegde_1</dc:creator>
      <dc:date>2003-06-06T05:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with mallopt()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-mallopt/m-p/2990671#M718456</link>
      <description>It tells malloc to switch from brk calls to mmap of shared memory segments when brk calls stop working.  That lets a 32-bit process malloc more memory than it could with brk alone.  It was not officially documented.  It is not a good general solution because it uses up the system-wide shared memory address space.  Even two processes using M_ENABLE_MMAP could interfere with eachother.  Many processes using it would very quickly reach the point where they couldn't get substantially more memory.  And that would also interfere with the allocation of shared memory for interprocess communication.&lt;BR /&gt;Current PA-RISC HP-UX releases have better solutions.  Use "ld -N", chatr +q3p, and chatr +q4p for 32-bit processes.  Or use 64-bit processes.</description>
      <pubDate>Fri, 06 Jun 2003 22:15:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-mallopt/m-p/2990671#M718456</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2003-06-06T22:15:04Z</dc:date>
    </item>
  </channel>
</rss>

