<?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: Catastrophic error #21015: Out of memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553440#M370830</link>
    <description>Building Oracle normally requires enormous amounts of memory (dozens of GB), much more than the running Oracle. Your installation notes from Oracle should indicate how much memory you will need. Note that this does not have to be real memory, it can be mostly swap space. This is temporary for the build process -- use swapon to add an unused lvol while building. After reboot, the lvol will be returned to unused state.</description>
    <pubDate>Mon, 21 Dec 2009 15:00:37 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2009-12-21T15:00:37Z</dc:date>
    <item>
      <title>Catastrophic error #21015: Out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553438#M370828</link>
      <description>Build of one of oracle (11g) source file gives following error:&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;Catastrophic error #21015: Out of memory&lt;BR /&gt;&lt;BR /&gt;1 catastrophic error detected in the compilation of "kdli.c".&lt;BR /&gt;Compilation terminated.&lt;BR /&gt;gmake: *** [kdli.o] Error 4&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;&lt;BR /&gt;I am using following compiler version:&lt;BR /&gt;$ ... ansic/bin/cc -V&lt;BR /&gt;cc: HP C/aC++ B3910B A.06.14 [Feb 22 2007]&lt;BR /&gt;&lt;BR /&gt;Any idea why this error? Is there any known is reported on that compiler?</description>
      <pubDate>Mon, 21 Dec 2009 12:10:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553438#M370828</guid>
      <dc:creator>Nandisha</dc:creator>
      <dc:date>2009-12-21T12:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Catastrophic error #21015: Out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553439#M370829</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I'd take the error on its merits.&lt;BR /&gt;&lt;BR /&gt;as root, check swapinto -tam&lt;BR /&gt;Lets see what the memory situation actually is.&lt;BR /&gt;&lt;BR /&gt;I'd also check the system is patched appropriately, the error could come from not meeting Oracle patch requirements.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 21 Dec 2009 14:08:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553439#M370829</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-12-21T14:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Catastrophic error #21015: Out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553440#M370830</link>
      <description>Building Oracle normally requires enormous amounts of memory (dozens of GB), much more than the running Oracle. Your installation notes from Oracle should indicate how much memory you will need. Note that this does not have to be real memory, it can be mostly swap space. This is temporary for the build process -- use swapon to add an unused lvol while building. After reboot, the lvol will be returned to unused state.</description>
      <pubDate>Mon, 21 Dec 2009 15:00:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553440#M370830</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-12-21T15:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Catastrophic error #21015: Out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553441#M370831</link>
      <description>If you are building (and working for?) Oracle, you should be contacting HP directly, not asking here.  (Unless you know that most of HP is closed for the end of the year.  :-)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Catastrophic error #21015: Out of memory&lt;BR /&gt;&lt;BR /&gt;Since you aren't on A.06.15 or later where you you need to configure maxdsiz_64bit to 4 GB or larger, you need to do what SEP and Bill suggests and look at your swap and maxdsiz.&lt;BR /&gt;The latest version of aC++ is A.06.24.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Bill: Building Oracle normally requires enormous amounts of memory (dozens of GB)&lt;BR /&gt;&lt;BR /&gt;This version of the compiler can only use 1 GB at a time.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Your installation notes from Oracle should indicate how much memory you will need.&lt;BR /&gt;&lt;BR /&gt;To install Oracle shouldn't take large amounts of swap, only building it.</description>
      <pubDate>Mon, 21 Dec 2009 16:37:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553441#M370831</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-21T16:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Catastrophic error #21015: Out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553442#M370832</link>
      <description>Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;I know it's shutdown period for hp folks and not available till 3rd of next month :-)&lt;BR /&gt;&lt;BR /&gt;Looks like we have a good memory. See detail here:&lt;BR /&gt;&lt;BR /&gt;$ swapinfo&lt;BR /&gt;             Kb      Kb      Kb   PCT  START/      Kb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev     8388608    9900 8378708    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev     37109760       0 37109760    0%       0       -    5  /dev/vg00/lvol10&lt;BR /&gt;dev     8388608    9756 8378852    0%       0       -    1  /dev/vg01/lvol1&lt;BR /&gt;dev     32563200       0 32563200    0%       0       -    5  /dev/vg01/lvol3</description>
      <pubDate>Tue, 22 Dec 2009 13:21:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553442#M370832</guid>
      <dc:creator>Nandisha</dc:creator>
      <dc:date>2009-12-22T13:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Catastrophic error #21015: Out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553443#M370833</link>
      <description>&amp;gt;$ swapinfo&lt;BR /&gt;&lt;BR /&gt;Please provide "swapinfo -tam" as SEP asked.&lt;BR /&gt;Also provide the values of maxdsiz, maxdsiz_64bit, maxssiz and maxssiz_64bit.&lt;BR /&gt;&lt;BR /&gt;What optimization options are you using?</description>
      <pubDate>Tue, 22 Dec 2009 14:28:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553443#M370833</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-22T14:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Catastrophic error #21015: Out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553444#M370834</link>
      <description>&amp;gt; Please provide "swapinfo -tam" as SEP asked.&lt;BR /&gt;&lt;BR /&gt;Kindly see the same below:&lt;BR /&gt;$ 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       0    8192    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        8192       0    8192    0%       0       -    1  /dev/vg01/lvol1&lt;BR /&gt;reserve       -     885    -885&lt;BR /&gt;memory    16364    4012   12352   25%&lt;BR /&gt;total     32748    4897   27851   15%       -       0    -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Also provide the values of maxdsiz, maxdsiz_64bit, maxssiz and maxssiz_64bit.&lt;BR /&gt;&lt;BR /&gt;$ kctune |grep -i maxdsiz&lt;BR /&gt;maxdsiz                   2952790016  2952790016   Immed&lt;BR /&gt;maxdsiz_64bit            17179869184  17179869184  Immed&lt;BR /&gt;&lt;BR /&gt;$ kctune |grep -i maxssiz&lt;BR /&gt;maxssiz                    134217728  134217728    Immed&lt;BR /&gt;maxssiz_64bit             1073741824  1073741824   Immed&lt;BR /&gt;pa_maxssiz_32bit            83648512  Default      &lt;BR /&gt;pa_maxssiz_64bit           536870912  Default   &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; What optimization options are you using?&lt;BR /&gt;&lt;BR /&gt;+Olibmerrno +Ovolatile=__unordered +Ofast +Olit=all +DSblended +Onopreserved_fpregs +Onorotating_fpregs +Onofailsafe +Odatalayout +FPd +Ofltacc  +O2 +Oprofile=use:.../flow.data&lt;BR /&gt;&lt;BR /&gt;env variable 'PROFILE_ON=use' is set.&lt;BR /&gt;&lt;BR /&gt;Should we reduce/disable optimization? If so, is this will not create any unexpected results/probolems?&lt;BR /&gt;&lt;BR /&gt;Note:-&lt;BR /&gt;Actually, this issue (Catastrophic error #21015: Out of memory) is start coming after applying one of the oracle patch which is adding fix code changes to xyz.c source file. And then the issue is coming during compilation of xyz.c.</description>
      <pubDate>Wed, 23 Dec 2009 09:56:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553444#M370834</guid>
      <dc:creator>Nandisha</dc:creator>
      <dc:date>2009-12-23T09:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Catastrophic error #21015: Out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553445#M370835</link>
      <description>&amp;gt;total 32748 4897 27851 15%&lt;BR /&gt;&lt;BR /&gt;Now, you have plenty of swap.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;maxdsiz 2952790016&lt;BR /&gt;&lt;BR /&gt;This is more than ecom can use.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;maxssiz 134217728&lt;BR /&gt;&lt;BR /&gt;This is way too much.  You could recompile by first using:&lt;BR /&gt;ulimit -s $(( 40 * 1024 ))&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Should we reduce/disable optimization? If so, is this will not create any unexpected results/problems?&lt;BR /&gt;&lt;BR /&gt;You'll have to do that.  Either that or go to the latest, A.06.24, where there is no limit.&lt;BR /&gt;&lt;BR /&gt;Otherwise dropping the optimization level may slow down the application.&lt;BR /&gt;If you aren't using the very latest compilers, you should remove +Onofailsafe.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;after applying one of the oracle patch which is adding fix code changes to xyz.c source file. And then the issue is coming during compilation of xyz.c.&lt;BR /&gt;&lt;BR /&gt;If you know the function(s) that changed, then you can either split them up or use:&lt;BR /&gt;+O1=function1,function2</description>
      <pubDate>Wed, 23 Dec 2009 10:34:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553445#M370835</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-23T10:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Catastrophic error #21015: Out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553446#M370836</link>
      <description>&amp;gt; ulimit -s $(( 40 * 1024 ))&lt;BR /&gt;&lt;BR /&gt;$ ulimit -s&lt;BR /&gt;131072&lt;BR /&gt;&lt;BR /&gt;$ ulimit -s 40960&lt;BR /&gt;$&lt;BR /&gt;$ ulimit -s&lt;BR /&gt;131072&lt;BR /&gt;&lt;BR /&gt;The value 40960 is not taken effect for stack size change. Any idea why is it so?&lt;BR /&gt;&lt;BR /&gt;Oracle 11gR1 is recommended A.06.14. So, I don't think we can upgrade to latest which is A.06.24.&lt;BR /&gt;&lt;BR /&gt;Trying out one of other suggested options i.e., removing 'Onofailsafe' and compiling the source. Will update the results.</description>
      <pubDate>Wed, 23 Dec 2009 12:28:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553446#M370836</guid>
      <dc:creator>Nandisha</dc:creator>
      <dc:date>2009-12-23T12:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Catastrophic error #21015: Out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553447#M370837</link>
      <description>I am able to build my source without +Onofailsafe option.&lt;BR /&gt;&lt;BR /&gt;Is this okay to use as a workaround? OR is it worth while to try other option? i.e.,&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;If you know the function(s) that changed, then you can either split them up or use:&lt;BR /&gt;+O1=function1,function2&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</description>
      <pubDate>Wed, 23 Dec 2009 12:37:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553447#M370837</guid>
      <dc:creator>Nandisha</dc:creator>
      <dc:date>2009-12-23T12:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Catastrophic error #21015: Out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553448#M370838</link>
      <description>&amp;gt;I am able to build my source without +Onofailsafe option.&lt;BR /&gt;&lt;BR /&gt;Do you get a warning saying the compile is restarting at a lower opt level?&lt;BR /&gt;(In future compilers, we will no longer do that if we run out of memory.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Is this okay to use as a workaround? OR is it worth while to try other option?&lt;BR /&gt;&lt;BR /&gt;If it drops the opt level of the whole file then you'll probably get better performance if you limit the opt level drop with:&lt;BR /&gt;+O1=function1,function2</description>
      <pubDate>Wed, 23 Dec 2009 14:21:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553448#M370838</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-23T14:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Catastrophic error #21015: Out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553449#M370839</link>
      <description>1.&lt;BR /&gt;After removing option +Onofailsafe, it builds with folloiwng warning:&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;Warning #21015-D: Out of memory&lt;BR /&gt;&lt;BR /&gt;Warning #20013-D: Optimization aborted in function unknown. Attempting&lt;BR /&gt;          compilation unit again but dropping the optimization level to +O1.&lt;BR /&gt;          Please report this warning and error 21015 to HP.  (20013)&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;&lt;BR /&gt;2.&lt;BR /&gt;I directly lowering the optimization from +O2 to +O1. With this I am able to build required object file.&lt;BR /&gt;&lt;BR /&gt;3. &lt;BR /&gt;Then I tried to include almost all changed procedure to +O1 (+O1=func1,func2, func3, etc) in the compiler line. But, still I got same Catastrophic error #21015. So, I don't think it's too effective.</description>
      <pubDate>Thu, 24 Dec 2009 10:07:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553449#M370839</guid>
      <dc:creator>Nandisha</dc:creator>
      <dc:date>2009-12-24T10:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Catastrophic error #21015: Out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553450#M370840</link>
      <description>&amp;gt;After removing option +Onofailsafe, it builds with following warning:&lt;BR /&gt;&lt;BR /&gt;Ok, the whole file is dropped to +O1 and unfortunately it doesn't list a particular function name.  Do you have lots of data initialization?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I directly lowering the optimization from +O2 to +O1.&lt;BR /&gt;&lt;BR /&gt;That's the same as +Ofailsafe.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;3. Then I tried to include almost all changed procedure to +O1 (+O1=func1,func2, func3, etc) in the compiler line.&lt;BR /&gt;&lt;BR /&gt;You may have to include ALL functions and then binary search though them to remove them.&lt;BR /&gt;&lt;BR /&gt;Or break up any large functions.</description>
      <pubDate>Thu, 24 Dec 2009 12:04:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553450#M370840</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-24T12:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Catastrophic error #21015: Out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553451#M370841</link>
      <description>also look at the space available in /tmp</description>
      <pubDate>Thu, 24 Dec 2009 12:58:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553451#M370841</guid>
      <dc:creator>Javed Khan_1</dc:creator>
      <dc:date>2009-12-24T12:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Catastrophic error #21015: Out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553452#M370842</link>
      <description>&amp;gt;Javed: also look at the space available in /tmp&lt;BR /&gt;&lt;BR /&gt;Why?  It would be illegal for the compiler to use space in /tmp/.  It uses /var/tmp/ or $TMPDIR and then very very rarely.  Use "cc -v".&lt;BR /&gt;error #21015: Out of memory is for swap space or maxdsiz and not disk space.</description>
      <pubDate>Thu, 24 Dec 2009 13:18:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553452#M370842</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-24T13:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Catastrophic error #21015: Out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553453#M370843</link>
      <description>Thanks..Will check this.</description>
      <pubDate>Mon, 28 Dec 2009 12:31:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/catastrophic-error-21015-out-of-memory/m-p/4553453#M370843</guid>
      <dc:creator>Nandisha</dc:creator>
      <dc:date>2009-12-28T12:31:21Z</dc:date>
    </item>
  </channel>
</rss>

