以下思路来自syslogd源程序
luther@gliethttp:~$ sudo killall klogd // 首先干掉系统内部的klogd否则kmsg获得的log不全,而且log量很大时,就会出现klogd占用cpu超高的现象.
luther@gliethttp:~$ sudo cat /proc/kmsg
<4>[ 3499.310669] gggggggggggggggggg======0
<4>[ 3499.342663] gggggggggggggggggg======0
<4>[ 3499.374653] gggggggggggggggggg======0
<4>[ 3499.406648] gggggggggggggggggg======0
<4>[ 3499.438654] gggggggggggggggggg======0
<4>[ 3499.470659] gggggggggggggggggg======0
<4>[ 3499.502659] gggggggggggggggggg======0
<4>[ 3499.534672] gggggggggggggggggg======0
<4>[ 3499.566666] gggggggggggggggggg======0
<4>[ 3499.598661] gggggggggggggggggg======0
<4>[ 3499.630659] gggggggggggggggggg======0
<4>[ 3499.662659] gggggggggggggggggg======0
<4>[ 3499.694677] gggggggggggggggggg======0
<4>[ 3499.726658] gggggggggggggggggg======0
<4>[ 3499.758663] gggggggggggggggggg======0
<4>[ 3499.790659] gggggggggggggggggg======0
<4>[ 3499.822660] gggggggggggggggggg======0
<4>[ 3499.854675] gggggggggggggggggg======0
<4>[ 3499.982671] gggggggggggggggggg======0
<4>[ 3500.014662] gggggggggggggggggg======0
<4>[ 3500.046660] gggggggggggggggggg======0
<4>[ 3500.078665] gggggggggggggggggg======0
<4>[ 3500.110666] gggggggggggggggggg======0
<4>[ 3500.238664] gggggggggggggggggg======0
<4>[ 3500.270644] gggggggggggggggggg======0
<4>[ 3500.302647] gggggggggggggggggg======0
<4>[ 3500.334662] gggggggggggggggggg======0
<4>[ 3500.366658] gggggggggggggggggg======0
<4>[ 3500.398653] gggggggggggggggggg======0
<4>[ 3500.558668] gggggggggggggggggg======0
阅读(11425) | 评论(0) | 转发(0) |