<?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 running 32 bit exe in 64 bit machine-Core dumps after 2.1 GB running process size in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/running-32-bit-exe-in-64-bit-machine-core-dumps-after-2-1-gb/m-p/4263633#M674428</link>
    <description>We are running an HP-UX 32-bit executable on 64 bit processor.&lt;BR /&gt;&lt;BR /&gt;The executable is crossing the process running size of 2.1 GB.&lt;BR /&gt;&lt;BR /&gt;It has dumping core at 1.7 GB.&lt;BR /&gt;&lt;BR /&gt;Then as per the HP-UX manual we have enabled the 3rd quadrant by&lt;BR /&gt;&lt;BR /&gt;chatr +q3p enable myexename&lt;BR /&gt;&lt;BR /&gt;In the HP-UX manuals it has mentioned that this 3rd quadrant enabled apllications will use the memory upto 2.8 GB&lt;BR /&gt;&lt;BR /&gt;But even after applying this +q3p option , our application is dumping core at 2.1 GB&lt;BR /&gt;&lt;BR /&gt;We have applied chatr +q4p enable MyExeName, to enable 4th quadrant.&lt;BR /&gt;But even after applying this also, our application is dummping core at 2.1 GB(2104 MB).&lt;BR /&gt;Can anyone help us to figure out what is limiting our application to run beyond 2.1 GB&lt;BR /&gt;&lt;BR /&gt;How can we make the application to run with accessing upto 2.8 GB of memory?&lt;BR /&gt;&lt;BR /&gt;We are using HP-UX 11.00&lt;BR /&gt;&lt;BR /&gt;The following are the system details&lt;BR /&gt;&lt;BR /&gt;# swapinfo -ma&lt;BR /&gt;&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;&lt;BR /&gt;dev        8192      85    8107    1%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;&lt;BR /&gt;reserve       -    2168   -2168&lt;BR /&gt;&lt;BR /&gt;memory     3149    1515    1634   48%&lt;BR /&gt;&lt;BR /&gt;# swapinfo -a&lt;BR /&gt;&lt;BR /&gt;             Kb      Kb      Kb   PCT  START/      Kb&lt;BR /&gt;&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;&lt;BR /&gt;dev     8388608   86612 8301996    1%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;&lt;BR /&gt;reserve       - 2220488 -2220488&lt;BR /&gt;&lt;BR /&gt;memory  3224700 1551156 1673544   48%&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;# swapinfo -tm&lt;BR /&gt;&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;&lt;BR /&gt;dev        8192     105    8087    1%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;&lt;BR /&gt;reserve       -    2164   -2164&lt;BR /&gt;&lt;BR /&gt;memory     3149    1483    1666   47%&lt;BR /&gt;&lt;BR /&gt;total     11341    3752    7589   33%       -       0    -&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;kmtune output&lt;BR /&gt;&lt;BR /&gt;--------------&lt;BR /&gt;&lt;BR /&gt;max_mem_window       0&lt;BR /&gt;&lt;BR /&gt;max_thread_proc      5000&lt;BR /&gt;&lt;BR /&gt;maxdsiz              3221225472&lt;BR /&gt;&lt;BR /&gt;maxdsiz_64bit        34359738368&lt;BR /&gt;&lt;BR /&gt;maxfiles             200&lt;BR /&gt;&lt;BR /&gt;maxfiles_lim         2048&lt;BR /&gt;&lt;BR /&gt;maxqueuetime         0&lt;BR /&gt;&lt;BR /&gt;maxssiz              167772160&lt;BR /&gt;&lt;BR /&gt;maxssiz_64bit        167772160&lt;BR /&gt;&lt;BR /&gt;maxswapchunks        10000&lt;BR /&gt;&lt;BR /&gt;maxtsiz              0X40000000&lt;BR /&gt;&lt;BR /&gt;maxtsiz_64bit        0X0000000400000000&lt;BR /&gt;&lt;BR /&gt;maxuprc              75&lt;BR /&gt;&lt;BR /&gt;maxusers             128&lt;BR /&gt;&lt;BR /&gt;maxvgs               10&lt;BR /&gt;&lt;BR /&gt;mesg                 1&lt;BR /&gt;&lt;BR /&gt;minfree              0&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;shmmax               0X4000000  (64 MB)&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;swapmem_on           1&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;# ulimit -a&lt;BR /&gt;&lt;BR /&gt;time(seconds)        unlimited&lt;BR /&gt;&lt;BR /&gt;file(blocks)         unlimited&lt;BR /&gt;&lt;BR /&gt;data(kbytes)         unlimited&lt;BR /&gt;&lt;BR /&gt;stack(kbytes)        163840&lt;BR /&gt;&lt;BR /&gt;memory(kbytes)       unlimited&lt;BR /&gt;&lt;BR /&gt;coredump(blocks)     4194303&lt;BR /&gt;&lt;BR /&gt;nofiles(descriptors) 200&lt;BR /&gt;&lt;BR /&gt;Please help us if you have any clue.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Naga&lt;BR /&gt;</description>
    <pubDate>Fri, 05 Sep 2008 10:18:08 GMT</pubDate>
    <dc:creator>Nagaraj komarsamy</dc:creator>
    <dc:date>2008-09-05T10:18:08Z</dc:date>
    <item>
      <title>running 32 bit exe in 64 bit machine-Core dumps after 2.1 GB running process size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-32-bit-exe-in-64-bit-machine-core-dumps-after-2-1-gb/m-p/4263633#M674428</link>
      <description>We are running an HP-UX 32-bit executable on 64 bit processor.&lt;BR /&gt;&lt;BR /&gt;The executable is crossing the process running size of 2.1 GB.&lt;BR /&gt;&lt;BR /&gt;It has dumping core at 1.7 GB.&lt;BR /&gt;&lt;BR /&gt;Then as per the HP-UX manual we have enabled the 3rd quadrant by&lt;BR /&gt;&lt;BR /&gt;chatr +q3p enable myexename&lt;BR /&gt;&lt;BR /&gt;In the HP-UX manuals it has mentioned that this 3rd quadrant enabled apllications will use the memory upto 2.8 GB&lt;BR /&gt;&lt;BR /&gt;But even after applying this +q3p option , our application is dumping core at 2.1 GB&lt;BR /&gt;&lt;BR /&gt;We have applied chatr +q4p enable MyExeName, to enable 4th quadrant.&lt;BR /&gt;But even after applying this also, our application is dummping core at 2.1 GB(2104 MB).&lt;BR /&gt;Can anyone help us to figure out what is limiting our application to run beyond 2.1 GB&lt;BR /&gt;&lt;BR /&gt;How can we make the application to run with accessing upto 2.8 GB of memory?&lt;BR /&gt;&lt;BR /&gt;We are using HP-UX 11.00&lt;BR /&gt;&lt;BR /&gt;The following are the system details&lt;BR /&gt;&lt;BR /&gt;# swapinfo -ma&lt;BR /&gt;&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;&lt;BR /&gt;dev        8192      85    8107    1%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;&lt;BR /&gt;reserve       -    2168   -2168&lt;BR /&gt;&lt;BR /&gt;memory     3149    1515    1634   48%&lt;BR /&gt;&lt;BR /&gt;# swapinfo -a&lt;BR /&gt;&lt;BR /&gt;             Kb      Kb      Kb   PCT  START/      Kb&lt;BR /&gt;&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;&lt;BR /&gt;dev     8388608   86612 8301996    1%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;&lt;BR /&gt;reserve       - 2220488 -2220488&lt;BR /&gt;&lt;BR /&gt;memory  3224700 1551156 1673544   48%&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;# swapinfo -tm&lt;BR /&gt;&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;&lt;BR /&gt;dev        8192     105    8087    1%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;&lt;BR /&gt;reserve       -    2164   -2164&lt;BR /&gt;&lt;BR /&gt;memory     3149    1483    1666   47%&lt;BR /&gt;&lt;BR /&gt;total     11341    3752    7589   33%       -       0    -&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;kmtune output&lt;BR /&gt;&lt;BR /&gt;--------------&lt;BR /&gt;&lt;BR /&gt;max_mem_window       0&lt;BR /&gt;&lt;BR /&gt;max_thread_proc      5000&lt;BR /&gt;&lt;BR /&gt;maxdsiz              3221225472&lt;BR /&gt;&lt;BR /&gt;maxdsiz_64bit        34359738368&lt;BR /&gt;&lt;BR /&gt;maxfiles             200&lt;BR /&gt;&lt;BR /&gt;maxfiles_lim         2048&lt;BR /&gt;&lt;BR /&gt;maxqueuetime         0&lt;BR /&gt;&lt;BR /&gt;maxssiz              167772160&lt;BR /&gt;&lt;BR /&gt;maxssiz_64bit        167772160&lt;BR /&gt;&lt;BR /&gt;maxswapchunks        10000&lt;BR /&gt;&lt;BR /&gt;maxtsiz              0X40000000&lt;BR /&gt;&lt;BR /&gt;maxtsiz_64bit        0X0000000400000000&lt;BR /&gt;&lt;BR /&gt;maxuprc              75&lt;BR /&gt;&lt;BR /&gt;maxusers             128&lt;BR /&gt;&lt;BR /&gt;maxvgs               10&lt;BR /&gt;&lt;BR /&gt;mesg                 1&lt;BR /&gt;&lt;BR /&gt;minfree              0&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;shmmax               0X4000000  (64 MB)&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;swapmem_on           1&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;# ulimit -a&lt;BR /&gt;&lt;BR /&gt;time(seconds)        unlimited&lt;BR /&gt;&lt;BR /&gt;file(blocks)         unlimited&lt;BR /&gt;&lt;BR /&gt;data(kbytes)         unlimited&lt;BR /&gt;&lt;BR /&gt;stack(kbytes)        163840&lt;BR /&gt;&lt;BR /&gt;memory(kbytes)       unlimited&lt;BR /&gt;&lt;BR /&gt;coredump(blocks)     4194303&lt;BR /&gt;&lt;BR /&gt;nofiles(descriptors) 200&lt;BR /&gt;&lt;BR /&gt;Please help us if you have any clue.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Naga&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Sep 2008 10:18:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-32-bit-exe-in-64-bit-machine-core-dumps-after-2-1-gb/m-p/4263633#M674428</guid>
      <dc:creator>Nagaraj komarsamy</dc:creator>
      <dc:date>2008-09-05T10:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: running 32 bit exe in 64 bit machine-Core dumps after 2.1 GB running process size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-32-bit-exe-in-64-bit-machine-core-dumps-after-2-1-gb/m-p/4263634#M674429</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;are we talking about 2,1 GB memory or 2,1 GB file size?&lt;BR /&gt;If it's file size you have to enable the option largefiles for your file system.&lt;BR /&gt;&lt;BR /&gt;Volkmar&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Sep 2008 10:38:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-32-bit-exe-in-64-bit-machine-core-dumps-after-2-1-gb/m-p/4263634#M674429</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2008-09-05T10:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: running 32 bit exe in 64 bit machine-Core dumps after 2.1 GB running process size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-32-bit-exe-in-64-bit-machine-core-dumps-after-2-1-gb/m-p/4263635#M674430</link>
      <description>&lt;BR /&gt;Looks like you are ready for a move to a real 64 bit version of the application!&lt;BR /&gt;Any chances of that happening?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; shmmax 0X4000000 (64 MB)&lt;BR /&gt;&lt;BR /&gt;That a little small for many applications, but you might not use any. Check with ipcs -m&lt;BR /&gt;while the process is (still) running.&lt;BR /&gt;I typically see 2GB or 60% of physical memory. Still, it is unlikely to be a factor.&lt;BR /&gt;&lt;BR /&gt;Be sure to google for something like: +q3p +hpux +site:hp.com &lt;BR /&gt;or +site:itrc.hp.com &lt;BR /&gt;for prior discussions and hints.&lt;BR /&gt;For example:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=72276" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=72276&lt;/A&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1113916" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1113916&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Sep 2008 10:45:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-32-bit-exe-in-64-bit-machine-core-dumps-after-2-1-gb/m-p/4263635#M674430</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-09-05T10:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: running 32 bit exe in 64 bit machine-Core dumps after 2.1 GB running process size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-32-bit-exe-in-64-bit-machine-core-dumps-after-2-1-gb/m-p/4263636#M674431</link>
      <description>Volkmar,&lt;BR /&gt;&lt;BR /&gt;Thanks for your promt reply.&lt;BR /&gt;Here we talking about process memory size.&lt;BR /&gt;Our executable loading huge amount of data to memory.&lt;BR /&gt;&lt;BR /&gt;When the process try to allocate memory beyond 2104 MB, calloc fails stating error code 12.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Naga&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Sep 2008 10:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-32-bit-exe-in-64-bit-machine-core-dumps-after-2-1-gb/m-p/4263636#M674431</guid>
      <dc:creator>Nagaraj komarsamy</dc:creator>
      <dc:date>2008-09-05T10:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: running 32 bit exe in 64 bit machine-Core dumps after 2.1 GB running process size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-32-bit-exe-in-64-bit-machine-core-dumps-after-2-1-gb/m-p/4263637#M674432</link>
      <description>Are you doing a series of small memory allocations or are you trying to do one really big allocation? I think I remember that even with q3/q4 enabled there are problems with allocating one chunk that's too large.</description>
      <pubDate>Fri, 05 Sep 2008 14:12:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-32-bit-exe-in-64-bit-machine-core-dumps-after-2-1-gb/m-p/4263637#M674432</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2008-09-05T14:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: running 32 bit exe in 64 bit machine-Core dumps after 2.1 GB running process size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-32-bit-exe-in-64-bit-machine-core-dumps-after-2-1-gb/m-p/4263638#M674433</link>
      <description>First thought -- did you set ulimit for data to "unlimited" yourself? unlimited to the shell really is RLIM_INFINITY from the getrlimit() system cal. And the 32-bit value for RLIM_INFINTY is (2Gb - 1) [signed 32-bit integer]. That's suspiciously close to your calloc() failure point. (And since you aren't completely clear if you fail trying to alloc 2104Mb or when you already have 2104Mb and are growing, I can't dismiss the possibility). So the first thing I'd try is from a shell where you haven't messed with the ulimit and inherit the defaults from the tunable. That isn't to say 11.0 may not have an issue somewhere with maxdsiz above the standard sentinel value for RLIM_INFINITY (but I can't find one in a defect search at the moment), but the possibility should be eliminated.&lt;BR /&gt;&lt;BR /&gt;If that isn't the problem -- the next obvious step would be to look at the resulting core in a debugger or use pstat_getprocvm() on the running process to check the virtual object layout in the process. You may have several private mmap's [which even worse may try MAP_FIXED or something] which the heap runs into. Hard to say with only this data. Sample code to report virtual objects attached, but fair warning -- I wrote this on v3 and intended it more for v2 / v3 -- it may take a little tweaking to compile and run on 11.0 -- I don't have such a box to do so myself.</description>
      <pubDate>Fri, 05 Sep 2008 16:23:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-32-bit-exe-in-64-bit-machine-core-dumps-after-2-1-gb/m-p/4263638#M674433</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2008-09-05T16:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: running 32 bit exe in 64 bit machine-Core dumps after 2.1 GB running process size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-32-bit-exe-in-64-bit-machine-core-dumps-after-2-1-gb/m-p/4263639#M674434</link>
      <description>&amp;gt;# swapinfo -ma&lt;BR /&gt;&lt;BR /&gt;No need to run three swapinfo commands, just use "swapinfo -tam".&lt;BR /&gt;&lt;BR /&gt;Do you have the last libc patch for 11.00?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Don: the next obvious step would be to look at the resulting core in a debugger ... to check the virtual object layout in the process. You may have several private mmap's &lt;BR /&gt;&lt;BR /&gt;In gdb on a core file you can use "info file" to get the layouts.  Using adb:&lt;BR /&gt;adb - core&lt;BR /&gt;$m&lt;BR /&gt;$q&lt;BR /&gt;&lt;BR /&gt;I'm not sure if malloc is smart enough to use  mmap(2) to allocate space if brk(2) fails?</description>
      <pubDate>Fri, 05 Sep 2008 17:55:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-32-bit-exe-in-64-bit-machine-core-dumps-after-2-1-gb/m-p/4263639#M674434</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-09-05T17:55:07Z</dc:date>
    </item>
  </channel>
</rss>

