ps出力のR / Dフラグはどういう意味ですか?

ps出力のR / Dフラグはどういう意味ですか?

R / Dとはどういう意味ですかps ax?問題があるという意味ですか?

     3 ?        R    522:45 [ksoftirqd/0]
  4380 ?        Rl   1240:31 gdm-session-worker [pam/gdm-launch-environment]
  5938 ?        Rs     0:00 ps ax
  6148 ?        Rl   1405:54 gnome-shell --mode=gdm

ベストアンサー1

psマニュアルの「プロセスステータスコード」セクションで:

   D    uninterruptible sleep (usually IO)
   R    running or runnable (on run queue)
   S    interruptible sleep (waiting for an event to complete)
   T    stopped by job control signal
   t    stopped by debugger during the tracing
   W    paging (not valid since the 2.6.xx kernel)
   X    dead (should never be seen)
   Z    defunct ("zombie") process, terminated but not reaped by its parent

は、Rプロセスが実行キューにあることを示します。いかなる方法でも問題があることを示すものではありません。

特定の状態のプロセスはD現在ディスクを待っているため、信号はすぐには処理されません。通常、コードの文字Dがここに表示されます。プロセスが長時間輻輳するか、複数のプロセスが同じ状態にある場合は問題があります。問題は高いI / O負荷に関連している可能性があります(たとえば、遅すぎるディスクからデータを読み取ろうとするプロセスが多すぎます)。

追加の文字も説明します。

BSD形式の場合、statキーワードを使用すると追加の文字が表示されることがあります。

   <    high-priority (not nice to other users)
   N    low-priority (nice to other users)
   L    has pages locked into memory (for real-time and custom IO)
   s    is a session leader
   l    is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
   +    is in the foreground process group

関連:

おすすめ記事