<?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 memory allocation problems (ENOMEM errno code) and maxsiz system parameters in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-problems-enomem-errno-code-and-maxsiz-system/m-p/2461227#M14155</link>
    <description>Hi *,&lt;BR /&gt;&lt;BR /&gt;I'm running a proprietary C++ process under HPUX 11.00 (hardware is an&lt;BR /&gt;HP L2000, 2 CPUs, 2 Gb RAM, 2 Gb swap).&lt;BR /&gt;This process uses a HUGE amount of memory.&lt;BR /&gt;After 2 hours and a half of processing, it always dies, killed by a&lt;BR /&gt;system process that detects a memory allocation problem !&lt;BR /&gt;&lt;BR /&gt;This is the end of the output of tusc (the truss-like tool for HPUX) :&lt;BR /&gt;&lt;BR /&gt;brk(0x67f31000)&lt;BR /&gt;....................................................................................&lt;BR /&gt;ERR#12 ENOMEM&lt;BR /&gt;  Received signal 6, SIGABRT, in kill(), [caught], no siginfo&lt;BR /&gt;  Received signal 6, SIGABRT, in kill(), [SIG_DFL], no siginfo&lt;BR /&gt;exit(6) [implicit (kill failure)]&lt;BR /&gt;..................................................................&lt;BR /&gt;WIFSIGNALED(SIGABRT)&lt;BR /&gt;&lt;BR /&gt;In order to solve these problems, I have tried to set with sam bigger&lt;BR /&gt;system parameters like maxdsiz, maxssiz, maxtsiz, &lt;BR /&gt;but this is not sufficient :&lt;BR /&gt;maxdsiz=3221225472 &lt;BR /&gt;maxssiz=401604608 &lt;BR /&gt;maxtsiz=1073741824 &lt;BR /&gt;&lt;BR /&gt;These values are the max I can set with sam, but the process seems to&lt;BR /&gt;allocate more memory !!!&lt;BR /&gt;Do I have to set other system parameters ?&lt;BR /&gt;&lt;BR /&gt;In addition, is there any tool (except ps and top) that can check in&lt;BR /&gt;real-time the amount of memory of my process ?&lt;BR /&gt;top is useful, but I loose all the memory info when the process dies ...&lt;BR /&gt;:-(((&lt;BR /&gt;with ps, I have to write a dedicated script that polls regularly the&lt;BR /&gt;process :-(((&lt;BR /&gt;&lt;BR /&gt;thanks in advance for any help ...&lt;BR /&gt;brgds,&lt;BR /&gt;Bertrand.</description>
    <pubDate>Fri, 03 Nov 2000 09:42:27 GMT</pubDate>
    <dc:creator>Bertrand Retif</dc:creator>
    <dc:date>2000-11-03T09:42:27Z</dc:date>
    <item>
      <title>memory allocation problems (ENOMEM errno code) and maxsiz system parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-problems-enomem-errno-code-and-maxsiz-system/m-p/2461227#M14155</link>
      <description>Hi *,&lt;BR /&gt;&lt;BR /&gt;I'm running a proprietary C++ process under HPUX 11.00 (hardware is an&lt;BR /&gt;HP L2000, 2 CPUs, 2 Gb RAM, 2 Gb swap).&lt;BR /&gt;This process uses a HUGE amount of memory.&lt;BR /&gt;After 2 hours and a half of processing, it always dies, killed by a&lt;BR /&gt;system process that detects a memory allocation problem !&lt;BR /&gt;&lt;BR /&gt;This is the end of the output of tusc (the truss-like tool for HPUX) :&lt;BR /&gt;&lt;BR /&gt;brk(0x67f31000)&lt;BR /&gt;....................................................................................&lt;BR /&gt;ERR#12 ENOMEM&lt;BR /&gt;  Received signal 6, SIGABRT, in kill(), [caught], no siginfo&lt;BR /&gt;  Received signal 6, SIGABRT, in kill(), [SIG_DFL], no siginfo&lt;BR /&gt;exit(6) [implicit (kill failure)]&lt;BR /&gt;..................................................................&lt;BR /&gt;WIFSIGNALED(SIGABRT)&lt;BR /&gt;&lt;BR /&gt;In order to solve these problems, I have tried to set with sam bigger&lt;BR /&gt;system parameters like maxdsiz, maxssiz, maxtsiz, &lt;BR /&gt;but this is not sufficient :&lt;BR /&gt;maxdsiz=3221225472 &lt;BR /&gt;maxssiz=401604608 &lt;BR /&gt;maxtsiz=1073741824 &lt;BR /&gt;&lt;BR /&gt;These values are the max I can set with sam, but the process seems to&lt;BR /&gt;allocate more memory !!!&lt;BR /&gt;Do I have to set other system parameters ?&lt;BR /&gt;&lt;BR /&gt;In addition, is there any tool (except ps and top) that can check in&lt;BR /&gt;real-time the amount of memory of my process ?&lt;BR /&gt;top is useful, but I loose all the memory info when the process dies ...&lt;BR /&gt;:-(((&lt;BR /&gt;with ps, I have to write a dedicated script that polls regularly the&lt;BR /&gt;process :-(((&lt;BR /&gt;&lt;BR /&gt;thanks in advance for any help ...&lt;BR /&gt;brgds,&lt;BR /&gt;Bertrand.</description>
      <pubDate>Fri, 03 Nov 2000 09:42:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-problems-enomem-errno-code-and-maxsiz-system/m-p/2461227#M14155</guid>
      <dc:creator>Bertrand Retif</dc:creator>
      <dc:date>2000-11-03T09:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocation problems (ENOMEM errno code) and maxsiz system parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-problems-enomem-errno-code-and-maxsiz-system/m-p/2461228#M14156</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It sounds as though your process may be using up all the available swap space.&lt;BR /&gt;&lt;BR /&gt;You say that you have 2Gb of device swap, what is your kernel parameter 'swapmem_on' set to? If 0 then 2Gb is your limit, if 1 then you will have an effective limit of about 3.5Gb.&lt;BR /&gt;&lt;BR /&gt;Check your swap usage with swapinfo -mt&lt;BR /&gt;note that if swapmem_on is 1 then this will output a line starting 'memory...'.&lt;BR /&gt;&lt;BR /&gt;The best tool for monitoring process memory usage is 'glance'. This is a purchasable product but you can install a 60 day evaluation copy from your Application CD #2.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Fri, 03 Nov 2000 10:13:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-problems-enomem-errno-code-and-maxsiz-system/m-p/2461228#M14156</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-11-03T10:13:01Z</dc:date>
    </item>
  </channel>
</rss>

