搜索
查看: 4512|回复: 4

-noaff到底有什么用?我怎么加和不加都只能用到1个核?

[复制链接]
发表于 2009-7-22 19:46:01 | 显示全部楼层 |阅读模式 来自 中国–江苏–无锡
官方说明是:
* Added "-noaff" command-line option to disable setting of thread affinity

高手的解释是:
-noaff 是指 no affinity,就是用来关闭 CPU 例程指定功能的。
monkie 发表于 2008-10-23 09:45


查到老外的说法是:

Any chance to fix win32 hlds using only first core? We almost used to
changing affinity with external tool but still it would be nice to see
it fixed.

Best regards,

Roman

That is in there because of certain AMD cpu's having dodgy timing when
switching between cores, those bad CPU's are still in the field so
unfortunately no. I can wrap a bit of code around it so you can disable
that functionality when you know you are running on a good CPU.

- Alfred

The Counter-Strike 1.6 Beta has been updated. Please run hldsupdatetool
to receive the updates. The specific changes are:

- Added "-noaff" option for dedicated servers so it won't bind to CPU 0
on windows

Jason


我在几台不同的服务器上测试,一个服务端都只在1个核上跑,怎么指定,这个参数加不加,都没用!

测试服务器有INTEL 4核的,有INTEL老志强HT双CPU的,有AMD 双核双CPU的,有AMD 单核双CPU的。
测试平台包括WIN2003和WIN2008。
发表于 2009-7-23 08:39:19 | 显示全部楼层 来自 中国–浙江–宁波–余姚市
你用firedaemon指定核心试试~~~
回复

使用道具 举报

发表于 2009-7-23 08:46:15 | 显示全部楼层 来自 日本
pv48版本的服务器才带这个参数
回复

使用道具 举报

 楼主| 发表于 2009-7-23 09:22:43 | 显示全部楼层 来自 中国–江苏–无锡
我用的是4554版本,用Rulzy版主的HL服务器监视器2.2指定了核心~~
回复

使用道具 举报

发表于 2009-7-24 19:02:43 | 显示全部楼层 来自 中国–湖北–襄阳
firedaemon 才是王道
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表