Chinaunix首页 | 论坛 | 博客
  • 博客访问: 325947
  • 博文数量: 102
  • 博客积分: 2510
  • 博客等级: 少校
  • 技术积分: 1146
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-21 22:33
文章分类

全部博文(102)

文章存档

2011年(8)

2010年(94)

我的朋友

分类: LINUX

2010-10-19 00:09:08

a sleeper,means it has sleeps for a long time,and wakeup it now,put it in the queue. 
so, we give out a Thresh latency,which can make the sleeps wakeup sooner. 
There are below 3 values: 
se->vruntime; the sleeper 
cfs_rq->min_vruntime
the calculated vruntime; 
vruntime -= thresh; 
max(vruntime, se->vruntime). 

It means: 
1) If sleepers is out of date,so it has a very small vruntime,we make it uptodate. 
2) else, the sleeps is a fake,which goes out and come back again in a shot period,so we make it fair,just stand at the right place.
阅读(1812) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-10-19 16:22:36

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com