<?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: Program or script to count current used kthreads in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/program-or-script-to-count-current-used-kthreads/m-p/5003569#M424987</link>
    <description>&lt;!--!*#--&gt;Compile and run the program pasted below:&lt;BR /&gt;&lt;BR /&gt;# cc nkthreads.c -o nkthreads&lt;BR /&gt;# ./nkthreads&lt;BR /&gt;&lt;BR /&gt;=======================nkthreads.c=======================&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;&lt;BR /&gt;main(void)&lt;BR /&gt;{&lt;BR /&gt;    struct pst_dynamic dyn, *pdyn = &amp;amp;dyn;&lt;BR /&gt;&lt;BR /&gt;    if (pstat_getdynamic(pdyn, sizeof(dyn), 1, 0)  == 1)&lt;BR /&gt;        printf("kthreads (in-use/max) = %ld%s%ld\n", pdyn-&amp;gt;&lt;BR /&gt;            psd_numkthreadsallocd, "/", pdyn-&amp;gt;psd_maxkthreads);&lt;BR /&gt;    else&lt;BR /&gt;        return 1;&lt;BR /&gt;    return 0;&lt;BR /&gt;}&lt;/SYS&gt;&lt;/SYS&gt;&lt;/STDIO.H&gt;</description>
    <pubDate>Fri, 15 Sep 2006 23:22:31 GMT</pubDate>
    <dc:creator>Sandman!</dc:creator>
    <dc:date>2006-09-15T23:22:31Z</dc:date>
    <item>
      <title>Program or script to count current used kthreads</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/program-or-script-to-count-current-used-kthreads/m-p/5003566#M424984</link>
      <description>Does anyone have a way to count the number of current ktheads being used, compare it to the maximum allowed and return both values?  I want to use this on HP-UX 11.11, 11.23 (PA-RISC and Itanium).</description>
      <pubDate>Fri, 15 Sep 2006 09:37:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/program-or-script-to-count-current-used-kthreads/m-p/5003566#M424984</guid>
      <dc:creator>John M. Robinson_1</dc:creator>
      <dc:date>2006-09-15T09:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Program or script to count current used kthreads</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/program-or-script-to-count-current-used-kthreads/m-p/5003567#M424985</link>
      <description>I have one here, you will need to have glance:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.mayoxide.com/toolbox/count_threads.sh" target="_blank"&gt;http://www.mayoxide.com/toolbox/count_threads.sh&lt;/A&gt;</description>
      <pubDate>Fri, 15 Sep 2006 09:42:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/program-or-script-to-count-current-used-kthreads/m-p/5003567#M424985</guid>
      <dc:creator>Olivier Masse</dc:creator>
      <dc:date>2006-09-15T09:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Program or script to count current used kthreads</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/program-or-script-to-count-current-used-kthreads/m-p/5003568#M424986</link>
      <description>You'll probably want to replace kmtune with kctune for 11.23, though.</description>
      <pubDate>Fri, 15 Sep 2006 09:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/program-or-script-to-count-current-used-kthreads/m-p/5003568#M424986</guid>
      <dc:creator>Olivier Masse</dc:creator>
      <dc:date>2006-09-15T09:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Program or script to count current used kthreads</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/program-or-script-to-count-current-used-kthreads/m-p/5003569#M424987</link>
      <description>&lt;!--!*#--&gt;Compile and run the program pasted below:&lt;BR /&gt;&lt;BR /&gt;# cc nkthreads.c -o nkthreads&lt;BR /&gt;# ./nkthreads&lt;BR /&gt;&lt;BR /&gt;=======================nkthreads.c=======================&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;&lt;BR /&gt;main(void)&lt;BR /&gt;{&lt;BR /&gt;    struct pst_dynamic dyn, *pdyn = &amp;amp;dyn;&lt;BR /&gt;&lt;BR /&gt;    if (pstat_getdynamic(pdyn, sizeof(dyn), 1, 0)  == 1)&lt;BR /&gt;        printf("kthreads (in-use/max) = %ld%s%ld\n", pdyn-&amp;gt;&lt;BR /&gt;            psd_numkthreadsallocd, "/", pdyn-&amp;gt;psd_maxkthreads);&lt;BR /&gt;    else&lt;BR /&gt;        return 1;&lt;BR /&gt;    return 0;&lt;BR /&gt;}&lt;/SYS&gt;&lt;/SYS&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Fri, 15 Sep 2006 23:22:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/program-or-script-to-count-current-used-kthreads/m-p/5003569#M424987</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-09-15T23:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Program or script to count current used kthreads</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/program-or-script-to-count-current-used-kthreads/m-p/5003570#M424988</link>
      <description>Used Olivier Masse's solution.</description>
      <pubDate>Mon, 18 Sep 2006 08:21:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/program-or-script-to-count-current-used-kthreads/m-p/5003570#M424988</guid>
      <dc:creator>John M. Robinson_1</dc:creator>
      <dc:date>2006-09-18T08:21:37Z</dc:date>
    </item>
  </channel>
</rss>

