기본 콘텐츠로 건너뛰기

ProxySQL 에서 Unknown system variable 'query_cache_size' 오류

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.


댓글

이 블로그의 인기 게시물

Bash Array, Map 정리

Bash에서 Array, Map에 대한 정리. (매번 찾기 귀찮) 찾아보진 않았지만, Bash에서 Array든 Map이든 동일하게 Map(C++에서 Unordered Map)으로 동작하는 것 같다. 왜냐하면, Array의 Index가 연속하지 않아도 동작한다. 그저 Key가 0 이상의 정수인 Map이랑 비슷하게 동작한다. 예) 1, 2, 3, 9, 10 Array # 생성 declare -a empty_array declare -a ar=(haha hoho baba "long string haha hoho") # 접근 echo "ar[0]=${ar[0]}" echo "all as array=${ar[@]}" # 큰따옴표 안에서 각 원소를 따로따로 전달한다. echo "all as one=${ar[*]}" # 큰따옴표 안에서 각 원소를 문자열 하나로 합쳐 전달한다. echo "indexes=${!ar[@]}" echo "indexes=${!ar[*]}" echo "length=${#ar[@]}" echo "length=${#ar[*]}" echo "last=${ar[-1]}" echo "last=${ar[@]: -1}" # 콜론 뒤에 빈 칸이 꼭 필요하다. 옛 방식 # 현재 상황 declare -p ar #(출력) declare -a ar=([0]="haha" [1]="hoho" [2]="baba" [3]="long string haha hoho") ar[100]=hello # 인덱스를 건너 뛰어도 동작한다. declare -p ar #(출력) declare -a ar=([0]="haha" [1]="hoho" [2]="baba" [3]=&

설치한 패키지에서 RPM 추출하기

오래된 패키지를 관리할 저장소가 없어졌고, 기존 패키지로 다른 서버를 세팅해야할 일이 생겼다면 RPM의 리패키지 기능을 이용해보자. $ rpm -e --repackage [PACKAGE_NAME] 위와 같이 리패키지하면, /var/spool/repackage/ 에 생성한 RPM파일이 있다. :-)