기본 콘텐츠로 건너뛰기

Linux /proc/pid/stat 구조

Linux 2.6 / 출처: http://linux.die.net/man/5/proc
ㅡ_-) 중간에 쓰이지 않는 '0' 필드가 있으니 주의!!!
pid %d
    The process ID.

comm %s
    The filename of the executable, in parentheses. This is visible whether or not the executable is swapped out.

state %c
    One character from the string "RSDZTW" where R is running, S is sleeping in an interruptible wait, D is waiting in uninterruptible disk sleep, Z is zombie, T is traced or stopped (on a signal), and W is paging.

ppid %d
    The PID of the parent.

pgrp %d
    The process group ID of the process.

session %d
    The session ID of the process.

tty_nr %d
    The tty the process uses.

tpgid %d
    The process group ID of the process which currently owns the tty that the process is connected to.

flags %lu
    The kernel flags word of the process. For bit meanings, see the PF_* defines in <linux/sched.h>. Details depend on the kernel version.

minflt %lu
    The number of minor faults the process has made which have not required loading a memory page from disk.

cminflt %lu
    The number of minor faults that the process's waited-for children have made.

majflt %lu
    The number of major faults the process has made which have required loading a memory page from disk.

cmajflt %lu
    The number of major faults that the process's waited-for children have made.

utime %lu
    The number of jiffies that this process has been scheduled in user mode.

stime %lu
    The number of jiffies that this process has been scheduled in kernel mode.

cutime %ld
    The number of jiffies that this process's waited-for children have been scheduled in user mode. (See also times(2).)

cstime %ld
    The number of jiffies that this process's waited-for children have been scheduled in kernel mode.

priority %ld
    The standard nice value, plus fifteen. The value is never negative in the kernel.

nice %ld
    The nice value ranges from 19 (nicest) to -19 (not nice to others).

0 %ld
    This value is hard coded to 0 as a placeholder for a removed field.

itrealvalue %ld
    The time in jiffies before the next SIGALRM is sent to the process due to an interval timer.

starttime %lu
    The time in jiffies the process started after system boot.

vsize %lu
    Virtual memory size in bytes.

rss %ld
    Resident Set Size: number of pages the process has in real memory, minus 3 for administrative purposes. This is just the pages which count towards text, data, or stack space. This does not include pages which have not been demand-loaded in, or which are swapped out.

rlim %lu
    Current limit in bytes on the rss of the process (usually 4294967295 on i386).

startcode %lu
    The address above which program text can run.

endcode %lu
    The address below which program text can run.

startstack %lu
    The address of the start of the stack.

kstkesp %lu
    The current value of esp (stack pointer), as found in the kernel stack page for the process.

kstkeip %lu
    The current EIP (instruction pointer).

signal %lu
    The bitmap of pending signals.

blocked %lu
    The bitmap of blocked signals.

sigignore %lu
    The bitmap of ignored signals.

sigcatch %lu
    The bitmap of caught signals.

wchan %lu
    This is the "channel" in which the process is waiting. It is the address of a system call, and can be looked up in a namelist if you need a textual name. (If you have an up-to-date /etc/psdatabase, then try ps -l to see the WCHAN field in action.)

nswap %lu
    Number of pages swapped (not maintained).

cnswap %lu
    Cumulative nswap for child processes (not maintained).

exit_signal %d
    Signal to be sent to parent when we die.

processor %d
    CPU number last executed on.

rt_priority %lu (since kernel 2.5.19)
    Real-time scheduling priority (see sched_setscheduler(2)).

policy %lu (since kernel 2.5.19)
    Scheduling policy (see sched_setscheduler(2)).


Powered by ScribeFire.


댓글

이 블로그의 인기 게시물

탐색기에서 OneDrive 이 2개로 보이는 문제

왜 2개가 보이는지 모르겠지만, Registry 삭제하면 됨 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace 하위 키에서 OneDrive 둘 중에 하나만 지워도 바로 반영됨. 참조:  https://answers.microsoft.com/en-us/msoffice/forum/all/duplicate-onedrives-in-file-explorer/49c935a6-287b-43a5-aed5-2dee2a1c1b22

버즈 라이브 배터리 교체

나는 버즈 라이브(SM-R180)가 좋은데, 평가가 별루였는지, 해당 스타일로 버즈를 더 이상 만들지 않고 있다. 아무튼, 오래 쓴 버즈 라이브 배터리가 슬슬 맛이 가기 시작해서, 블로그 를 참조하면서 분해 및 교체를 하였다. (진짜 쉬움) 요로코롬 위아래를 살짝 눌러주면 뚜껑이 벌어진다. 안쪽 플라스틱은 오른쪽은 분홍색, 왼쪽은 회색이다. 리본 케이블 살짝 들어내고, 기판을 떼어내면, 작은 나사가 있다. 나사를 풀고, 플라스틱을 걷어내면, 검은 양면 테이프로 고정된 CR1254 배터리가 보인다. 잘 쑤셔서(?) 꺼낸다. 새로운 CR1254 배터리를 넣는다. 음극이 아래로 가도록 하고, 분해의 역순으로 조립하면 된다. 조립할 때, 아까 풀었던 나사는 잊지 말고 꼭 조여준다. (까먹고 조립해서 다시 뜯고 조립함) 충전도 잘 되고, 소리도 잘 나는거 보면, 조립도 잘 된 것 같다. 이렇게 버즈 라이브의 수명을 강제로 늘렸다. 나중에 본체 배터리도 갈아야겠다.