<?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: memory cannot be extended in EXEC_MAGIC mode in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-cannot-be-extended-in-exec-magic-mode/m-p/3665678#M797366</link>
    <description>Run chatr and file against you executable and you should see  something as below&lt;BR /&gt;&lt;BR /&gt;then uses chatr +q3p enable &lt;EXECUTABLE&gt; to switch on the third quadrant +q4p enable for the forth.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;chatr daw.run&lt;BR /&gt;daw.run:&lt;BR /&gt;         shared executable&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             SHLIB_PATH     enabled   first&lt;BR /&gt;             embedded path  disabled  second Not Defined&lt;BR /&gt;         shared library list:&lt;BR /&gt;             dynamic   /usr/lib/librpcsoc.1&lt;BR /&gt;             dynamic   /usr/lib/libnsl.1&lt;BR /&gt;             dynamic   /usr/lib/libc.2&lt;BR /&gt;         shared library binding:&lt;BR /&gt;             deferred&lt;BR /&gt;         global hash table disabled&lt;BR /&gt;         plabel caching disabled&lt;BR /&gt;         global hash array size:1103&lt;BR /&gt;         global hash array nbuckets:3&lt;BR /&gt;         shared vtable support disabled&lt;BR /&gt;         explicit unloading enabled&lt;BR /&gt;         static branch prediction disabled&lt;BR /&gt;         executable from stack: D (default)&lt;BR /&gt;         kernel assisted branch prediction enabled&lt;BR /&gt;         lazy swap allocation disabled&lt;BR /&gt;         text segment locking disabled&lt;BR /&gt;         data segment locking disabled&lt;BR /&gt;         third quadrant private data space disabled&lt;BR /&gt;         fourth quadrant private data space disabled&lt;BR /&gt;         third quadrant global data space disabled&lt;BR /&gt;         data page size: D (default)&lt;BR /&gt;         instruction page size: D (default)&lt;BR /&gt;         nulptr references disabled&lt;BR /&gt;         shared library private mapping disabled&lt;BR /&gt;         shared library text merging disabled&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;file daw.run&lt;BR /&gt;daw.run:        PA-RISC1.1 shared executable dynamically linked -not stripped&lt;BR /&gt;&lt;BR /&gt;&lt;/EXECUTABLE&gt;</description>
    <pubDate>Mon, 07 Nov 2005 09:16:10 GMT</pubDate>
    <dc:creator>Derek Whigham_1</dc:creator>
    <dc:date>2005-11-07T09:16:10Z</dc:date>
    <item>
      <title>memory cannot be extended in EXEC_MAGIC mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-cannot-be-extended-in-exec-magic-mode/m-p/3665677#M797365</link>
      <description>My 32-bit mode program needs to exceed 1G limit. &lt;BR /&gt;My test code just looks like this:&lt;BR /&gt;    vector&lt;INT&gt; b;&lt;BR /&gt;    b.reserve(100000000);&lt;BR /&gt;    cout &amp;lt;&amp;lt; b.size() &amp;lt;&amp;lt; ":" &amp;lt;&amp;lt; b.capacity() &amp;lt;&amp;lt; endl;&lt;BR /&gt;    vector&lt;INT&gt; c;&lt;BR /&gt;    c.reserve(100000000);&lt;BR /&gt;    cout &amp;lt;&amp;lt; c.size() &amp;lt;&amp;lt; ":" &amp;lt;&amp;lt; c.capacity() &amp;lt;&amp;lt; endl;&lt;BR /&gt;    vector&lt;INT&gt; d;&lt;BR /&gt;    d.reserve(100000000);&lt;BR /&gt;    cout &amp;lt;&amp;lt; d.size() &amp;lt;&amp;lt; ":" &amp;lt;&amp;lt; d.capacity() &amp;lt;&amp;lt; endl;&lt;BR /&gt;Each vector instance's memory is nearly 390M.&lt;BR /&gt;I compiled the source with:&lt;BR /&gt;%aCC -Wl,-N testmem.cpp -o testmem&lt;BR /&gt;And chatr it:&lt;BR /&gt;%chatr testmem&lt;BR /&gt;testmem: &lt;BR /&gt;         normal executable &lt;BR /&gt;But while I runned my test program, core dumped.&lt;BR /&gt;What's wrong? &lt;BR /&gt;Thanks a lot.&lt;/INT&gt;&lt;/INT&gt;&lt;/INT&gt;</description>
      <pubDate>Mon, 07 Nov 2005 08:12:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-cannot-be-extended-in-exec-magic-mode/m-p/3665677#M797365</guid>
      <dc:creator>xbin999</dc:creator>
      <dc:date>2005-11-07T08:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: memory cannot be extended in EXEC_MAGIC mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-cannot-be-extended-in-exec-magic-mode/m-p/3665678#M797366</link>
      <description>Run chatr and file against you executable and you should see  something as below&lt;BR /&gt;&lt;BR /&gt;then uses chatr +q3p enable &lt;EXECUTABLE&gt; to switch on the third quadrant +q4p enable for the forth.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;chatr daw.run&lt;BR /&gt;daw.run:&lt;BR /&gt;         shared executable&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             SHLIB_PATH     enabled   first&lt;BR /&gt;             embedded path  disabled  second Not Defined&lt;BR /&gt;         shared library list:&lt;BR /&gt;             dynamic   /usr/lib/librpcsoc.1&lt;BR /&gt;             dynamic   /usr/lib/libnsl.1&lt;BR /&gt;             dynamic   /usr/lib/libc.2&lt;BR /&gt;         shared library binding:&lt;BR /&gt;             deferred&lt;BR /&gt;         global hash table disabled&lt;BR /&gt;         plabel caching disabled&lt;BR /&gt;         global hash array size:1103&lt;BR /&gt;         global hash array nbuckets:3&lt;BR /&gt;         shared vtable support disabled&lt;BR /&gt;         explicit unloading enabled&lt;BR /&gt;         static branch prediction disabled&lt;BR /&gt;         executable from stack: D (default)&lt;BR /&gt;         kernel assisted branch prediction enabled&lt;BR /&gt;         lazy swap allocation disabled&lt;BR /&gt;         text segment locking disabled&lt;BR /&gt;         data segment locking disabled&lt;BR /&gt;         third quadrant private data space disabled&lt;BR /&gt;         fourth quadrant private data space disabled&lt;BR /&gt;         third quadrant global data space disabled&lt;BR /&gt;         data page size: D (default)&lt;BR /&gt;         instruction page size: D (default)&lt;BR /&gt;         nulptr references disabled&lt;BR /&gt;         shared library private mapping disabled&lt;BR /&gt;         shared library text merging disabled&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;file daw.run&lt;BR /&gt;daw.run:        PA-RISC1.1 shared executable dynamically linked -not stripped&lt;BR /&gt;&lt;BR /&gt;&lt;/EXECUTABLE&gt;</description>
      <pubDate>Mon, 07 Nov 2005 09:16:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-cannot-be-extended-in-exec-magic-mode/m-p/3665678#M797366</guid>
      <dc:creator>Derek Whigham_1</dc:creator>
      <dc:date>2005-11-07T09:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: memory cannot be extended in EXEC_MAGIC mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-cannot-be-extended-in-exec-magic-mode/m-p/3665679#M797367</link>
      <description>I had solved the problem. It's my fault. I had no prividge to check the system parameter yesterday. Now I just asked admin show me the parameter: 'maxdsize' is only 1GB. And I had run the 'testmem' in another host. It's ok.&lt;BR /&gt;&lt;BR /&gt;Thanks Derek. &lt;BR /&gt;"+q3p", "+q4p" can make the 3nd, 4th quadrant as private data space. I think it only can be used in SHMEM_MAGIC, and only 32-bit kernels supported. Is it right?</description>
      <pubDate>Mon, 07 Nov 2005 21:05:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-cannot-be-extended-in-exec-magic-mode/m-p/3665679#M797367</guid>
      <dc:creator>xbin999</dc:creator>
      <dc:date>2005-11-07T21:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: memory cannot be extended in EXEC_MAGIC mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-cannot-be-extended-in-exec-magic-mode/m-p/3665680#M797368</link>
      <description>You should recode your program to check for the success of the memopry allocation, not crash. Far too many programmers overlook this critical test and leave sysadmins scrambling to determine the reason for a crash.&lt;BR /&gt; &lt;BR /&gt;No, SHMEM_MAGIC refers to a separate dataspace where there are some simularities but you can grab 3600 megs of local data with a 32bit program. I have attached a simple program that runs on 10.20 and higher, which can be compiled in 5 different ways and obtain 900, 1700, 2700, 3600  megs for a 32bit program and essentially unlimited RAM when compiled in 64bit mode. The 32bit program runs on 32 and 64bit systems, but the ability of +q3p and +q4p tro function depends on patches and HP-UX rev. See the program code for comments.</description>
      <pubDate>Mon, 07 Nov 2005 21:40:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-cannot-be-extended-in-exec-magic-mode/m-p/3665680#M797368</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-11-07T21:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: memory cannot be extended in EXEC_MAGIC mode</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-cannot-be-extended-in-exec-magic-mode/m-p/3665681#M797369</link>
      <description>I actually suggest if you have not used it yet a tool called dmalloc (&lt;A href="http://www.dmalloc.com)." target="_blank"&gt;www.dmalloc.com).&lt;/A&gt;</description>
      <pubDate>Mon, 07 Nov 2005 22:11:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-cannot-be-extended-in-exec-magic-mode/m-p/3665681#M797369</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2005-11-07T22:11:18Z</dc:date>
    </item>
  </channel>
</rss>

