免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: wait_rabbit
打印 上一主题 下一主题

[FreeBSD] 请教 FreeBSD 的进程调度策略 [复制链接]

论坛徽章:
12
寅虎
日期:2013-12-04 20:37:4915-16赛季CBA联赛之广东
日期:2017-08-22 19:23:1215-16赛季CBA联赛之上海
日期:2016-06-18 23:05:05操作系统版块每日发帖之星
日期:2016-06-06 06:20:00操作系统版块每日发帖之星
日期:2016-06-05 06:20:00操作系统版块每日发帖之星
日期:2016-06-03 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:152015年亚洲杯之巴勒斯坦
日期:2015-02-10 21:38:08卯兔
日期:2014-10-31 20:42:23申猴
日期:2014-06-11 17:15:10处女座
日期:2014-05-22 09:00:1815-16赛季CBA联赛之广夏
日期:2017-09-25 23:37:46
11 [报告]
发表于 2013-02-14 23:41 |只看该作者
回复 9# svenwang

看来这个调度器的名字还是没变。:wink:
  1. # ls /usr/src/sys/kern/sched_*
  2. /usr/src/sys/kern/sched_4bsd.c        /usr/src/sys/kern/sched_ule.c
复制代码
打算找时间啃啃。

论坛徽章:
0
12 [报告]
发表于 2013-02-15 09:05 |只看该作者
本帖最后由 zeissoctopus 于 2013-02-15 09:10 编辑

樓主,可搜尋關鍵字 kern.sched.preempt_thresh
研習相關 FreeBSD as desktop 鏈結

论坛徽章:
0
13 [报告]
发表于 2013-02-15 14:29 |只看该作者
目前应该只有3个调度器可用:

# SCHED_4BSD is the historical, proven, BSD scheduler.  It has a global run
# queue and no CPU affinity which makes it suboptimal for SMP.  It has very
# good interactivity and priority selection.
#
# SCHED_ULE provides significant performance advantages over 4BSD on many
# workloads on SMP machines.  It supports cpu-affinity, per-cpu runqueues
# and scheduler locks.  It also has a stronger notion of interactivity
# which leads to better responsiveness even on uniprocessor machines.  This
# will eventually become the default scheduler.
#
# SCHED_STATS is a debugging option which keeps some stats in the sysctl
# tree at 'kern.sched.stats' and is useful for debugging scheduling decisions.

论坛徽章:
224
2022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:32操作系统版块每日发帖之星
日期:2016-02-18 06:20:00操作系统版块每日发帖之星
日期:2016-03-01 06:20:00操作系统版块每日发帖之星
日期:2016-03-02 06:20:0015-16赛季CBA联赛之上海
日期:2019-09-20 12:29:3219周年集字徽章-周
日期:2019-10-01 20:47:4815-16赛季CBA联赛之八一
日期:2020-10-23 18:30:5320周年集字徽章-20	
日期:2020-10-28 14:14:2615-16赛季CBA联赛之广夏
日期:2023-02-25 16:26:26CU十四周年纪念徽章
日期:2023-04-13 12:23:1015-16赛季CBA联赛之四川
日期:2023-07-25 16:53:45操作系统版块每日发帖之星
日期:2016-05-10 19:22:58
14 [报告]
发表于 2013-02-17 09:23 |只看该作者
回复 5# wait_rabbit


    这方面有专业的介绍,具体网上找找。


凭个人印象无非就是系统服务响应时间的选择策略,比如对桌面友好的就倾向于对end user实时响应,用户鼠标一动屏幕上马上就跟着动(任务切换快);而服务器友好的调度策略更倾向于让计算机资源专注高效的干活(任务切换反应慢)

论坛徽章:
2
技术图书徽章
日期:2013-09-04 15:21:51酉鸡
日期:2013-11-01 21:20:20
15 [报告]
发表于 2013-02-18 08:47 |只看该作者
wait_rabbit 发表于 2013-02-14 23:36
以前打过 BFS 的补丁,确实是非常流畅。 不过这个专门为桌面设计的补丁不可能进入官方的,只能自 ...


现在就是用的ULE
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP