프로세스의 절전 모드 유형

프로세스의 절전 모드 유형

Oracle 프로세스가 종료될 때마다 서버가 다운되는 이유를 해결하는 동안 이 문제를 발견했습니다. 서버에서 실행 중인 oracle 프로세스를 나열했으며 ps aux | grep oracle결과는 다음과 같습니다.

oracle   21739  0.0  0.0 165068 17488 ?        Ssl  Oct14   0:18 /apps/11203/grid/bin/mdnsd.bin
oracle   21759  0.1  0.0 176556 25672 ?        Ssl  Oct14   1:14 /apps/11203/grid/bin/gpnpd.bin
oracle   21772  0.9  0.0 249528 31320 ?        Sl   Oct14   8:04 /apps/11203/grid/bin/gipcd.bin
oracle   21830  1.1  0.0 265760 115908 ?       SLl  Oct14   9:54 /apps/11203/grid/bin/ocssd.bin
oracle   21969  0.2  0.0 268648 29148 ?        Ssl  Oct14   2:10 /apps/11203/grid/bin/evmd.bin
oracle   22246  0.0  0.0  92420 13024 ?        S    Oct14    0:00 /apps/11203/grid/bin/evmlogger.bin -o /apps/11203/grid/evm/log/evmlogger.info -l /apps/11203/grid/evm/log/evmlogger.log

예, 이러한 프로세스는 모두 잠자고 있으며 상태 코드로 판단하면 다양한 유형의 잠자기 상태가 있습니다 Ssl, Sl, SLl. Google에서 다양한 유형의 프로세스 절전 모드를 검색했지만 디스크 절전, 중단 가능 및 중단 불가능한 절전에 대한 정보만 찾았습니다. 수면의 다양한 하위 상태에 대한 정보가 표시되지 않습니다 Ssl, Sl, SLl. 여기 SsL, Sl, SLl의 차이점을 아는 사람이 있나요?

사용자 "chaos"의 의견을 바탕으로 이러한 상태를 다음과 같이 식별했습니다.

Ssl - sleeping, is a session loader and multi-threaded. 
SL - sleeping, has pages locked into memory
Sl - sleeping, and the process is multi-threaded

그러면 이것이 무엇을 의미합니까? "SL - 절전 상태, 페이지가 메모리에 잠겨 있음"의 프로세스에서 메모리를 사용하고 있습니까? "SL" 프로세스가 많으면 다른 프로세스의 메모리를 차지합니까?

init( 차이가 있는 경우 이러한 모든 프로세스의 상위 프로세스는 입니다 .)

답변1

이것은 ps맨페이지에서 가져온 것입니다:

프로세스 상태 코드: 다음은 s, stat 및 상태 출력 지정자(제목 "STAT" 또는 "S")가 프로세스 상태를 설명하기 위해 표시하는 다양한 값입니다.

   D    uninterruptible sleep (usually IO)
   R    running or runnable (on run queue)
   S    interruptible sleep (waiting for an event to complete)
   T    stopped, either by a job control signal or because it is being traced.
   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.

   For BSD formats and when the stat keyword is used, additional characters may be
   displayed:
   <    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.

관련 정보