Linux 3.10引入 完全 无滴嗒特性

21 views
Skip to first unread message

闫林

unread,
May 24, 2013, 8:54:10 AM5/24/13
to sh...@googlegroups.com, 西电开源社区, gz...@googlegroups.com
       在一个典型的Linux系统中,运行中的CPU通常每秒会被时钟打断100到1000次。时钟中断是为了重新考虑应该运行哪个进程、响应读写更新 (RCU)调用,以及处理其它必要的事务。这种周期性的时钟中断或滴嗒比臭名昭著的全局内核锁(BKL)要合理得多,但它的缺点是影响性能,也称不上节 能。几年前,Linux社区开发出了可选的无滴答(tickless)模式,当CPU处于空闲状态,默认关闭时钟中断。它允许空闲CPU长时间处于深度睡 眠状态,减少电力消耗。它对于笔记本手机之类电池供电系统具有重要意义。然而这种无滴答模式也存在缺陷,不利于高延迟敏感环境,因为唤醒睡眠中的CPU有 时间开销。
       Linux 3.10内核引入了一个近似完全无滴嗒(full tickless)模式, 该模式默认关闭。根据内核开发者的测试,它能节省1%的CPU时间。在启用完全无滴答模式后,运行中的CPU如果只有一个可运行进程,它将关闭时钟中断。 如果出现第二个进程,滴嗒会再次出现以供调度器根据时间段分配资源。从技术角度说,这并不是完全无滴嗒,只能说近似。高性能和实时计算将会受益于这个新模 式,因为在这两种环境下,一个CPU执行一个任务是一种常见的策略。

相关的内核补丁
https://github.com/torvalds/linux/commit/534c97b0950b1967bca1c753aeaed32f5db40264

二师兄

unread,
May 24, 2013, 9:09:45 AM5/24/13
to sh...@googlegroups.com
好像完全支持dynamic tick了


--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/groups/opt_out。
 
 

Sherlock

unread,
May 24, 2013, 9:24:44 AM5/24/13
to Shanghai Linux User Group
这样不是回到了单进程时代?


2013/5/24 二师兄 <ibrothe...@gmail.com>



--
==========
      InitX
==========

David Pu

unread,
May 25, 2013, 9:30:16 AM5/25/13
to sh...@googlegroups.com
tickless+ interactive cpu governor在android设备上表现还不错
-------
Sent from my deovo v5 android phone
Reply all
Reply to author
Forward
0 new messages