<?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: pthread stack size in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789413#M641283</link>
    <description>&amp;gt;why not also increase the default stack size to accommodate the function changes? &lt;BR /&gt;&lt;BR /&gt;Because "slightly more" isn't enough to worry about?  ;-)&lt;BR /&gt;And increasing it may break other applications that may run out of swap.&lt;BR /&gt;And most important of all, this isn't a 16 bit machine where every byte on the stack needs to be accounted.&lt;BR /&gt;&lt;BR /&gt;Do you have a corefile of your thread stack overflow?  How much was your "larger" value?&lt;BR /&gt;&lt;BR /&gt;I have seen a problem with mallocNG and thread stacks where the recursion was over 5K frames.</description>
    <pubDate>Wed, 25 May 2011 02:06:46 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2011-05-25T02:06:46Z</dc:date>
    <item>
      <title>pthread stack size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789407#M641277</link>
      <description>I've perused a few man pages related to pthreads and have not been able to determine what the default stack size is on 11.31 on Itanium. pthread_attr_init does point that the default is 256k, but I am not sure if that is accurate. &lt;BR /&gt;&lt;BR /&gt;We have a server running informatica. It was working correctly until the latest pthread patch PHCO_41407. After that patch we now find it necessary to set PTHREAD_DEFAULT_STACK_SIZE to a larger value. I have other machine that is not patched yet. I was wondering how to display the default stack size.</description>
      <pubDate>Wed, 18 May 2011 13:35:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789407#M641277</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2011-05-18T13:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: pthread stack size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789408#M641278</link>
      <description>&lt;P&gt;Hi Court:&lt;BR /&gt;&lt;BR /&gt;See if this helps:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h30499.www3.hp.com/t5/System-Administration/Pid-lt-nnn-gt-killed-due-to-trashed-stack/m-p/5106420#M445205" target="_blank"&gt;http://h30499.www3.hp.com/t5/System-Administration/Pid-lt-nnn-gt-killed-due-to-trashed-stack/m-p/5106420#M445205&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2011 14:44:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789408#M641278</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-08-02T14:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: pthread stack size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789409#M641279</link>
      <description>JRF: I did see that thread. Following the trail for that thread just get me to the same default of 256k. But leaves me confused as to why the application worked fine until we applied the patch. It makes me think the default is less. I only say that because the pthread calls from informatica should presumably be the same before and after the patch.</description>
      <pubDate>Wed, 18 May 2011 14:42:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789409#M641279</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2011-05-18T14:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: pthread stack size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789410#M641280</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;If you had already seen the thread reference I cited, then I assume that you have googled for other threads in the ITRC on this topic.  There seem to be a fair number.&lt;BR /&gt;&lt;BR /&gt;Perhaps you should open a call to the Response Center.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 May 2011 14:54:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789410#M641280</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-05-18T14:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: pthread stack size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789411#M641281</link>
      <description>The default stacksize is 256.  1/2 of this is for the user stack and the other for the RSE stack.&lt;BR /&gt;(I'm on an internal patch after PHCO_41407.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I was wondering how to display the default stack size.&lt;BR /&gt;&lt;BR /&gt;You can use tusc to find the size of the mmap(2): 266240  == 128 Kb * 2 + 4 kb guard&lt;BR /&gt;&lt;BR /&gt;&amp;gt;because the pthread calls from informatica should presumably be the same before and after the patch.&lt;BR /&gt;&lt;BR /&gt;Yes but the functions in libc or libpthread may use slight more stack space and that may be just enough to get an overflow.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;JRF: See if this helps:&lt;BR /&gt;&lt;BR /&gt;threadId=1227330 is about PA.  Integrity is slightly different, due to RSE.</description>
      <pubDate>Thu, 19 May 2011 06:42:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789411#M641281</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-05-19T06:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: pthread stack size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789412#M641282</link>
      <description>Dennis:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Yes but the functions in libc or libpthread may use slight more stack space and that may be just enough to get an overflow.&lt;BR /&gt;&lt;BR /&gt;This is the part that bothers me. If the functions use more stack space, why not also increase the default stack size to accommodate the function changes? &lt;BR /&gt;&lt;BR /&gt;P.S. thanks for the info. I was actually waiting for your reply.</description>
      <pubDate>Tue, 24 May 2011 14:08:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789412#M641282</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2011-05-24T14:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: pthread stack size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789413#M641283</link>
      <description>&amp;gt;why not also increase the default stack size to accommodate the function changes? &lt;BR /&gt;&lt;BR /&gt;Because "slightly more" isn't enough to worry about?  ;-)&lt;BR /&gt;And increasing it may break other applications that may run out of swap.&lt;BR /&gt;And most important of all, this isn't a 16 bit machine where every byte on the stack needs to be accounted.&lt;BR /&gt;&lt;BR /&gt;Do you have a corefile of your thread stack overflow?  How much was your "larger" value?&lt;BR /&gt;&lt;BR /&gt;I have seen a problem with mallocNG and thread stacks where the recursion was over 5K frames.</description>
      <pubDate>Wed, 25 May 2011 02:06:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789413#M641283</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-05-25T02:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: pthread stack size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789414#M641284</link>
      <description>No core files that I am aware of. The informatica management piece could no start a service. The log files had no details. We only found "the fix" after putting in an SR with Oracle. They had another client running on HPUX where setting PTHREAD_DEFAULT_STACK_SIZE to a higher value resolved the issue. We now have it set to 524288.</description>
      <pubDate>Thu, 26 May 2011 15:08:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789414#M641284</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2011-05-26T15:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: pthread stack size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789415#M641285</link>
      <description>&amp;gt;No core files that I am aware of.&lt;BR /&gt;&lt;BR /&gt;Ok.  We can't get the exact stack trace to figure out the calls and stack usage.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;where setting PTHREAD_DEFAULT_STACK_SIZE to a higher value resolved the issue. We now have it set to 524288.&lt;BR /&gt;&lt;BR /&gt;Well that doubles it but doesn't tell you exactly how much bigger it needed.  If you have time to experiment you could use: 331776</description>
      <pubDate>Fri, 27 May 2011 00:27:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-stack-size/m-p/4789415#M641285</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-05-27T00:27:12Z</dc:date>
    </item>
  </channel>
</rss>

