server
named[18013]: dispatch 0x8face08: shutting down due to TCP receive
error: [IP REMOVED]#53: connection reset. named[8428]: dispatch 0x81eb2b0: shutting down due to
TCP receive error: <unknown address, family 48830>: connection
reset
# dmsetup 으로 확인하는 Major, minor 넘버 # dmsetup ls VG0-data (253, 0)
]# dmsetup info Name: VG0-data State: ACTIVE Read Ahead: 512 Tables present: LIVE Open count: 1 Event number: 0 Major, minor: 253, 0 Number of targets: 1 UUID: LVM-qAMVWfCgbM1GlkyJnpue3hj156CjTWXknlknh3KpTQUfToVgnfQRj3hyVysJrolL
w, top, uptime 등에 보면 load average 값이 나온다 1,5,15 분에 대한 load average 값은 무엇이며, 어떻게 값이 나오는걸까?
w, top, uptime 등등 은 /proc/loadavg 의 값을 참고 하며, . ex) # cat /proc/loadavg 0.09 0.04 0.01 1/196 6842
1,2,3 필드는 1,5,15분의 평균 load average 값 4 필드 running(currently executing kernel scheduling entities ) / total(number of kernel scheduling entities ) Process 5 필드 last running Process ID ( PID of the process that was most recently created on the system )
1,2,3 번의 1,5,15 분간 Load Average 라는것은 1분, 5분, 15분 동안 평균적으로 실행된 프로세스의 수를 의미 한다고 보면 된다.
멘페이지의 내용
man proc /proc/loadavg The first three fields in this file are load average figures giving the number of jobs in the run queue (state R) or waiting for disk I/O (state D) averaged over 1, 5, and 15 minutes. They are the same as the load average numbers given by uptime(1) and other programs. The fourth field consists of two numbers separated by a slash (/). The first of these is the number of currently executing kernel scheduling entities (processes, threads); this will be less than or equal to the number of CPUs. The value after the slash is the number of kernel scheduling entities that currently exist on the system. The fifth field is the PID of the process that was most recently created on the system.
root pts/1 :0.0 Wed Mar 31 13:45 - down (00:08) root :0 Wed Mar 31 13:45 - down (00:08) root pts/0 :0.0 Wed Mar 31 13:56 - crash (20+06:08) root :0 Wed Mar 31 13:55 - crash (20+06:09) root pts/0 61.74.95.191 Wed Apr 28 14:50 still logged in
down, crash, still 등등의 각 경우에 대한 설명이다. 내용은 last.c 의 내용을 발췌 하였다.
switch(what) { case R_CRASH: sprintf(logouttime, "- crash"); break; case R_DOWN: sprintf(logouttime, "- down "); break; case R_NOW: length[0] = 0; sprintf(logouttime, " still"); sprintf(length, "logged in"); break; case R_PHANTOM: length[0] = 0; sprintf(logouttime, " gone"); sprintf(length, "- no logout"); break; case R_REBOOT: logouttime[0] = 0; /* Print machine uptime */ break; case R_TIMECHANGE: logouttime[0] = 0; length[0] = 0; break; case R_NORMAL: break;
/* Types of listing */ #define R_CRASH 1 /* No logout record, system boot in between */ #define R_DOWN 2 /* System brought down in decent way */ #define R_NORMAL 3 /* Normal */ #define R_NOW 4 /* Still logged in */ #define R_REBOOT 5 /* Reboot record. */ #define R_PHANTOM 6 /* No logout record but session is stale. */ #define R_TIMECHANGE 7 /* NEW_TIME or OLD_TIME */