<?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: 800MB malloc limit??? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/800mb-malloc-limit/m-p/2881089#M100902</link>
    <description>Thanks a lot for your answer. You was rigth. I have already heard about EXEC_MAGIC but my memory ... :))&lt;BR /&gt;Now I allowed third quadrant by : chatr +q3p enable a.out &lt;BR /&gt; and application can take ~ 1.8GB memory, what should be enough for a moment.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Again thanks,&lt;BR /&gt;Pavel</description>
    <pubDate>Tue, 14 Jan 2003 09:14:53 GMT</pubDate>
    <dc:creator>Pavel Hampl</dc:creator>
    <dc:date>2003-01-14T09:14:53Z</dc:date>
    <item>
      <title>800MB malloc limit???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/800mb-malloc-limit/m-p/2881087#M100900</link>
      <description>Hi admins,&lt;BR /&gt;&lt;BR /&gt;I am little bit confused, because I have already thought that on HPUX 11.00 is max size of allocated memory by a process  restricted only by maxdsiz (maxdsiz_64bit). But it DOES NOT work!!! Even if it is 4GB I cannot allocate more that 800MG-1GB.&lt;BR /&gt;&lt;BR /&gt;One my application reached this limit. So I prepared a simple C program for prove it. I tested it on my 3 L1000 (HPUX 11.00) servers. Every server has different maxdsiz_64, but all have more than 1G and  malloc always failed between 800MB and 1GB. On all server is 3,5-4GB RAM and up to 10GB swap. No swapping problem (used &amp;lt; 30%) memory usage 70-80%. But it does not work even if  there is 3GB RAM free and swap &amp;lt; 10% from 10GB. &lt;BR /&gt;What is wrong? Is there another parameter? &lt;BR /&gt;&lt;BR /&gt;Her is testing C program :&lt;BR /&gt;----------------------------------&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;/* &lt;BR /&gt; maxdsiz   3221225472 (0XC0000000)&lt;BR /&gt; maxdsiz_64bin  4026531840 (0X00000000F0000000)&lt;BR /&gt; maxssiz    268435456  (0X10000000)&lt;BR /&gt; maxssiz_64bit  1073741824 (0X40000000)&lt;BR /&gt; maxtsiz   1073741824 (0X40000000)&lt;BR /&gt; maxtsiz_64bit  1073741824 (0X40000000)&lt;BR /&gt; shmmax   4GB&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;main ()&lt;BR /&gt;{&lt;BR /&gt;char *t;&lt;BR /&gt;int n=1000000;&lt;BR /&gt;int i, sum;&lt;BR /&gt;int j=790000000;&lt;BR /&gt;&lt;BR /&gt;for (i=1; i&amp;lt; 600; i++) {&lt;BR /&gt;  sum = i * n + j;&lt;BR /&gt;  printf("test %i\n", sum);&lt;BR /&gt;  t = (char *)malloc(sum);&lt;BR /&gt;  if ((char *)t == (char *)NULL) {&lt;BR /&gt;     perror ("malloc");&lt;BR /&gt;     exit (0);&lt;BR /&gt;  }&lt;BR /&gt;  free (t);&lt;BR /&gt;}&lt;BR /&gt; &lt;BR /&gt;exit (0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;/*&lt;BR /&gt;Output :&lt;BR /&gt;test 791000000&lt;BR /&gt;test 792000000&lt;BR /&gt;test 793000000&lt;BR /&gt;test 794000000&lt;BR /&gt;test 795000000&lt;BR /&gt;test 796000000&lt;BR /&gt;test 797000000&lt;BR /&gt;test 798000000&lt;BR /&gt;test 799000000&lt;BR /&gt;test 800000000&lt;BR /&gt;test 801000000&lt;BR /&gt;test 802000000&lt;BR /&gt;test 803000000&lt;BR /&gt;test 804000000&lt;BR /&gt;test 805000000&lt;BR /&gt;test 806000000&lt;BR /&gt;malloc: Not enough space&lt;BR /&gt;&lt;BR /&gt;test 940000000 ?? second L1000 reached this&lt;BR /&gt;test 990000000 ?? third L1000&lt;BR /&gt;&lt;BR /&gt;It is alwas reach the same values an all servers!!&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Tue, 14 Jan 2003 08:02:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/800mb-malloc-limit/m-p/2881087#M100900</guid>
      <dc:creator>Pavel Hampl</dc:creator>
      <dc:date>2003-01-14T08:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: 800MB malloc limit???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/800mb-malloc-limit/m-p/2881088#M100901</link>
      <description>Please check your application executable which is running out of memory.&lt;BR /&gt;&lt;BR /&gt;If the application executable or the process is  32 bit  then it cannot access memory more than 960 MB.&lt;BR /&gt;you can enable the EXEC_MAGIC option with the executable which can make you access around 1.7GB of memory.&lt;BR /&gt;&lt;BR /&gt;This should be the case with you.&lt;BR /&gt;you must be running a 32 bit application!!&lt;BR /&gt;Check the proc_mgt and mem_mgt.txt files in /usr/share/doc. &lt;BR /&gt;&lt;BR /&gt;Revert</description>
      <pubDate>Tue, 14 Jan 2003 08:10:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/800mb-malloc-limit/m-p/2881088#M100901</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-01-14T08:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: 800MB malloc limit???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/800mb-malloc-limit/m-p/2881089#M100902</link>
      <description>Thanks a lot for your answer. You was rigth. I have already heard about EXEC_MAGIC but my memory ... :))&lt;BR /&gt;Now I allowed third quadrant by : chatr +q3p enable a.out &lt;BR /&gt; and application can take ~ 1.8GB memory, what should be enough for a moment.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Again thanks,&lt;BR /&gt;Pavel</description>
      <pubDate>Tue, 14 Jan 2003 09:14:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/800mb-malloc-limit/m-p/2881089#M100902</guid>
      <dc:creator>Pavel Hampl</dc:creator>
      <dc:date>2003-01-14T09:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: 800MB malloc limit???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/800mb-malloc-limit/m-p/2881090#M100903</link>
      <description>However, all those EXEC_MAGIC, q3p or similar features are only used to overcome the 32bit address space limitations. By using 64bit versions of your application all those problems should be history.&lt;BR /&gt;&lt;BR /&gt;Try to build your test program using 64bit and you will see (option +DD64).&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt; Dietmar.</description>
      <pubDate>Tue, 14 Jan 2003 10:29:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/800mb-malloc-limit/m-p/2881090#M100903</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-01-14T10:29:25Z</dc:date>
    </item>
  </channel>
</rss>

