/sys/block/xxx/queue/rq_affinity数值1和2什么区别?
看了下sysfs里的代码:
http://elixir.free-electrons.com/linux/ ... sfs.c#L308
发现是跟以下两个标志有关系:
http://elixir.free-electrons.com/linux/ ... dev.h#L489
http://elixir.free-electrons.com/linux/ ... dev.h#L499
但force和非force什么区别?
/sys/block/xxx/queue/rq_affinity数值1和2什么区别?
-
- 帖子: 2284
- 注册时间: 2013-05-26 6:58
- 系统: Debian 9
-
- 帖子: 2284
- 注册时间: 2013-05-26 6:58
- 系统: Debian 9
- astolia
- 论坛版主
- 帖子: 6569
- 注册时间: 2008-09-18 13:11
Re: /sys/block/xxx/queue/rq_affinity数值1和2什么区别?
先读文档,再看实现
https://github.com/torvalds/linux/blob/ ... s.txt#L146
如果不清楚cpu group的概念,可以看这篇
https://lwn.net/Articles/427961/
https://github.com/torvalds/linux/blob/ ... s.txt#L146
如果不清楚cpu group的概念,可以看这篇
https://lwn.net/Articles/427961/