<?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: Process behaviour in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763924#M73084</link>
    <description>you can several freely available utilities in this regard. Also you can q4 to trace the process in the kernel.&lt;BR /&gt;&lt;BR /&gt;If required I can post the detailed procedure for this.-q4&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
    <pubDate>Mon, 15 Jul 2002 18:39:19 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2002-07-15T18:39:19Z</dc:date>
    <item>
      <title>Process behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763922#M73082</link>
      <description>Hi List,&lt;BR /&gt;Is there any other commands available on UNIX other than TRUSS to find out the problem with a particular process or command?.&lt;BR /&gt;Thnaks in advance</description>
      <pubDate>Mon, 15 Jul 2002 14:06:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763922#M73082</guid>
      <dc:creator>Robert_73</dc:creator>
      <dc:date>2002-07-15T14:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Process behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763923#M73083</link>
      <description>Shell scripts, of course, can have the 'set -x' placed in them.</description>
      <pubDate>Mon, 15 Jul 2002 15:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763923#M73083</guid>
      <dc:creator>Robert True</dc:creator>
      <dc:date>2002-07-15T15:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Process behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763924#M73084</link>
      <description>you can several freely available utilities in this regard. Also you can q4 to trace the process in the kernel.&lt;BR /&gt;&lt;BR /&gt;If required I can post the detailed procedure for this.-q4&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Mon, 15 Jul 2002 18:39:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763924#M73084</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2002-07-15T18:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Process behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763925#M73085</link>
      <description>Anil,&lt;BR /&gt;I have no clue about the q4, could you please post the procedure? any utilities?.&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 15 Jul 2002 18:41:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763925#M73085</guid>
      <dc:creator>Robert_73</dc:creator>
      <dc:date>2002-07-15T18:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Process behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763926#M73086</link>
      <description>See this thread for info on q4:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0xc6abd5fab40ed6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0xc6abd5fab40ed6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 15 Jul 2002 19:00:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763926#M73086</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-07-15T19:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Process behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763927#M73087</link>
      <description>Check the thread. &lt;BR /&gt;Check the following.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Use q4 to get a stack trace using the process ID number.&lt;BR /&gt;&lt;BR /&gt;Note: q4 is available at HP-UX Version 10.10 and above. An example (using process id 21699):&lt;BR /&gt;&lt;BR /&gt;# q4 /dev/mem /stand/vmunix&lt;BR /&gt;&lt;BR /&gt;q4&amp;gt; load struct proc from proc max nproc; keep p_stat&lt;BR /&gt;&lt;BR /&gt;loaded 1284 struct proc's as an array (stopped by max count)&lt;BR /&gt;&lt;BR /&gt;kept 571 of 1284 struct proc's, discarded 713&lt;BR /&gt;&lt;BR /&gt;q4&amp;gt; keep p_pid == 21699;trace pile&lt;BR /&gt;&lt;BR /&gt;kept 1 of 571 struct proc's, discarded 570&lt;BR /&gt;&lt;BR /&gt;stack trace for process at 0x843edc0 (pid 21699), thread at &lt;BR /&gt;&lt;BR /&gt;0x8500300 (tid 28011)&lt;BR /&gt;&lt;BR /&gt;process was not running on any processor&lt;BR /&gt;&lt;BR /&gt;save+0x0&lt;BR /&gt;&lt;BR /&gt;_swtch+0x138&lt;BR /&gt;&lt;BR /&gt;real_sleep+0x330&lt;BR /&gt;&lt;BR /&gt;_sleep_one+0x14&lt;BR /&gt;&lt;BR /&gt;semop+0x71c&lt;BR /&gt;&lt;BR /&gt;syscall+0x1a4&lt;BR /&gt;&lt;BR /&gt;q4&amp;gt; quit&lt;BR /&gt;The above indicates that the process is sleeping after doing a semop call. The next step might be to see how this process is using semaphores or, if this is a system process, whether there are any known issues with this process sleeping on semop.&lt;BR /&gt;&lt;BR /&gt;Steps to set up q4 on your system are as follows:&lt;BR /&gt;&lt;BR /&gt;cd /usr/contrib/lib&lt;BR /&gt;&lt;BR /&gt;uncompress Q4Lib.tar.Z:&lt;BR /&gt;&lt;BR /&gt;tar -xvf Q4Lib.tar&lt;BR /&gt;&lt;BR /&gt;cp /usr/contrib/lib/q4lib/sample.q4rc.pl ~/q4rc.pl&lt;BR /&gt;Change the following line in ~/q4rc.pl:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# push (INC, "/usr/local/lib/q4lib");&lt;BR /&gt;to&lt;BR /&gt;&lt;BR /&gt;push (INC, "/usr/local/lib/q4lib");&lt;BR /&gt;Set up your PATH:&lt;BR /&gt;&lt;BR /&gt;export PATH=$PATH:/usr/contrib/bin&lt;BR /&gt;Prep your kernel:&lt;BR /&gt;&lt;BR /&gt;q4pxdb /stand/vmunix&lt;BR /&gt;Note: dde (requires DCE product) and analyze (10.01 and below) can also be used to look at a process's stack trace.&lt;BR /&gt;&lt;BR /&gt;8. Public domain software such as trace can be used to trace a process's system calls. trace is available for download from the public domain software page located off of the &lt;A href="http://www.software.hp.com" target="_blank"&gt;www.software.hp.com&lt;/A&gt; Web site. &lt;BR /&gt;&lt;BR /&gt;This software is particularly useful because it enables you to see what calls a process is making, if any, and whether the process is looping.&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jul 2002 20:45:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763927#M73087</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2002-07-15T20:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Process behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763928#M73088</link>
      <description>hi Robert, &lt;BR /&gt;&lt;BR /&gt;You can also try tusc. You can find &lt;BR /&gt;it here : &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cict.fr/hppd/hpux/Sysadmin/tusc-7.0/" target="_blank"&gt;http://hpux.cict.fr/hppd/hpux/Sysadmin/tusc-7.0/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards, &lt;BR /&gt;&lt;BR /&gt;Steven</description>
      <pubDate>Mon, 15 Jul 2002 21:01:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763928#M73088</guid>
      <dc:creator>Steven Mertens</dc:creator>
      <dc:date>2002-07-15T21:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Process behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763929#M73089</link>
      <description>&lt;BR /&gt;... or there's also the trace command : &lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/trace-1.6/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/trace-1.6/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Steven</description>
      <pubDate>Mon, 15 Jul 2002 21:05:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763929#M73089</guid>
      <dc:creator>Steven Mertens</dc:creator>
      <dc:date>2002-07-15T21:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Process behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763930#M73090</link>
      <description>For commands, the first thing you want to do is capture the error code returned in $? and then check the man page for that command to interpret the code.&lt;BR /&gt;&lt;BR /&gt;For binaries you can try trace or adb, the absolute debugger.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark</description>
      <pubDate>Tue, 16 Jul 2002 12:53:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-behaviour/m-p/2763930#M73090</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2002-07-16T12:53:23Z</dc:date>
    </item>
  </channel>
</rss>

