<?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 Kernel parameter nproc in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467425#M211112</link>
    <description>Hi everybody.&lt;BR /&gt;&lt;BR /&gt;I'm comparing kernel parameters on two systems to try to make them consistent. I'm checking the parameters that are different on HP's website so I have an idea which is the correct value. The following contradictory statements come from &lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B3921-90010/nproc.5.html" target="_blank"&gt;http://docs.hp.com/en/B3921-90010/nproc.5.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;"nproc must be greater than nkthread + 100"&lt;BR /&gt;&lt;BR /&gt;"nkthread must be strictly greater than nproc"&lt;BR /&gt;&lt;BR /&gt;Which is correct?&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
    <pubDate>Thu, 20 Jan 2005 06:38:02 GMT</pubDate>
    <dc:creator>MarkSyder</dc:creator>
    <dc:date>2005-01-20T06:38:02Z</dc:date>
    <item>
      <title>Kernel parameter nproc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467425#M211112</link>
      <description>Hi everybody.&lt;BR /&gt;&lt;BR /&gt;I'm comparing kernel parameters on two systems to try to make them consistent. I'm checking the parameters that are different on HP's website so I have an idea which is the correct value. The following contradictory statements come from &lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B3921-90010/nproc.5.html" target="_blank"&gt;http://docs.hp.com/en/B3921-90010/nproc.5.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;"nproc must be greater than nkthread + 100"&lt;BR /&gt;&lt;BR /&gt;"nkthread must be strictly greater than nproc"&lt;BR /&gt;&lt;BR /&gt;Which is correct?&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Thu, 20 Jan 2005 06:38:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467425#M211112</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-01-20T06:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter nproc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467426#M211113</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;nproc must be greater than nkthread + 100</description>
      <pubDate>Thu, 20 Jan 2005 06:47:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467426#M211113</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2005-01-20T06:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter nproc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467427#M211114</link>
      <description>Thanks Ravi.&lt;BR /&gt;&lt;BR /&gt;To keep Pete Randall happy, I won't close the thread! But I don't propose to give any more points unless someone has something useful to add.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Thu, 20 Jan 2005 06:49:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467427#M211114</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-01-20T06:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter nproc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467428#M211115</link>
      <description>&lt;BR /&gt;Looks like some bad documentation.&lt;BR /&gt;&lt;BR /&gt;nkthread must be &amp;gt; nproc &lt;BR /&gt;&lt;BR /&gt;This is the formula I have (default for 11.11):&lt;BR /&gt;&lt;BR /&gt;nkthread = (((NPROC*7)/4)+16)&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Thu, 20 Jan 2005 06:50:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467428#M211115</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-01-20T06:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter nproc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467429#M211116</link>
      <description>Hi Mark,&lt;BR /&gt;&lt;BR /&gt;I have the following formula for nkthread: (((NPROC*7)/4)+16)&lt;BR /&gt;&lt;BR /&gt;Kindest Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
      <pubDate>Thu, 20 Jan 2005 06:51:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467429#M211116</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-01-20T06:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter nproc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467430#M211117</link>
      <description>I'm glad I kept the thread open!&lt;BR /&gt;&lt;BR /&gt;Before I award any more points, can someone from HP please give a definitive answer?&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Thu, 20 Jan 2005 06:56:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467430#M211117</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-01-20T06:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter nproc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467431#M211118</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;sorry mark!!!&lt;BR /&gt;I have 75 HP servers, i checked in about 8 servers.&lt;BR /&gt;In all servers nkthread value is more than nproc.&lt;BR /&gt;&lt;BR /&gt;nkthread value should be more to handle number of process(nproc) specified</description>
      <pubDate>Thu, 20 Jan 2005 07:04:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467431#M211118</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2005-01-20T07:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter nproc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467432#M211119</link>
      <description>sam &amp;gt; kernel configuration &amp;gt; configurable parameters &amp;gt; help:&lt;BR /&gt;&lt;BR /&gt;nkthread&lt;BR /&gt; Specify the maximum number of threads that all processes combined can run, system-wide, at any given time. &lt;BR /&gt; Acceptable Values:&lt;BR /&gt;&lt;BR /&gt; Minimum:                      50&lt;BR /&gt; Maximum:                    4194304&lt;BR /&gt; Default:                       (nproc*2)+16&lt;BR /&gt;&lt;BR /&gt; Specify integer or formula value. For more information, see Specifying Parameter Values. &lt;BR /&gt; Description&lt;BR /&gt; Processes that use threads for improved performance create multiple copies of certain portions of their process space, which requires memory space for thread storage as&lt;BR /&gt; well as processor and system overhead related to managing the threads. On systems running large threaded applications, a large number of threads may be required. The&lt;BR /&gt; kernel parameter max_thread_proc limits the number of threads that a single process can create, but there may be other threaded applications on the system that also use&lt;BR /&gt; a large number of threads or they may have more modest requirements. &lt;BR /&gt;&lt;BR /&gt; nkthread limits the combined total number of threads that can be running on the system at any given time from all processes on the system. This value protects the system&lt;BR /&gt; against being overwhelmed by a large number of threads that exceeds normal, reasonable operation. It protects the system against overload if multiple large applications are&lt;BR /&gt; running, and also protects the system from users who might maliciously attempt to sabotage system operation by launching a large number of threaded programs, causing&lt;BR /&gt; resources to become unavailable for normal system needs. &lt;BR /&gt;&lt;BR /&gt; The default value allows an average of two threads per process plus an additional system allowance. If you need to use a larger value: &lt;BR /&gt;&lt;BR /&gt;   * Determine the total number of threads required by each threaded application on the system; especially any large applications. &lt;BR /&gt;&lt;BR /&gt;   * Determine how many and which of these will be running simultaneously at any given time. &lt;BR /&gt;&lt;BR /&gt;   * Add these together and combine with a reasonable allowance for other users or processes that might run occasionally using threads (nproc*2 might be a useful&lt;BR /&gt;     number). &lt;BR /&gt;&lt;BR /&gt;   * Select a value for nkthread that is large enough to accommodate the total, but not so large that it compromises system integrity. &lt;BR /&gt;&lt;BR /&gt; On large systems with many threaded applications running simultaneously, some experimentation may be required while using system process-monitoring tools and&lt;BR /&gt; programs. &lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Thu, 20 Jan 2005 07:11:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467432#M211119</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-01-20T07:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter nproc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467433#M211120</link>
      <description>Indeed SAM lets you set nkthread (I didn't try to process the kernel with this situation...) with a lower value than nproc but I think it is not a good procedure to do that since a process can have more than one thread...&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
      <pubDate>Thu, 20 Jan 2005 07:23:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467433#M211120</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-01-20T07:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter nproc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467434#M211121</link>
      <description>I'm not part of Process Management -- but I do know this... every process on the system *requires* at least one kernel thread. Kernel threads are also consumed for other purposes. Logic clearly dictates that nproc must be less than or equal to (preferably less than) nkthread, or your setting of nproc becomes meaningless (since nproc &amp;gt; nkthread is still realistically limited by nkthread... you won't be able to start a new process without a kernel thread).</description>
      <pubDate>Thu, 20 Jan 2005 09:45:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467434#M211121</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2005-01-20T09:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter nproc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467435#M211122</link>
      <description>Hi everybody.&lt;BR /&gt;&lt;BR /&gt;Thanks for the answers. I can't find the SAM help page that Harry referred to, but I did find the same information in Marty Poniatowski's book. Ravi - please excuse the 0 points - that's to compensate for having given you 10 points for what turned out to be an incorrect answer!&lt;BR /&gt;&lt;BR /&gt;I've learnt a lot from this thread - I think the most important thing I've learnt is not to close threads! I've closed a thread for the last time.&lt;BR /&gt;&lt;BR /&gt;No more points on this thread unless someone adds something new and relevant.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Thu, 20 Jan 2005 10:24:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467435#M211122</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-01-20T10:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter nproc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467436#M211123</link>
      <description>To find the help for nkthreads in the character-base SAM, you can select/highlight nkthreads in the Kernel Configuration screen. Then do "Help on Context" (F1).&lt;BR /&gt;&lt;BR /&gt;Marlou</description>
      <pubDate>Thu, 20 Jan 2005 15:48:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467436#M211123</guid>
      <dc:creator>Marlou Everson</dc:creator>
      <dc:date>2005-01-20T15:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel parameter nproc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467437#M211124</link>
      <description>Hi Marlou.&lt;BR /&gt;&lt;BR /&gt;That answer was worth an extra 10 points!&lt;BR /&gt;&lt;BR /&gt;I've had an email from HP confirming that the document is incorrect and will be corrected on its next release. Admirably prompt service.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Fri, 21 Jan 2005 03:12:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-parameter-nproc/m-p/3467437#M211124</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-01-21T03:12:30Z</dc:date>
    </item>
  </channel>
</rss>

