<?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: brk system call failed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/brk-system-call-failed/m-p/3565631#M838424</link>
    <description>The value is a pointer for the end of the data segment. It means that you have bumped into maxdsiz for 32-bit programs or maxdsiz_64bit for 64-bit programs. It could also fail below maxdsiz if no more virtual memory were available (ie out of swap space).</description>
    <pubDate>Thu, 16 Jun 2005 17:08:07 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2005-06-16T17:08:07Z</dc:date>
    <item>
      <title>brk system call failed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/brk-system-call-failed/m-p/3565630#M838423</link>
      <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;I was tracing a application which failed on memory allocation.&lt;BR /&gt;&lt;BR /&gt;The tusc out shown the following&lt;BR /&gt;&lt;BR /&gt;brk(0x79e20000) .................................................... ERR#12 ENOMEM   &lt;BR /&gt;&lt;BR /&gt;Which does the hex value mean?  Is the the size in bytes?&lt;BR /&gt;&lt;BR /&gt;The maxdsiz &amp;amp; maxssiz set on the server as belows (HPUX11i)&lt;BR /&gt;&lt;BR /&gt;maxdsiz            0x50000000&lt;BR /&gt;maxdsiz_64bit      0x80000000&lt;BR /&gt;maxssiz             0x8000000&lt;BR /&gt;maxssiz_64bit      0x40000000&lt;BR /&gt;maxtsiz             0x8000000&lt;BR /&gt;maxtsiz_64bit      0x80000000&lt;BR /&gt;&lt;BR /&gt;Is it necessary to increase any value to make the program works?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Simon&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jun 2005 16:58:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/brk-system-call-failed/m-p/3565630#M838423</guid>
      <dc:creator>Camel_1</dc:creator>
      <dc:date>2005-06-16T16:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: brk system call failed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/brk-system-call-failed/m-p/3565631#M838424</link>
      <description>The value is a pointer for the end of the data segment. It means that you have bumped into maxdsiz for 32-bit programs or maxdsiz_64bit for 64-bit programs. It could also fail below maxdsiz if no more virtual memory were available (ie out of swap space).</description>
      <pubDate>Thu, 16 Jun 2005 17:08:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/brk-system-call-failed/m-p/3565631#M838424</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-06-16T17:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: brk system call failed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/brk-system-call-failed/m-p/3565632#M838425</link>
      <description>brk value is an offset from the start of the second quadrant (Q2) which is at 0x40000000. Subtract these two numbers and you will find out how much memory program tried to allocate. The end of the second quadrant is at 0x80000000.&lt;BR /&gt;&lt;BR /&gt;It looks like you have 32-bit program, so it may be possible for it to allocate more than 1G by using chatr&lt;BR /&gt;&lt;BR /&gt;# chatr +q3p enable +q4p enable &lt;EXECUTABLE&gt;&lt;BR /&gt;&lt;BR /&gt;This will allow use of private data in third and forth quadrant, which should give you an extra 2G.&lt;BR /&gt;&lt;BR /&gt;You will also need to bump up maxdsiz and maxdsiz_64bit accordingly.&lt;BR /&gt;&lt;BR /&gt;All of this assumes that you have enough virtual memory (RAM + swap) configured in your system.&lt;/EXECUTABLE&gt;</description>
      <pubDate>Thu, 16 Jun 2005 22:24:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/brk-system-call-failed/m-p/3565632#M838425</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-06-16T22:24:21Z</dc:date>
    </item>
  </channel>
</rss>

