Linux内核调度器 CFS调优

echo 10000000 > /proc/sys/kernel/sched_min_granularity_ns
echo 15000000 > /proc/sys/kernel/sched_wakeup_granularity_ns
echo 10 > /proc/sys/kernel/sched_nr_migrate
echo 1000000 > /proc/sys/kernel/sched_migration_cost


linux调度器(九)——调度器的配置参数: http://blog.youkuaiyun.com/wudongxu/article/details/8574753
http://www.oschina.net/question/234345_48082

http://bbs.gfan.com/android-5357558-1-1.html


使用完全公平调度程序(CFS)进行多任务处理: http://www.ibm.com/developerworks/cn/linux/l-cfs/
[root@dodge ~]# sysctl -A|grep "sched" | grep -v "domain"
kernel.sched_min_granularity_ns = 4000000
kernel.sched_latency_ns = 40000000
kernel.sched_wakeup_granularity_ns = 2000000
kernel.sched_batch_wakeup_granularity_ns = 25000000
kernel.sched_stat_granularity_ns = 0
kernel.sched_runtime_limit_ns = 40000000
kernel.sched_child_runs_first = 1
kernel.sched_features = 29
kernel.sched_compat_yield = 0
[root@dodge ~]#


http://artipc10.vub.ac.be/wordpress/2011/05/27/linux-performance-improvements/
CFS scheduler tuning
CFS (Competely Fair Scheduler) is the name of the Linux process scheduler. By default it is tuned for desktop workloads. For server systems where throughput is more important than latency, Red Hat’s tuned package proposes these sysctl settings for CFS for servers:
kernel.sched_min_granularity_ns = 10000000
kernel.sched_wakeup_granularity_ns = 15000000


https://www.kernel.org/doc/Documentation/scheduler/sched-design-CFS.txt
网站加速--服务器编写篇(上): http://blog.sina.com.cn/s/blog_466c66400100bi2n.html
Linux技巧:多核下绑定硬件/进程到不同CPU: http://os.51cto.com/art/201007/212964.htm
http://wenku.baidu.com/link?url=OLCxGzfywyWlUp-1Zzs-

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值