<?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, HP-UX  B.11.11 U 9000/800 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312175#M683111</link>
    <description>&amp;gt;total     60787   13490   47297   22%&lt;BR /&gt;&lt;BR /&gt;You have plenty of swap.  Did you run this at the same time as your application abort?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;How do I find the maxdsiz for 64 bit?&lt;BR /&gt;&lt;BR /&gt;kmtune | fgrep maxdsiz&lt;BR /&gt;&lt;BR /&gt;If your process is 64 bit and you are running out of space, you have major problems.</description>
    <pubDate>Tue, 25 Nov 2008 00:40:03 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-11-25T00:40:03Z</dc:date>
    <item>
      <title>Unable to allocate memory, HP-UX  B.11.11 U 9000/800</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312170#M683106</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;My application is trying to allocate an array of size 953773 where each array element is 104 bytes each.  However, the new operator throws an error.&lt;BR /&gt;&lt;BR /&gt;The output of memprog on this machine is:&lt;BR /&gt;Memory Stat      total    used   avail   %used&lt;BR /&gt;physical        36288.0 13705.0 22583.0    38%&lt;BR /&gt;active virtual  12030.6  882.7  11147.8     7%&lt;BR /&gt;active real     2617.2   730.6  1886.5     28%&lt;BR /&gt;memory swap     28019.2 7420.9  20598.2    26%&lt;BR /&gt;device swap     32768.0 5982.5  26785.5    18%&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can anybody please advise how to investigate this problem further?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;-Shiv</description>
      <pubDate>Mon, 24 Nov 2008 23:49:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312170#M683106</guid>
      <dc:creator>ShivS</dc:creator>
      <dc:date>2008-11-24T23:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory, HP-UX  B.11.11 U 9000/800</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312171#M683107</link>
      <description>What is maxdsiz?&lt;BR /&gt;What does "swapinfo -tam" show?</description>
      <pubDate>Mon, 24 Nov 2008 23:53:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312171#M683107</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-24T23:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory, HP-UX  B.11.11 U 9000/800</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312172#M683108</link>
      <description>Hi Shiv:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; However, the new operator throws an error.&lt;BR /&gt;&lt;BR /&gt;It's always nice to specify an error number ('errno') though in this case your failure is likely to be either insufficient swap space or too small a 'maxdsiz'.  If swap space is sufficient look at 'maxdsiz' if your process is a 32-bit one.  Otherwise, if your process is a 64-bit one, look at the value of 'maxdsiz_64bit'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 25 Nov 2008 00:20:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312172#M683108</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-11-25T00:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory, HP-UX  B.11.11 U 9000/800</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312173#M683109</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Here's the output of 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        8192      38    8154    0%       0       -    1  /dev/vg00/lvol11&lt;BR /&gt;dev        8192      38    8154    0%       0       -    1  /dev/vg01/lvol12&lt;BR /&gt;dev       16384       0   16384    0%       0       -    2  /dev/vg01/lvol17&lt;BR /&gt;reserve       -    5993   -5993&lt;BR /&gt;memory    28019    7421   20598   26%&lt;BR /&gt;total     60787   13490   47297   22%       -       0    -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How do I find the maxdsize for 64 bit?&lt;BR /&gt;&lt;BR /&gt;-Shiv</description>
      <pubDate>Tue, 25 Nov 2008 00:35:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312173#M683109</guid>
      <dc:creator>ShivS</dc:creator>
      <dc:date>2008-11-25T00:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory, HP-UX  B.11.11 U 9000/800</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312174#M683110</link>
      <description>&amp;gt;JRF: It's always nice to specify an error number&lt;BR /&gt;&lt;BR /&gt;The error thrown from the default operator new, bad_alloc, which means malloc returned NULL.&lt;BR /&gt;But that doesn't distinguish between the maxdsiz limit or out of swap space.</description>
      <pubDate>Tue, 25 Nov 2008 00:37:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312174#M683110</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-25T00:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory, HP-UX  B.11.11 U 9000/800</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312175#M683111</link>
      <description>&amp;gt;total     60787   13490   47297   22%&lt;BR /&gt;&lt;BR /&gt;You have plenty of swap.  Did you run this at the same time as your application abort?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;How do I find the maxdsiz for 64 bit?&lt;BR /&gt;&lt;BR /&gt;kmtune | fgrep maxdsiz&lt;BR /&gt;&lt;BR /&gt;If your process is 64 bit and you are running out of space, you have major problems.</description>
      <pubDate>Tue, 25 Nov 2008 00:40:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312175#M683111</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-25T00:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory, HP-UX  B.11.11 U 9000/800</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312176#M683112</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis: But that doesn't distinguish between the maxdsiz limit or out of swap space.&lt;BR /&gt;&lt;BR /&gt;Yup, I certainly didn't say that well --- only that in this case the errno is probably ENOMEM and that indicates "either".&lt;BR /&gt;&lt;BR /&gt;I was trying to point out that descriptions like "throws an error" are too general when good coding techniques can report the exact error which, in turn, then can be uplifted to good problem descriptions.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 25 Nov 2008 00:46:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312176#M683112</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-11-25T00:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory, HP-UX  B.11.11 U 9000/800</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312177#M683113</link>
      <description>&lt;!--!*#--&gt;The swapinfo -tam output when my application aborted:&lt;BR /&gt;&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        8192      38    8154    0%       0       -    1  /dev/vg00/lvol11&lt;BR /&gt;dev        8192      38    8154    0%       0       -    1  /dev/vg01/lvol12&lt;BR /&gt;dev       16384       0   16384    0%       0       -    2  /dev/vg01/lvol17&lt;BR /&gt;reserve       -    5991   -5991&lt;BR /&gt;memory    28019    7421   20598   26%&lt;BR /&gt;total     60787   13488   47299   22%       -       0    -&lt;BR /&gt;&lt;BR /&gt;kmtune output is:&lt;BR /&gt;$ kmtune | grep maxdsiz&lt;BR /&gt;maxdsiz            1073741824  -  1073741824&lt;BR /&gt;maxdsiz_64bit      4294967296  -  4294967296&lt;BR /&gt;&lt;BR /&gt;-Shiv</description>
      <pubDate>Tue, 25 Nov 2008 00:53:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312177#M683113</guid>
      <dc:creator>ShivS</dc:creator>
      <dc:date>2008-11-25T00:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory, HP-UX  B.11.11 U 9000/800</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312178#M683114</link>
      <description>Hi (again) Shiv:&lt;BR /&gt;&lt;BR /&gt;Is your process a 32-bit one?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 25 Nov 2008 00:58:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312178#M683114</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-11-25T00:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory, HP-UX  B.11.11 U 9000/800</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312179#M683115</link>
      <description>Its a 64 bit process.&lt;BR /&gt;&lt;BR /&gt;-Shiv</description>
      <pubDate>Tue, 25 Nov 2008 00:59:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312179#M683115</guid>
      <dc:creator>ShivS</dc:creator>
      <dc:date>2008-11-25T00:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory, HP-UX  B.11.11 U 9000/800</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312180#M683116</link>
      <description>&amp;gt;JRF: I certainly didn't say that well&lt;BR /&gt;&lt;BR /&gt;You said it well, I'm saying that libc and the aC++ runtime only tells you "black".&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I was trying to point out that descriptions like "throws an error" are too general&lt;BR /&gt;&lt;BR /&gt;In this case "throws an error" is EXACTLY what the aC++ runtime does.  But it only throws the color "black", bad_alloc.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; ShivS: The swapinfo -tam output when my application aborted:&lt;BR /&gt;&amp;gt;total   60787 13488 47299 22%&lt;BR /&gt;&amp;gt;maxdsiz          1 Gb&lt;BR /&gt;&amp;gt;maxdsiz_64bit    4 Gb&lt;BR /&gt;&lt;BR /&gt;This says you are not out of swap, so the only answer is that you are very greedy.  :-)&lt;BR /&gt;You are using more than 1 Gb or 4 Gb for a 64 bit executable.&lt;BR /&gt;&lt;BR /&gt;You may want to look at the top(1) output as your application runs.&lt;BR /&gt;&lt;BR /&gt;If you need more than 1 Gb, you can increase maxdsiz to 4 Gb and link with -N, to get to 2 Gb.</description>
      <pubDate>Tue, 25 Nov 2008 01:12:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312180#M683116</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-25T01:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory, HP-UX  B.11.11 U 9000/800</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312181#M683117</link>
      <description>&amp;gt;It's a 64 bit process.&lt;BR /&gt;&lt;BR /&gt;(You have compiled with +DD64?)&lt;BR /&gt;Then you need to increase maxdsiz_64bit.  Do you have any idea how much memory you need?  You could try 8 Gb.</description>
      <pubDate>Tue, 25 Nov 2008 01:15:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312181#M683117</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-25T01:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory, HP-UX  B.11.11 U 9000/800</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312182#M683118</link>
      <description>&lt;!--!*#--&gt;&amp;gt;Dennis Handly: If you need more than 1 Gb, you can increase maxdsiz to 4 Gb and link with -N, to get to 2 Gb.&lt;BR /&gt;&lt;BR /&gt;Can you please tell me all the commands?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;JRF: (You have compiled with +DD64?)&lt;BR /&gt;&amp;gt;JRF: Then you need to increase maxdsiz_64bit. Do you have any idea how much memory you need? You could try 8 Gb.&lt;BR /&gt;&lt;BR /&gt;Yes, I have compiled with +DD64.  I can try 8 GB.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shiv</description>
      <pubDate>Tue, 25 Nov 2008 16:27:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312182#M683118</guid>
      <dc:creator>ShivS</dc:creator>
      <dc:date>2008-11-25T16:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory, HP-UX  B.11.11 U 9000/800</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312183#M683119</link>
      <description>&amp;gt;Can you please tell me all the commands?&lt;BR /&gt;&amp;gt;I have compiled with +DD64.  I can try 8 GB.&lt;BR /&gt;&lt;BR /&gt;You go into SAM and increase maxdsiz_64bit and it will reboot.</description>
      <pubDate>Tue, 25 Nov 2008 19:39:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312183#M683119</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-25T19:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to allocate memory, HP-UX  B.11.11 U 9000/800</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312184#M683120</link>
      <description>&lt;!--!*#--&gt;Yes, I increased the maxdsize_64bit to 8 GB and this has solved my problem.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for all your help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shiv.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Nov 2008 20:01:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-allocate-memory-hp-ux-b-11-11-u-9000-800/m-p/4312184#M683120</guid>
      <dc:creator>ShivS</dc:creator>
      <dc:date>2008-11-25T20:01:55Z</dc:date>
    </item>
  </channel>
</rss>

