问题:这个 dmesg 是什么意思?不好吗?有一个两年前的帖子关于这如何意味着 I/O 性能下降,这可能是/这仍然是真的吗?
背景:我一直在经历 I/O 降级,但我将此归因于使用主板上的内置 RAID 而不是专用卡。我一直在追踪一些随机的内核消息,现在我已经切换到我的桌面——更多的是出于好奇。盒子有一个英特尔酷睿 i7 930 处理器。以下消息有规律地出现。我正在运行 openPBS,如果这很重要的话。但这些消息在系统重新启动后的过去一天半内出现了六次。
的输出uname -a
是:
Linux ###### 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 10:14:11 UTC 2010 x86_64 GNU/Linux
来自的消息dmesg
是:
[ 185.609169] CPU0 attaching NULL sched-domain.
[ 185.609173] CPU1 attaching NULL sched-domain.
[ 185.609175] CPU2 attaching NULL sched-domain.
[ 185.609176] CPU3 attaching NULL sched-domain.
[ 185.609178] CPU4 attaching NULL sched-domain.
[ 185.609179] CPU5 attaching NULL sched-domain.
[ 185.609180] CPU6 attaching NULL sched-domain.
[ 185.609182] CPU7 attaching NULL sched-domain.
[ 185.756764] CPU0 attaching sched-domain:
[ 185.756766] domain 0: span 0,7 level SIBLING
[ 185.756768] groups: 0 (cpu_power = 589) 7 (cpu_power = 589)
[ 185.756772] domain 1: span 0-7 level MC
[ 185.756773] groups: 0,7 (cpu_power = 1178) 1,4 (cpu_power = 1178) 2,5 (cpu_power = 1178) 3,6 (cpu_power = 1178)
[ 185.756780] CPU1 attaching sched-domain:
[ 185.756781] domain 0: span 1,4 level SIBLING
[ 185.756782] groups: 1 (cpu_power = 589) 4 (cpu_power = 589)
[ 185.756786] domain 1: span 0-7 level MC
[ 185.756787] groups: 1,4 (cpu_power = 1178) 2,5 (cpu_power = 1178) 3,6 (cpu_power = 1178) 0,7 (cpu_power = 1178)
[ 185.756793] CPU2 attaching sched-domain:
[ 185.756794] domain 0: span 2,5 level SIBLING
[ 185.756795] groups: 2 (cpu_power = 589) 5 (cpu_power = 589)
[ 185.756799] domain 1: span 0-7 level MC
[ 185.756800] groups: 2,5 (cpu_power = 1178) 3,6 (cpu_power = 1178) 0,7 (cpu_power = 1178) 1,4 (cpu_power = 1178)
[ 185.756806] CPU3 attaching sched-domain:
[ 185.756807] domain 0: span 3,6 level SIBLING
[ 185.756808] groups: 3 (cpu_power = 589) 6 (cpu_power = 589)
[ 185.756812] domain 1: span 0-7 level MC
[ 185.756813] groups: 3,6 (cpu_power = 1178) 0,7 (cpu_power = 1178) 1,4 (cpu_power = 1178) 2,5 (cpu_power = 1178)
[ 185.756819] CPU4 attaching sched-domain:
[ 185.756820] domain 0: span 1,4 level SIBLING
[ 185.756821] groups: 4 (cpu_power = 589) 1 (cpu_power = 589)
[ 185.756825] domain 1: span 0-7 level MC
[ 185.756826] groups: 1,4 (cpu_power = 1178) 2,5 (cpu_power = 1178) 3,6 (cpu_power = 1178) 0,7 (cpu_power = 1178)
[ 185.756832] CPU5 attaching sched-domain:
[ 185.756833] domain 0: span 2,5 level SIBLING
[ 185.756834] groups: 5 (cpu_power = 589) 2 (cpu_power = 589)
[ 185.756838] domain 1: span 0-7 level MC
[ 185.756839] groups: 2,5 (cpu_power = 1178) 3,6 (cpu_power = 1178) 0,7 (cpu_power = 1178) 1,4 (cpu_power = 1178)
[ 185.756845] CPU6 attaching sched-domain:
[ 185.756846] domain 0: span 3,6 level SIBLING
[ 185.756847] groups: 6 (cpu_power = 589) 3 (cpu_power = 589)
[ 185.756850] domain 1: span 0-7 level MC
[ 185.756852] groups: 3,6 (cpu_power = 1178) 0,7 (cpu_power = 1178) 1,4 (cpu_power = 1178) 2,5 (cpu_power = 1178)
[ 185.756858] CPU7 attaching sched-domain:
[ 185.756859] domain 0: span 0,7 level SIBLING
[ 185.756860] groups: 7 (cpu_power = 589) 0 (cpu_power = 589)
[ 185.756863] domain 1: span 0-7 level MC
[ 185.756865] groups: 0,7 (cpu_power = 1178) 1,4 (cpu_power = 1178) 2,5 (cpu_power = 1178) 3,6 (cpu_power = 1178)
该消息只是告诉您 CPU 内核正在初始化为空域。如果您愿意,您可以关闭消息,但它不会损害您的 I/O。
您可以使用它
iostat
来查找 IO 中的问题以及该错误中发生的情况。如果可以,请安装
ubuntu-desktop
软件包,注销并登录 gnome,看看您是否遇到同样的问题。这会将 kio 和 kthread 问题与系统范围的 io 问题分开。在两者上运行测试。在显式禁用和启用 CPU 内核后,我的日志中出现了相同的消息:
我的建议是,如果您收到此消息,请尝试按上述方式循环禁用和启用 CPU 内核。