<?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: STATE in 'top' command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/state-in-top-command/m-p/2719861#M947892</link>
    <description>From /usr/share/doc/proc_mgt.txt :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Process  States and transitions&lt;BR /&gt;===============================&lt;BR /&gt;&lt;BR /&gt;Through the course of its lifetime, a process transits through several&lt;BR /&gt;states.  Queues in main memory keep track of the process by its process&lt;BR /&gt;ID.  A process resides on a queue according to its state; process states are&lt;BR /&gt;defined in the proc.h header file.  Events such as receipt of a signal cause&lt;BR /&gt;the process to transit from one state to another.&lt;BR /&gt;&lt;BR /&gt;Table 1-3       Process states&lt;BR /&gt;State, followed by What Takes Place&lt;BR /&gt;&lt;BR /&gt;idle (SIDL):&lt;BR /&gt;Process is created by a call to fork, vfork, or exec; can be scheduled&lt;BR /&gt;to run.&lt;BR /&gt;&lt;BR /&gt;run (SRUN):&lt;BR /&gt;Process is on a run queue, available to execute in either kernel&lt;BR /&gt;or user mode.&lt;BR /&gt;&lt;BR /&gt;stopped (SSTOP):&lt;BR /&gt;Executing process is stopped by a signal or parent process:&lt;BR /&gt;&lt;BR /&gt;sleep (SSLEEP):&lt;BR /&gt;Process is not executing; may be waiting for resources:&lt;BR /&gt;&lt;BR /&gt;zombie (SZOMB):&lt;BR /&gt;Having exited, the process no longer exists, but leaves behind for&lt;BR /&gt;the parent process some record of its execution.&lt;BR /&gt;&lt;BR /&gt;When a program starts up a process, the kernel allocates a structure for&lt;BR /&gt;it from the process table. The process is now in idle state, waiting for&lt;BR /&gt;system resources.  Once it acquires the resource, the process is linked&lt;BR /&gt;onto a run queue and made runnable.  When the process acquires a&lt;BR /&gt;time-slice, it runs, switching as necessary between kernel mode and user&lt;BR /&gt;mode.  If a running process receives a SIGSTOP signal (as with control-Z&lt;BR /&gt;in vi) or is being traced, it enters a stop state.  On receiving a SIGCONT&lt;BR /&gt;signal, the process returns to a run queue (in-core, runnable).  If a&lt;BR /&gt;running process must wait for a resource (such as a semaphore or&lt;BR /&gt;completion of I/O), the process goes on a sleep queue (sleep state) until&lt;BR /&gt;getting the resource, at which time the process wakes up and is put on a&lt;BR /&gt;run queue (in-core, runnable).  A sleeping process might also be swapped&lt;BR /&gt;out, in which case, when it receives its resource (or wakeup signal) the&lt;BR /&gt;process might be made runnable, but remain swapped out.  The process&lt;BR /&gt;is swapped in and is put on a run queue.  Once a process ends, it exits&lt;BR /&gt;into a zombie state</description>
    <pubDate>Wed, 08 May 2002 18:18:44 GMT</pubDate>
    <dc:creator>Mladen Despic</dc:creator>
    <dc:date>2002-05-08T18:18:44Z</dc:date>
    <item>
      <title>STATE in 'top' command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/state-in-top-command/m-p/2719859#M947890</link>
      <description>Where can I find a defenition for the various states displayed by the 'top' command?&lt;BR /&gt;&lt;BR /&gt;I'm wondering about the difference between sleep, wait and run.&lt;BR /&gt;&lt;BR /&gt;If the 10 top entires are all sleep, for example, is that telling me something about system performance?&lt;BR /&gt;</description>
      <pubDate>Wed, 08 May 2002 17:57:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/state-in-top-command/m-p/2719859#M947890</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2002-05-08T17:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: STATE in 'top' command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/state-in-top-command/m-p/2719860#M947891</link>
      <description>Fred,&lt;BR /&gt;&lt;BR /&gt;The various states are sleeping, waiting, running,    starting, zombie, and stopped, with sleeping and running being the most common.  Because only one process can be running on a given cpu at any given moment, the scheduler puts the other process in a sleep state - this is why you see so many sleeping.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 08 May 2002 18:07:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/state-in-top-command/m-p/2719860#M947891</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-05-08T18:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: STATE in 'top' command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/state-in-top-command/m-p/2719861#M947892</link>
      <description>From /usr/share/doc/proc_mgt.txt :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Process  States and transitions&lt;BR /&gt;===============================&lt;BR /&gt;&lt;BR /&gt;Through the course of its lifetime, a process transits through several&lt;BR /&gt;states.  Queues in main memory keep track of the process by its process&lt;BR /&gt;ID.  A process resides on a queue according to its state; process states are&lt;BR /&gt;defined in the proc.h header file.  Events such as receipt of a signal cause&lt;BR /&gt;the process to transit from one state to another.&lt;BR /&gt;&lt;BR /&gt;Table 1-3       Process states&lt;BR /&gt;State, followed by What Takes Place&lt;BR /&gt;&lt;BR /&gt;idle (SIDL):&lt;BR /&gt;Process is created by a call to fork, vfork, or exec; can be scheduled&lt;BR /&gt;to run.&lt;BR /&gt;&lt;BR /&gt;run (SRUN):&lt;BR /&gt;Process is on a run queue, available to execute in either kernel&lt;BR /&gt;or user mode.&lt;BR /&gt;&lt;BR /&gt;stopped (SSTOP):&lt;BR /&gt;Executing process is stopped by a signal or parent process:&lt;BR /&gt;&lt;BR /&gt;sleep (SSLEEP):&lt;BR /&gt;Process is not executing; may be waiting for resources:&lt;BR /&gt;&lt;BR /&gt;zombie (SZOMB):&lt;BR /&gt;Having exited, the process no longer exists, but leaves behind for&lt;BR /&gt;the parent process some record of its execution.&lt;BR /&gt;&lt;BR /&gt;When a program starts up a process, the kernel allocates a structure for&lt;BR /&gt;it from the process table. The process is now in idle state, waiting for&lt;BR /&gt;system resources.  Once it acquires the resource, the process is linked&lt;BR /&gt;onto a run queue and made runnable.  When the process acquires a&lt;BR /&gt;time-slice, it runs, switching as necessary between kernel mode and user&lt;BR /&gt;mode.  If a running process receives a SIGSTOP signal (as with control-Z&lt;BR /&gt;in vi) or is being traced, it enters a stop state.  On receiving a SIGCONT&lt;BR /&gt;signal, the process returns to a run queue (in-core, runnable).  If a&lt;BR /&gt;running process must wait for a resource (such as a semaphore or&lt;BR /&gt;completion of I/O), the process goes on a sleep queue (sleep state) until&lt;BR /&gt;getting the resource, at which time the process wakes up and is put on a&lt;BR /&gt;run queue (in-core, runnable).  A sleeping process might also be swapped&lt;BR /&gt;out, in which case, when it receives its resource (or wakeup signal) the&lt;BR /&gt;process might be made runnable, but remain swapped out.  The process&lt;BR /&gt;is swapped in and is put on a run queue.  Once a process ends, it exits&lt;BR /&gt;into a zombie state</description>
      <pubDate>Wed, 08 May 2002 18:18:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/state-in-top-command/m-p/2719861#M947892</guid>
      <dc:creator>Mladen Despic</dc:creator>
      <dc:date>2002-05-08T18:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: STATE in 'top' command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/state-in-top-command/m-p/2719862#M947893</link>
      <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;The easy way is to do a 'man'&lt;BR /&gt;&lt;BR /&gt;man top&lt;BR /&gt;&lt;BR /&gt;and you will have all the information that you need.&lt;BR /&gt;Regarding the states I agree with Pete.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 08 May 2002 18:21:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/state-in-top-command/m-p/2719862#M947893</guid>
      <dc:creator>Ricardo Bassoi</dc:creator>
      <dc:date>2002-05-08T18:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: STATE in 'top' command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/state-in-top-command/m-p/2719863#M947894</link>
      <description>I heard someplace that 'wait' was a bad thing, that it meant the process was waiting on hardware, i.e. a process that can read a disk faster than the disk can deliver the data.&lt;BR /&gt;&lt;BR /&gt;Is that true?&lt;BR /&gt;</description>
      <pubDate>Wed, 08 May 2002 18:23:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/state-in-top-command/m-p/2719863#M947894</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2002-05-08T18:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: STATE in 'top' command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/state-in-top-command/m-p/2719864#M947895</link>
      <description>Ricardo, sorry I did the 'man' and it names the states but doesn't define them.  The info above answeres my questions, though.&lt;BR /&gt;</description>
      <pubDate>Wed, 08 May 2002 18:28:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/state-in-top-command/m-p/2719864#M947895</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2002-05-08T18:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: STATE in 'top' command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/state-in-top-command/m-p/2719865#M947896</link>
      <description>Fred,&lt;BR /&gt;&lt;BR /&gt;Sometimes processes will wait for resources by design.&lt;BR /&gt;For example, if you run 'hpterm' the process will "sleep" beacuse it is waiting for the terminal input.&lt;BR /&gt;&lt;BR /&gt;In other cases, it is a question of performance tuning, but I don't think you can eliminate processes waiting for other resources.&lt;BR /&gt;&lt;BR /&gt;There are different types of wait states.  If you have Glance, you can check definitions of the following metrics in /opt/perf/paperdocs/gp/C/metrics.txt :&lt;BR /&gt;&lt;BR /&gt;PROC_CACHE_WAIT_PCT&lt;BR /&gt;PROC_CDFS_WAIT_PCT&lt;BR /&gt;PROC_DISK_SUBSYSTEM_WAIT_PCT&lt;BR /&gt;PROC_DISK_WAIT_PCT&lt;BR /&gt;PROC_GRAPHICS_WAIT_PCT&lt;BR /&gt;PROC_INODE_WAIT_PCT&lt;BR /&gt;PROC_IPC_SUBSYSTEM_WAIT_PCT&lt;BR /&gt;PROC_IPC_WAIT_PCT&lt;BR /&gt;PROC_JOBCTL_WAIT_PCT&lt;BR /&gt;PROC_LAN_WAIT_PCT&lt;BR /&gt;PROC_MEM_WAIT_PCT&lt;BR /&gt;PROC_MSG_WAIT_PCT&lt;BR /&gt;PROC_NFS_WAIT_PCT&lt;BR /&gt;PROC_OTHER_IO_WAIT_PCT&lt;BR /&gt;PROC_OTHER_WAIT_PCT&lt;BR /&gt;PROC_PIPE_WAIT_PCT&lt;BR /&gt;PROC_PRI_WAIT_PCT&lt;BR /&gt;PROC_RPC_WAIT_PCT&lt;BR /&gt;PROC_SEM_WAIT_PCT&lt;BR /&gt;PROC_SLEEP_WAIT_PCT&lt;BR /&gt;PROC_SOCKET_WAIT_PCT&lt;BR /&gt;PROC_STREAM_WAIT_PCT&lt;BR /&gt;PROC_SYS_WAIT_PCT&lt;BR /&gt;PROC_TERM_IO_WAIT_PC</description>
      <pubDate>Wed, 08 May 2002 18:42:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/state-in-top-command/m-p/2719865#M947896</guid>
      <dc:creator>Mladen Despic</dc:creator>
      <dc:date>2002-05-08T18:42:54Z</dc:date>
    </item>
  </channel>
</rss>

