<?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 hp-ux tuning in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-tuning/m-p/3744975#M256732</link>
    <description>i am doing a hp-ux tuning project.can someone tell me a way to find out the number of application threads spwaned out by a application.</description>
    <pubDate>Mon, 06 Mar 2006 04:13:44 GMT</pubDate>
    <dc:creator>debraj bhattacharya</dc:creator>
    <dc:date>2006-03-06T04:13:44Z</dc:date>
    <item>
      <title>hp-ux tuning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-tuning/m-p/3744975#M256732</link>
      <description>i am doing a hp-ux tuning project.can someone tell me a way to find out the number of application threads spwaned out by a application.</description>
      <pubDate>Mon, 06 Mar 2006 04:13:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-tuning/m-p/3744975#M256732</guid>
      <dc:creator>debraj bhattacharya</dc:creator>
      <dc:date>2006-03-06T04:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux tuning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-tuning/m-p/3744976#M256733</link>
      <description>hi...&lt;BR /&gt;&lt;BR /&gt;I think for doing this you need some process monitoring softwares like Glanceplus&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Abhijit&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Mar 2006 04:18:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-tuning/m-p/3744976#M256733</guid>
      <dc:creator>Abhijit P.</dc:creator>
      <dc:date>2006-03-06T04:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux tuning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-tuning/m-p/3744977#M256734</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;A C program for this, &lt;BR /&gt;&lt;BR /&gt;#include "sys/param.h"&lt;BR /&gt;#include "sys/pstat.h"&lt;BR /&gt; &lt;BR /&gt;int main ( void )&lt;BR /&gt;{&lt;BR /&gt; &lt;BR /&gt;  struct pst_status * psa = NULL;   &lt;BR /&gt;  struct pst_status * prc = NULL;    &lt;BR /&gt;  struct pst_dynamic  psd;&lt;BR /&gt;  long                nproc = 0;      &lt;BR /&gt;  long                thsum = 0;       &lt;BR /&gt;  long                i;                &lt;BR /&gt; &lt;BR /&gt;  if ( pstat_getdynamic(&amp;amp;psd, sizeof(psd), 1, 0) == -1 )&lt;BR /&gt;    (void)perror("pstat_getdynamic failed");&lt;BR /&gt; &lt;BR /&gt;  // Get the number of active processes from pst_dynamic &lt;BR /&gt;  nproc  = psd.psd_activeprocs;  &lt;BR /&gt;  psa    = (struct pst_status *)malloc(nproc * sizeof(struct pst_status));&lt;BR /&gt; &lt;BR /&gt;  // Read the info about the active processes into the array 'psa' &lt;BR /&gt;  if ( pstat_getproc(psa, sizeof(struct pst_status), nproc, 0) == -1 )&lt;BR /&gt;    (void)perror("pstat_getproc failed");&lt;BR /&gt; &lt;BR /&gt;  (void)printf("\n\n------------------------------------------------------------------------------");&lt;BR /&gt;  (void)printf("\n %5s | %5s |%7s| %5s | %s", "PID", "UID", "Threads", "RSS", "Command");&lt;BR /&gt;  (void)printf("\n------------------------------------------------------------------------------");&lt;BR /&gt; &lt;BR /&gt;  // Report the process info as required&lt;BR /&gt;  prc = (struct pst_status *)psa;       &lt;BR /&gt;  for (i=0; i &amp;lt; nproc; i++) &lt;BR /&gt;  {&lt;BR /&gt;    (void)printf("\n %5ld | ", prc-&amp;gt;pst_pid);&lt;BR /&gt;    (void)printf("%5ld | ", prc-&amp;gt;pst_uid);&lt;BR /&gt;    (void)printf("%5ld | ", prc-&amp;gt;pst_nlwps);&lt;BR /&gt;    (void)printf("%5ld | ", prc-&amp;gt;pst_rssize);&lt;BR /&gt;    (void)printf("%s ", prc-&amp;gt;pst_cmd);&lt;BR /&gt;    thsum += prc-&amp;gt;pst_nlwps;&lt;BR /&gt;    ++prc;         &lt;BR /&gt;  } &lt;BR /&gt; &lt;BR /&gt;  (void)printf("\n\n*** %ld processes, %ld threads running\n\n", nproc, thsum);&lt;BR /&gt;  (void)free(psa);       &lt;BR /&gt;  (void)exit(0);&lt;BR /&gt;} &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,5944,00.html" target="_blank"&gt;http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,5944,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Mon, 06 Mar 2006 04:28:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-tuning/m-p/3744977#M256734</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-03-06T04:28:49Z</dc:date>
    </item>
  </channel>
</rss>

