<?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: Unable to allocate memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571041#M679231</link>
    <description>Hi (again) Shiv:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; How can I perform heap corruption diagnostics?&lt;BR /&gt;&lt;BR /&gt;You need to use the debugger:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hp.com/go/wdb" target="_blank"&gt;www.hp.com/go/wdb&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;On the upper right side of the web page is a link to documentation.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Wed, 03 Feb 2010 16:12:58 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2010-02-03T16:12:58Z</dc:date>
    <item>
      <title>Unable to allocate memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571033#M679223</link>
      <description>Hi Experts,&lt;BR /&gt;&lt;BR /&gt;My process needs to allocate around 1GB memory and it does so using new operator.&lt;BR /&gt;&lt;BR /&gt;Following are the system details:&lt;BR /&gt;HP-UX &lt;MACHINE-NAME&gt; B.11.23 U ia64 0409362437 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;Following is output from kmtune for data segment size:&lt;BR /&gt;kmtune | fgrep maxdsiz&lt;BR /&gt;maxdsiz 1073741824 Default Immed&lt;BR /&gt;maxdsiz_64bit 8589934592 8589934592 Immed&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Following is the output of swampinfo command:&lt;BR /&gt;/usr/sbin/swapinfo -tam&lt;BR /&gt;Mb Mb Mb PCT START/ Mb&lt;BR /&gt;TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME&lt;BR /&gt;dev 4096 4020 76 98% 0 - 1 /dev/vg00/lvol2&lt;BR /&gt;dev 10000 5207 4793 52% 0 - 1 /dev/vg01/lvol7&lt;BR /&gt;dev 16000 2699 13301 17% 0 - 1 /dev/vg01/lvol6&lt;BR /&gt;reserve - 17387 -17387&lt;BR /&gt;memory 18425 5344 13081 29%&lt;BR /&gt;total 48521 34657 13864 71% - 0 -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Following is the output of memprog command:&lt;BR /&gt;memprog&lt;BR /&gt;Memory Stat total used avail %used&lt;BR /&gt;physical 18424.9 18315.0 109.9 99%&lt;BR /&gt;active virtual 58409.2 3655.2 54754.0 6%&lt;BR /&gt;active real 7147.5 282.0 6865.5 4%&lt;BR /&gt;memory swap 18424.9 5344.4 13080.5 29%&lt;BR /&gt;device swap 30096.0 29319.2 776.8 97%&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Following is the output from gdb:&lt;BR /&gt;gdb compile_ocp_holding_x core.compile_ocp_holding_x&lt;BR /&gt;Detected 64-bit executable.&lt;BR /&gt;Invoking /usr/ccs/bin/gdb64.&lt;BR /&gt;HP gdb 3.4 for PA-RISC 2.0 (wide), HP-UX 11.00.&lt;BR /&gt;Copyright 1986 - 2001 Free Software Foundation, Inc.&lt;BR /&gt;Hewlett-Packard Wildebeest 3.4 (based on GDB) is covered by the&lt;BR /&gt;GNU General Public License. Type "show copying" to see the conditions to&lt;BR /&gt;change it and/or distribute copies. Type "show warranty" for warranty/support.&lt;BR /&gt;..&lt;BR /&gt;Core was generated by `compile_ocp_holding_x'.&lt;BR /&gt;Program terminated with signal 11, Segmentation fault.&lt;BR /&gt;#0 0x400000000006fd54 in grow_arena+0x2b4 ()&lt;BR /&gt;(gdb) where&lt;BR /&gt;#0 0x400000000006fd54 in grow_arena+0x2b4 ()&lt;BR /&gt;#1 0x400000000006e2c4 in real_malloc+0x67c ()&lt;BR /&gt;#2 0x400000000006baf0 in _malloc+0x670 ()&lt;BR /&gt;#3 0x4000000000070c34 in malloc+0x1c4 ()&lt;BR /&gt;#4 0x400000000004f034 in operator new []+0x4c ()&lt;BR /&gt;#5 0x40000000000423b0 in generate_holding_owner_lookup_binary (load_dir=0x9fffffffe000180b "/tfsw/ocp/production/loadA",&lt;BR /&gt;rpt_file_name=0x9fffffffe0001829 "ocp_holding_reg.rpt", holding_indx_owner_x=0x800000010801ef48, rpt_file_num_rows=@0x9fffffffe0005c40)&lt;BR /&gt;at compile_ocp_holding_x.cc:339&lt;BR /&gt;#6 0x40000000000443f4 in generate_binaries (load_dir=0x9fffffffe000180b "/tfsw/ocp/production/loadA",&lt;BR /&gt;rpt_file_name=0x9fffffffe0001829 "ocp_holding_reg.rpt", start_addr_map=@0x9fffffffe0004838, num_rows_map=@0x9fffffffe0004898)&lt;BR /&gt;at compile_ocp_holding_x.cc:820&lt;BR /&gt;#7 0x4000000000044920 in main (argc=5, argv=0x9fffffffe0001000) at compile_ocp_holding_x.cc:895&lt;BR /&gt;(gdb)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note that the program is 64 bit compiled using the following compilation/linking flags: &lt;BR /&gt;-Wl,+n,-a,archive -D_HPUX_SOURCE +DA2.0W &lt;BR /&gt;on the HP machine with following uname details:&lt;BR /&gt;HP-UX &lt;MACHINE-NAME&gt; B.11.11 U 9000/800 ocpdev1 unlimited-user license. The executable is then moved to IA64 machine and run where I get the above described allocation problem.&lt;BR /&gt;&lt;BR /&gt;Can somebody please tell me how to correct this allocation problem?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;-Shiv.&lt;/MACHINE-NAME&gt;&lt;/MACHINE-NAME&gt;</description>
      <pubDate>Mon, 25 Jan 2010 20:41:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571033#M679223</guid>
      <dc:creator>ShivS</dc:creator>
      <dc:date>2010-01-25T20:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571034#M679224</link>
      <description>Hi Shiv:&lt;BR /&gt;&lt;BR /&gt;You need to add physical memory and/or more swap.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 25 Jan 2010 20:55:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571034#M679224</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-01-25T20:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571035#M679225</link>
      <description>&amp;gt;Following are the system details:&lt;BR /&gt;&lt;BR /&gt;You should mention you are using Aries right away.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Following is output from kmtune for data segment size:&lt;BR /&gt;&amp;gt;kmtune | fgrep maxdsiz =&amp;gt; maxdsiz_64bit 8589934592&lt;BR /&gt;&lt;BR /&gt;You should be using kctune(1m), not the obsolete kmtune(1m).&lt;BR /&gt;There should be two other kernel parms with "pa" for these two.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Program terminated with signal 11, Segmentation fault.&lt;BR /&gt;#0 0x400000000006fd54 in grow_arena+0x2b4&lt;BR /&gt;&lt;BR /&gt;Hmm, this should give an error return and not a signal.  You may have heap corruption?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;-Wl,+n,-a,archive -D_HPUX_SOURCE +DA2.0W &lt;BR /&gt;&lt;BR /&gt;You should be using +DD64 instead of the obsolete +DA2.0W.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;JRF: You need to add physical memory and/or more swap.&lt;BR /&gt;&lt;BR /&gt;Unless the system was using more swap when it aborted, this will not help.</description>
      <pubDate>Tue, 26 Jan 2010 00:15:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571035#M679225</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-26T00:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571036#M679226</link>
      <description>&amp;gt;ME: There should be two other kernel parms with "pa" for these two.&lt;BR /&gt;&lt;BR /&gt;Oops, it appears these are only for the stack size:&lt;BR /&gt;pa_maxssiz_32bit pa_maxssiz_64bit</description>
      <pubDate>Tue, 26 Jan 2010 00:29:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571036#M679226</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-26T00:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571037#M679227</link>
      <description>Since this is PA64 program I don't think the value of ARIES specific kernel tunable parameter pa_maxssiz_64bit would cause large memory allocation from emulated program to fail. That case is more relevant for PA32 programs.&lt;BR /&gt;&lt;BR /&gt;pa_maxssiz_[32|64]bit do not specify the stack size for PA-RISC processes - they determine size of ARIES managed area in application data segment... more details in aries(5) man page.&lt;BR /&gt;&lt;BR /&gt;As suggested earlier, please add more physical memory and/or swap.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;-Rajesh&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Jan 2010 12:57:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571037#M679227</guid>
      <dc:creator>Rajesh K Chaurasia</dc:creator>
      <dc:date>2010-01-26T12:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571038#M679228</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Some more swap memory has been added as seen from the swapinfo command:&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/swapinfo -tam&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev        4096    1280    2816   31%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev       16000    1279   14721    8%       0       -    1  /dev/vg01/lvol6&lt;BR /&gt;dev       10000    1284    8716   13%       0       -    1  /dev/vg01/lvol7&lt;BR /&gt;dev         600     600       0  100%       0       -    1  /dev/vg01/lvol1&lt;BR /&gt;dev         400     400       0  100%       0       -    1  /dev/vg01/lvol4&lt;BR /&gt;reserve       -   16837  -16837&lt;BR /&gt;memory    18425    3228   15197   18%&lt;BR /&gt;total     49521   24908   24613   50%       -       0    -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Output of the memprog command:&lt;BR /&gt;memprog&lt;BR /&gt;Memory Stat      total    used   avail   %used&lt;BR /&gt;physical        18424.9 18329.9   95.0     99%&lt;BR /&gt;active virtual  36418.5 2934.2  33484.3     8%&lt;BR /&gt;active real     10393.0 1571.2  8821.8     15%&lt;BR /&gt;memory swap     18424.9 3228.4  15196.5    18%&lt;BR /&gt;device swap     31096.0 21686.2 9409.8     70%&lt;BR /&gt;&lt;BR /&gt;I am testing my programs so see if the memory related problems are resolved.&lt;BR /&gt;&lt;BR /&gt;Thanks for all you help!&lt;BR /&gt;Shiv.</description>
      <pubDate>Thu, 28 Jan 2010 15:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571038#M679228</guid>
      <dc:creator>ShivS</dc:creator>
      <dc:date>2010-01-28T15:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571039#M679229</link>
      <description>&amp;gt;Some more swap memory has been added as seen from the swapinfo command:&lt;BR /&gt;&lt;BR /&gt;You have essentially added nothing.  1 Gb isn't much in the scheme of things, 2%.  :-)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I am testing my programs so see if the memory related problems are resolved.&lt;BR /&gt;&lt;BR /&gt;As I mentioned above, you may have heap corruption.&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Jan 2010 04:11:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571039#M679229</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-29T04:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571040#M679230</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;How can I perform heap corruption diagnostics?  What are the tools available on IA64 HP machine?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shiv.</description>
      <pubDate>Wed, 03 Feb 2010 15:58:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571040#M679230</guid>
      <dc:creator>ShivS</dc:creator>
      <dc:date>2010-02-03T15:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571041#M679231</link>
      <description>Hi (again) Shiv:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; How can I perform heap corruption diagnostics?&lt;BR /&gt;&lt;BR /&gt;You need to use the debugger:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hp.com/go/wdb" target="_blank"&gt;www.hp.com/go/wdb&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;On the upper right side of the web page is a link to documentation.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 03 Feb 2010 16:12:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571041#M679231</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-02-03T16:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571042#M679232</link>
      <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;I have gdb and following are the details:&lt;BR /&gt;HP gdb 5.9 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.&lt;BR /&gt;Copyright 1986 - 2001 Free Software Foundation, Inc.&lt;BR /&gt;Hewlett-Packard Wildebeest 5.9 (based on GDB) is covered by the&lt;BR /&gt;GNU General Public License. Type "show copying" to see the conditions to&lt;BR /&gt;change it and/or distribute copies. Type "show warranty" for warranty/support.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Will this help in running the diagnostics?  Also do I need a core file for running the diagnostics or I can simply run the exe file via gdb's run command and perform the diagnostics?&lt;BR /&gt;&lt;BR /&gt;Thanks again for your help!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shiv.</description>
      <pubDate>Wed, 03 Feb 2010 16:20:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571042#M679232</guid>
      <dc:creator>ShivS</dc:creator>
      <dc:date>2010-02-03T16:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571043#M679233</link>
      <description>Latest HP debugger release is 6.1. Please use following white paper for details on how to use HP debugger to heap corruption analysis -&lt;BR /&gt;&lt;BR /&gt;"Debugging Dynamic Memory Usage&lt;BR /&gt;Errors Using HP WDB"&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/portal/download/files/unprot/devresource/Tools/wdb/doc/011310/memdebug-updated.pdf" target="_blank"&gt;http://h21007.www2.hp.com/portal/download/files/unprot/devresource/Tools/wdb/doc/011310/memdebug-updated.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;-Rajesh</description>
      <pubDate>Wed, 03 Feb 2010 18:04:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571043#M679233</guid>
      <dc:creator>Rajesh K Chaurasia</dc:creator>
      <dc:date>2010-02-03T18:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571044#M679234</link>
      <description>&amp;gt;I have gdb and following are the details:  HP gdb 5.9 for HP Itanium &lt;BR /&gt;&lt;BR /&gt;This won't help if you are running Aries.  You need to debug your heap corruption on PA.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;do I need a core file for running the diagnostics or I can simply run the exe file via gdb's run command and perform the diagnostics?&lt;BR /&gt;&lt;BR /&gt;If you know what you are doing, you may be able to analyze the corruption by looking at raw bits.&lt;BR /&gt;&lt;BR /&gt;Otherwise you must run the executable with "set heap-check on".</description>
      <pubDate>Thu, 04 Feb 2010 11:26:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory/m-p/4571044#M679234</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-02-04T11:26:51Z</dc:date>
    </item>
  </channel>
</rss>

