<?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: Finding Sleeping Process PID's in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-sleeping-process-pid-s/m-p/2416512#M765022</link>
    <description>Neal&lt;BR /&gt;You can find them with the ps -el command.&lt;BR /&gt;as you can see it's the second column.  I'd love to know how it determines this &lt;BR /&gt;because I have a royal headache with a K series machine that is being used for &lt;BR /&gt;development.  c/c++ pgms.  I'm getting anywhere from 300 to 500 sleepers.  As &lt;BR /&gt;far as I can see this is too much.  No, correct me if I'm wrong.  Neil, I tried &lt;BR /&gt;to write to you but the Lotus Notes returns a no existance note.  Write me at &lt;BR /&gt;rmalafa@csc.com&lt;BR /&gt;Rich&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-l Show columns flags, state, uid, pid, ppid, cpu,&lt;BR /&gt;   intpri, nice, addr, sz, wchan, tty, time, and&lt;BR /&gt;   comm, in that order.&lt;BR /&gt;  &lt;BR /&gt;state          The state of the process:&lt;BR /&gt;&lt;BR /&gt;                0    Nonexistent&lt;BR /&gt;                S    Sleeping&lt;BR /&gt;                W    Waiting&lt;BR /&gt;                R    Running&lt;BR /&gt;                I    Intermediate&lt;BR /&gt;                Z    Terminated&lt;BR /&gt;                T    Stopped&lt;BR /&gt;                X    Growing&lt;BR /&gt;</description>
    <pubDate>Mon, 06 Dec 1999 12:56:27 GMT</pubDate>
    <dc:creator>Richard Malafa_1</dc:creator>
    <dc:date>1999-12-06T12:56:27Z</dc:date>
    <item>
      <title>Finding Sleeping Process PID's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-sleeping-process-pid-s/m-p/2416510#M765020</link>
      <description>We used 'TOP' and other programs from time to time to find out what is &lt;BR /&gt;happening.  My concern is about the classification "Sleeping".  How does 'TOP' &lt;BR /&gt;or any other pgm determine whether a process is "sleeping".  What does it &lt;BR /&gt;check?? I'm interested in find the PID of the program that is sleeping.&lt;BR /&gt;&lt;BR /&gt;Thank You&lt;BR /&gt;Richard Malafa</description>
      <pubDate>Mon, 06 Dec 1999 09:49:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-sleeping-process-pid-s/m-p/2416510#M765020</guid>
      <dc:creator>Richard Malafa_1</dc:creator>
      <dc:date>1999-12-06T09:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Sleeping Process PID's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-sleeping-process-pid-s/m-p/2416511#M765021</link>
      <description>The states of all process is kept on the kernel's process table. Tools like &lt;BR /&gt;top(1) query the kernel for that information.&lt;BR /&gt;I'm not sure why you're concerned about processes that are in a sleep state -- &lt;BR /&gt;it merely means that the process is waiting for some event or resource.&lt;BR /&gt;The top(1) command shows the PID of the process in column 2. I'm not aware of &lt;BR /&gt;any other command that will show both the PID and the process state.&lt;BR /&gt;&lt;BR /&gt;MrNeil</description>
      <pubDate>Mon, 06 Dec 1999 11:20:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-sleeping-process-pid-s/m-p/2416511#M765021</guid>
      <dc:creator>Neil Gast_1</dc:creator>
      <dc:date>1999-12-06T11:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Sleeping Process PID's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-sleeping-process-pid-s/m-p/2416512#M765022</link>
      <description>Neal&lt;BR /&gt;You can find them with the ps -el command.&lt;BR /&gt;as you can see it's the second column.  I'd love to know how it determines this &lt;BR /&gt;because I have a royal headache with a K series machine that is being used for &lt;BR /&gt;development.  c/c++ pgms.  I'm getting anywhere from 300 to 500 sleepers.  As &lt;BR /&gt;far as I can see this is too much.  No, correct me if I'm wrong.  Neil, I tried &lt;BR /&gt;to write to you but the Lotus Notes returns a no existance note.  Write me at &lt;BR /&gt;rmalafa@csc.com&lt;BR /&gt;Rich&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-l Show columns flags, state, uid, pid, ppid, cpu,&lt;BR /&gt;   intpri, nice, addr, sz, wchan, tty, time, and&lt;BR /&gt;   comm, in that order.&lt;BR /&gt;  &lt;BR /&gt;state          The state of the process:&lt;BR /&gt;&lt;BR /&gt;                0    Nonexistent&lt;BR /&gt;                S    Sleeping&lt;BR /&gt;                W    Waiting&lt;BR /&gt;                R    Running&lt;BR /&gt;                I    Intermediate&lt;BR /&gt;                Z    Terminated&lt;BR /&gt;                T    Stopped&lt;BR /&gt;                X    Growing&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Dec 1999 12:56:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-sleeping-process-pid-s/m-p/2416512#M765022</guid>
      <dc:creator>Richard Malafa_1</dc:creator>
      <dc:date>1999-12-06T12:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Sleeping Process PID's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-sleeping-process-pid-s/m-p/2416513#M765023</link>
      <description>Richard,&lt;BR /&gt;  At any given time, only one process per CPU can be in a running state.  The &lt;BR /&gt;majority of the others, given normal operation, will be in sleep state.  This &lt;BR /&gt;just means they are not actively consuming CPU and have not been terminated, &lt;BR /&gt;blocked on I/O, etc.  It is not abnormal to have several hundred "sleeping" &lt;BR /&gt;processes on a K box.</description>
      <pubDate>Mon, 06 Dec 1999 13:13:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-sleeping-process-pid-s/m-p/2416513#M765023</guid>
      <dc:creator>Alan Riggs_1</dc:creator>
      <dc:date>1999-12-06T13:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Sleeping Process PID's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-sleeping-process-pid-s/m-p/2416514#M765024</link>
      <description>Alan &amp;amp; Neil,&lt;BR /&gt;Yes that is true on the one process at a time (per processor??).  Of course I'm &lt;BR /&gt;referring to Process Sleep and Wakeup on a Shared Memory Multiprocessor.  Some &lt;BR /&gt;of these babies will never wake up. But the 'top' and 'ps' lists them as &lt;BR /&gt;sleeping.  I've had to literally reboot the machine to disengage them. (and &lt;BR /&gt;that's the only way I know they're junk).&lt;BR /&gt;&lt;BR /&gt;I think some of these problems are inhertited from the early implementations. &lt;BR /&gt;i.e. UNIX adapting from the standard uniprocessor scheme to our Multiprocessor &lt;BR /&gt;needs.&lt;BR /&gt;&lt;BR /&gt;Anyhow, have either of you seen code that tells me how HP (or Anyone else) &lt;BR /&gt;determines that a process is sleeping??  Is it a Lock?? The lock attribute?? &lt;BR /&gt;Something else?? Did I miss an example somewhere in the MeasureWare software??  &lt;BR /&gt;btw I've had good results with ps -el | grep S  That's a capital S   I &lt;BR /&gt;basically need another test to tell me if it is truly dead. &lt;BR /&gt;&lt;BR /&gt;Thanks Guys.&lt;BR /&gt;Rich&lt;BR /&gt;P.S. Also: all these "vx_inactive_th" entries with ps.. What's your opinion..??&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Dec 1999 15:41:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-sleeping-process-pid-s/m-p/2416514#M765024</guid>
      <dc:creator>Richard Malafa_1</dc:creator>
      <dc:date>1999-12-06T15:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Sleeping Process PID's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-sleeping-process-pid-s/m-p/2416515#M765025</link>
      <description>I am not certain that I am understanding exactly what you need.  If your &lt;BR /&gt;concern is with shared memory processes not cleaning up properly, then ipcs -ma &lt;BR /&gt;will show you the shared memory segments (ipcs -a will also show semaphores and &lt;BR /&gt;queues).  I would think the columns you would be most interested are:&lt;BR /&gt;   MODE    First entry may show S,R,D -- indicating segment is waiting on a &lt;BR /&gt;send or receive, or that it has been deleted but is waiting for a process to &lt;BR /&gt;detach from it.&lt;BR /&gt;   CPID    PID of creating process&lt;BR /&gt;   LPID    PID or last process to access segment&lt;BR /&gt;   ATIME   last time segment was attached to&lt;BR /&gt;   DTIME   last time process was detached from&lt;BR /&gt;&lt;BR /&gt;ipcrm -m will allow you to clean up shared memory segments which are no longer &lt;BR /&gt;valid.&lt;BR /&gt;&lt;BR /&gt;If you are finding zombie processes, then you are correct that they can only be &lt;BR /&gt;removed with a reboot.  They are also symptomatic of other processes not &lt;BR /&gt;cleaning up after themselves on shutdown, and that is where you need to focus &lt;BR /&gt;to eliminate them.&lt;BR /&gt;&lt;BR /&gt;The vx_inactive_thread processes are used by JFS and are required if you are &lt;BR /&gt;using vxfs file systems.  If you are not using JFS, then you can eliminate the &lt;BR /&gt;vx_* processes by removing the vxbase driver from your kernel.</description>
      <pubDate>Tue, 07 Dec 1999 07:12:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-sleeping-process-pid-s/m-p/2416515#M765025</guid>
      <dc:creator>Alan Riggs_1</dc:creator>
      <dc:date>1999-12-07T07:12:58Z</dc:date>
    </item>
  </channel>
</rss>

