<?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: Increase stack size in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-stack-size/m-p/5055554#M747121</link>
    <description>Thanks that worked</description>
    <pubDate>Thu, 28 Jun 2007 14:20:50 GMT</pubDate>
    <dc:creator>Janet Sanberg</dc:creator>
    <dc:date>2007-06-28T14:20:50Z</dc:date>
    <item>
      <title>Increase stack size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-stack-size/m-p/5055552#M747119</link>
      <description>I just attemptesd to increase the stack size to 245760 on an 11.23 host by setting the maxssize kernel parameter to 251658240 but when I do a ulimit -a the stack size has not changed - is this not how do change stack size?</description>
      <pubDate>Thu, 28 Jun 2007 13:21:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-stack-size/m-p/5055552#M747119</guid>
      <dc:creator>Janet Sanberg</dc:creator>
      <dc:date>2007-06-28T13:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Increase stack size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-stack-size/m-p/5055553#M747120</link>
      <description>&lt;!--!*#--&gt;Yes, this is how you change stack size -- but as the man page states: "Changes to this tunable take effect only for processes started after the modification". Existing processes are unaffected -- so if you ran kctune within a shell (which is just a process), then ran the shell internal command [not a process] ulimit, you'd see the same limit for the shell as before... since it was a pre-existing process.&lt;BR /&gt;&lt;BR /&gt;Any processes which are started by the shell *after* the maxssiz change, however, would see the new limit. [So you could start a new shell, then do ulimit -- or simply run a program which reports the limit such as:&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;&lt;BR /&gt;int&lt;BR /&gt;main(int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt;        struct rlimit save;&lt;BR /&gt;&lt;BR /&gt;        if ( getrlimit(RLIMIT_STACK, &amp;amp;save) ) {&lt;BR /&gt;                perror("getrlimit");&lt;BR /&gt;                exit(EXIT_FAILURE);&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;        printf("Max: 0x%lx, Cur: 0x%lx.\n", save.rlim_max, save.rlim_cur);&lt;BR /&gt;&lt;BR /&gt;        exit(EXIT_SUCCESS);&lt;BR /&gt;}&lt;BR /&gt;&lt;/SYS&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Thu, 28 Jun 2007 13:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-stack-size/m-p/5055553#M747120</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2007-06-28T13:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Increase stack size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-stack-size/m-p/5055554#M747121</link>
      <description>Thanks that worked</description>
      <pubDate>Thu, 28 Jun 2007 14:20:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-stack-size/m-p/5055554#M747121</guid>
      <dc:creator>Janet Sanberg</dc:creator>
      <dc:date>2007-06-28T14:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Increase stack size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-stack-size/m-p/5055555#M747122</link>
      <description>closing thread</description>
      <pubDate>Thu, 28 Jun 2007 14:22:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-stack-size/m-p/5055555#M747122</guid>
      <dc:creator>Janet Sanberg</dc:creator>
      <dc:date>2007-06-28T14:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Increase stack size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/increase-stack-size/m-p/5055556#M747123</link>
      <description>By setting maxssiz to 251 Mb, you have just reduced the maxdsiz by that about, if you already have it at 1 Gb.&lt;BR /&gt;The stack is preallocated and in the same quadrant as the heap.</description>
      <pubDate>Thu, 28 Jun 2007 17:55:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/increase-stack-size/m-p/5055556#M747123</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-06-28T17:55:18Z</dc:date>
    </item>
  </channel>
</rss>

