构建内核 3.7:对 AMD 64 笔记本使用 TICK_CPU_ACCOUNTING 还是 IRQ_TIME_ACCOUNTING?

构建内核 3.7:对 AMD 64 笔记本使用 TICK_CPU_ACCOUNTING 还是 IRQ_TIME_ACCOUNTING?

我正在使用 make oldconfig,不知道现在该做什么。(通常我可以自己做出选择)

*
* CPU/Task time and stats accounting
*
Cputime accounting
> 1. Simple tick based cputime accounting (TICK_CPU_ACCOUNTING) (NEW)
  2. Fine granularity task level IRQ time accounting (IRQ_TIME_ACCOUNTING)
choice[1-2]: 

似乎 IRQ_TIME_ACCOUNTING 可能会对性能产生负面影响,但之前是默认的。该选择什么?

我主要使用笔记本进行 Java 开发 Debian、Firefox、Eclipse 或 Intellij。

答案1

经过一番谷歌搜索后,我找到了答案,最好说是内核帮助,以补丁的形式。像往常一样,它很有帮助:

https://patchwork.kernel.org/patch/546141/

+   bool "Fine granularity task level IRQ time accounting"
+   default n
+   ---help---
+     Select this option to enable fine granularity task irq time
+     accounting. This is done by reading a timestamp on each
+     transitions between softirq and hardirq state, so there can be a
+     small performance impact.
+
+     If in doubt, say N here.

相关内容