<?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: debugging very large applications in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/debugging-very-large-applications/m-p/3696195#M796249</link>
    <description>Thank you!  The chatr q3p/q4p thing did the trick!</description>
    <pubDate>Wed, 21 Dec 2005 15:47:55 GMT</pubDate>
    <dc:creator>Thomas Matelich</dc:creator>
    <dc:date>2005-12-21T15:47:55Z</dc:date>
    <item>
      <title>debugging very large applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debugging-very-large-applications/m-p/3696192#M796246</link>
      <description>(related to &lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=982960" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=982960&lt;/A&gt; same application, trying to debug it under gdb or wdb.  I started building my app dynamically though, removing the problem with mmap)&lt;BR /&gt;&lt;BR /&gt;Really, I believe this issue comes down to kernel parameters somehow.  I have 2GB memory and originally had 1 GB swap.  Since I started working on this problem I have added 5 more GB of swap.&lt;BR /&gt;&lt;BR /&gt;Here are some kernel param values I think are related to the problem.  All of these were smaller at some point in my exploration:&lt;BR /&gt;&lt;BR /&gt;maxdsiz       - 0xCC000000&lt;BR /&gt;maxssiz       - 0x4000000&lt;BR /&gt;maxtsiz       - 0x40000000&lt;BR /&gt;maxswapchunks - 5000&lt;BR /&gt;&lt;BR /&gt;When I run gdb and watch top, I see its memory usage grow to where SIZE is reported around 900-950 MB and RES is around 900 MB.  gdb then fails with a message about virtual memory exhausted: can't allocate 95743917 bytes.  WDB has the same behavior.  I tried to run DDE but it won't come up for some reason.&lt;BR /&gt;&lt;BR /&gt;While gdb is still running, using the memory it has used so far, /etc/swapinfo -t reports:&lt;BR /&gt;&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     1048576       0 1048576    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev     5242880  113056 5129824    2%       0       -    0  /dev/vg00/lvol10&lt;BR /&gt;reserve       - 1360172 -1360172&lt;BR /&gt;memory  1566484  465180 1101304   30%&lt;BR /&gt;total   7857940 1938408 5919532   25%       -       0    -&lt;BR /&gt;&lt;BR /&gt;Is there a trick to exceeding 1 GB memory in an application?  Thanks!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tom</description>
      <pubDate>Wed, 21 Dec 2005 14:34:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debugging-very-large-applications/m-p/3696192#M796246</guid>
      <dc:creator>Thomas Matelich</dc:creator>
      <dc:date>2005-12-21T14:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: debugging very large applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debugging-very-large-applications/m-p/3696193#M796247</link>
      <description>If this is 11.23, then you may be running into a new bug.  There is no official patch for the problem (coming sometime in 2006).&lt;BR /&gt;&lt;BR /&gt;I would suggest you log a SW case with HP and ask them if they have a temporary patch that you can get.</description>
      <pubDate>Wed, 21 Dec 2005 15:08:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debugging-very-large-applications/m-p/3696193#M796247</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2005-12-21T15:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: debugging very large applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debugging-very-large-applications/m-p/3696194#M796248</link>
      <description>Hi Tom:&lt;BR /&gt;&lt;BR /&gt;You could try a 'chatr' on your executable to increase the third or fourth guadrant space.  See the man pages for 'chatr'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 21 Dec 2005 15:12:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debugging-very-large-applications/m-p/3696194#M796248</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-12-21T15:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: debugging very large applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debugging-very-large-applications/m-p/3696195#M796249</link>
      <description>Thank you!  The chatr q3p/q4p thing did the trick!</description>
      <pubDate>Wed, 21 Dec 2005 15:47:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debugging-very-large-applications/m-p/3696195#M796249</guid>
      <dc:creator>Thomas Matelich</dc:creator>
      <dc:date>2005-12-21T15:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: debugging very large applications</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debugging-very-large-applications/m-p/3696196#M796250</link>
      <description>32bit applications are mapped into 4 quadrants of 1Gb each. So a program compiled without EXEC_MAGIC has it's data area stuck in one quadrant, thus the apx. 950Mb limit. Compile with -Wl -N to allow the data area to occupy most of two quadrants. +q3 and +q4 bunmp the limits up to about 2700 and 3700 megs resepctively. In all cases, each quadrant extension comes with several limits and considerations. Be sure to read the memory management white paper for 32bit programs.&lt;BR /&gt; &lt;BR /&gt;Change the compilation to 64bits and now you can grab dozens of Gb of data area. Attached is a simple program to illustrate all the options.</description>
      <pubDate>Wed, 21 Dec 2005 21:41:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debugging-very-large-applications/m-p/3696196#M796250</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-12-21T21:41:07Z</dc:date>
    </item>
  </channel>
</rss>

