dantes001 发表于 2009-7-22 19:46:01

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

官方说明是:
* 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。

akEr 发表于 2009-7-23 08:39:19

你用firedaemon指定核心试试~~~

axot 发表于 2009-7-23 08:46:15

pv48版本的服务器才带这个参数

dantes001 发表于 2009-7-23 09:22:43

我用的是4554版本,用Rulzy版主的HL服务器监视器2.2指定了核心~~

qpiori 发表于 2009-7-24 19:02:43

firedaemon 才是王道
页: [1]
查看完整版本: -noaff到底有什么用?我怎么加和不加都只能用到1个核?