Иногда сразу после загрузки Ubuntu 8.10 (со всеми апдейтами) наблюдаю высокую загрузку процессора, говорю htop и вижу примерно следующее (% - загрузка проца):
57% /bin/dd bs 1 if /proc/kmsg of /var/run/klogd/kmsg
41% /sbin/klogd -P /var/run/klogd/kmsg
18% /sbin/syslogd -u syslog
Ждал около 10 минут - нагрузка не спадала, потом уже прибивал эти процессы и всё приходило в норму.
Что это может быть и как с ним бороться?
При этом dmesg говорит:
[ 1076.227106] =======================
[ 1076.237323] bad: scheduling from the idle thread!
[ 1076.237329] Pid: 0, comm: swapper Not tainted 2.6.27-9-generic #1
[ 1076.237334] [<c037c4b6>] ? printk+0x1d/0x1f
[ 1076.237341] [<c0122b8a>] dequeue_task_idle+0x2a/0x40
[ 1076.237347] [<c012107f>] dequeue_task+0xcf/0x130
[ 1076.237353] [<c012112a>] deactivate_task+0x1a/0x30
[ 1076.237359] [<c037cad3>] schedule+0x4b3/0x790
[ 1076.237366] [<c014c36f>] ? raw_notifier_call_chain+0x1f/0x30
[ 1076.237373] [<c0151b55>] ? clockevents_notify+0x35/0x80
[ 1076.237384] [<f8873a43>] ? ticks_elapsed_in_us+0xb/0x4d [processor]
[ 1076.237397] [<f88749da>] ? acpi_idle_enter_simple+0x18b/0x193 [processor]
[ 1076.237409] [<c0153d82>] ? tick_nohz_stop_idle+0x12/0x70
[ 1076.237415] [<c0153e15>] ? tick_nohz_restart_sched_tick+0x35/0x180
[ 1076.237422] [<c01028cd>] cpu_idle+0xbd/0x140
[ 1076.237427] [<c037a711>] start_secondary+0x9d/0xcc
[ 1076.237433] =======================
[ 1076.237779] bad: scheduling from the idle thread!
[ 1076.237785] Pid: 0, comm: swapper Not tainted 2.6.27-9-generic #1
[ 1076.237789] [<c037c4b6>] ? printk+0x1d/0x1f
[ 1076.237796] [<c0122b8a>] dequeue_task_idle+0x2a/0x40
[ 1076.237801] [<c012107f>] dequeue_task+0xcf/0x130
[ 1076.237808] [<c012112a>] deactivate_task+0x1a/0x30
[ 1076.237813] [<c037cad3>] schedule+0x4b3/0x790
[ 1076.237819] [<c014c36f>] ? raw_notifier_call_chain+0x1f/0x30
[ 1076.237826] [<c0151b55>] ? clockevents_notify+0x35/0x80
[ 1076.237837] [<f8873a43>] ? ticks_elapsed_in_us+0xb/0x4d [processor]
[ 1076.237850] [<f88749da>] ? acpi_idle_enter_simple+0x18b/0x193 [processor]
[ 1076.237862] [<c0153d82>] ? tick_nohz_stop_idle+0x12/0x70
[ 1076.237868] [<c0153e15>] ? tick_nohz_restart_sched_tick+0x35/0x180
[ 1076.237875] [<c01028cd>] cpu_idle+0xbd/0x140
[ 1076.237881] [<c037a711>] start_secondary+0x9d/0xcc
[ 1076.237887] =======================
А в консоли (Ctrl+Alt+F1) бегут строчки:
bad: schedulling from the idle thread!
bad: schedulling from the idle thread!
bad: schedulling from the idle thread!
UPD:
Если сказать
sudo /etc/init.d/klogd stop
, то выведется что-то вроде:
* Stopping kernel log daemon...
start-stop-daemon: warning: failed to kill 8208: No such process
И нагрузка спадает.