900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > linux cpu 没有内核 linux – 如何获得无内核的工作? nohz_full rcu_nocbs isolcpus还有什么?...

linux cpu 没有内核 linux – 如何获得无内核的工作? nohz_full rcu_nocbs isolcpus还有什么?...

时间:2018-07-23 02:20:05

相关推荐

linux cpu 没有内核 linux – 如何获得无内核的工作? nohz_full rcu_nocbs isolcpus还有什么?...

我刚安装了新的3.11内核的Ubuntu 13.10.而在3.10中,它具有无休止的功能,我可以运行一个进程而不被本地定时器中断,而不是像以前一样.我跟着这个链接

//11/nohz_fullgodmode/

我计划在cpu 3上运行我的应用程序,所以我在grub中设置以下内容:

isolcpus=3 nohz_full=3 rcu_nocbs=3

重新启动后,似乎本地定时器中断cpu 3确实比其他cpus少得多.

我也跑了:

# for i in `pgrep rcu` ; do taskset -pc 0 $i ; done

但是当我开始运行我的应用程序时,本地定时器中断的计数跳了.

我的应用程序只是一个无限循环.

int main() {

while (true) {

}

}

那我还缺少什么?为什么当我运行某些东西时,时间中断返回?

我以为nohz_full意味着只有一个进程运行,它会停止中断.

以下是当我没有运行应用程序时/ proc / sched_debug的输出,显然没有其他进程在该cpu.那我还缺少什么?

cpu#3, 2492.071 MHz

.nr_running : 0

.load : 0

.nr_switches : 45818

.nr_load_updates : 11165

.nr_uninterruptible : -1

.next_balance : 4295.674289

.curr->pid : 0

.clock : 3127610.519188

.cpu_load[0] : 0

.cpu_load[1] : 0

.cpu_load[2] : 0

.cpu_load[3] : 0

.cpu_load[4] : 0

.yld_count : 0

.sched_count : 47377

.sched_goidle : 3956

.avg_idle : 1000000

.ttwu_count : 29329

.ttwu_local : 26078

cfs_rq[3]:/

.exec_clock : 15750.800052

.MIN_vruntime : 0.000001

.min_vruntime : 15699.782432

.max_vruntime : 0.000001

.spread : 0.000000

.spread0 : -247950.011716

.nr_spread_over : 0

.nr_running : 0

.load : 0

.runnable_load_avg : 0

.blocked_load_avg : 0

.tg_load_contrib : 0

.tg_runnable_contrib : 0

.tg_load_avg : 602

.tg->runnable_avg : 592

.avg->runnable_avg_sum : 0

.avg->runnable_avg_period : 47077

rt_rq[3]:/

.rt_nr_running : 0

.rt_throttled : 0

.rt_time : 0.000000

.rt_runtime : 950.000000

runnable tasks:

task PID tree-key switches prio exec-runtime sum- exec sum-sleep

---------------------------------------------------------------------------------------- ------------------

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。