|
放屁
ssking 发表于 2009-11-7 16:00 ![]()
GZ这样的人还是不少...
看看玻璃渣的蓝贴吧....I7 不一定比E8好
热度
0
推荐
1
[BLZ蓝贴慢报]四核处理器的末日!WOW运行中只用到2核
1月16日有玩家在BLZ技术支持版面发帖:在CPU多于2核的电脑上运行WOW时,会在config.wtf 中添加一个“processAffinityMask variable ”的值。通过更改此值就能够决定将哪2核分配给WOW进行使用。当然,在任务管理器中也可以直接设置。不过根据[ http://bbs.ngacn.cc/read.php?tid=2139775&fpage=1 ]所得出的结论,这样做是无效的。
[::艾泽拉斯国家地理 BBS.NGACN.CC::]
In machines with more than 2 logical processors (whether they are multiple physical processors, multiple DualCore or single QuadCore processors, or DualCore + HT processors), a new variable is saved to the config.wtf file.
The processAffinityMask variable is a decimal number composed of a binary mask representing which cores WoW will allow certain threads to be scheduled on. By default, this variable is set to "3" representing logical processors 1 and 2.
In case some of you are uncomfortable with the binary flags, here's a little picture that illustrates the mask and which logical processors will be used, for systems with up to 4 logical processors.
4321
0001 = 1
0010 = 2
0011 = 3
0100 = 4
0101 = 5
0110 = 6
0111 = 7
1000 = 8
1001 = 9
1010 = 10
1011 = 11
1100 = 12
1101 = 13
1110 = 14
1111 = 15
On my system, I seem to get better performance (higher FPS) when changing the mask to "15", even though I only have 1 physical processor with 2 cores and zHyperThreading. I'm curious to know, which threads does this mask schedule?
With the default affinity mask set to cores 1 and 2, I actually get poorer performance than when I disable HyperThreading. But enabling HyperThreading (to get those extra two logical processors) and changing the mask to "15" seems to give me about 20 more FPS.
Are there any consequences to changing this setting, such as instability? Are there any recommendations for changing it from its default value to achieve better performance on systems with 4 or more logical processors?
根据这名玩家的说法,他使用了1个物理的双核处理器,并且开启了超线程。那么他就相当于同时拥有了四个逻辑处理器(logical processors)。通过更改processAffinityMask variable 的值(这个值采用10进制计数),能够决定四个逻辑处理器的使用与否。在默认设置中,是core 1 2两个逻辑处理器被开启。
首先先解释一下上面的表格:
假设我们现在用的是一个四核处理器,分别把四个核编号1234.当mask值设置为5,那么把5转换成二进制就是“0101”。需要注意的是,1号核是最低位,4号核是最高位,那么判断处理器使用与否即按照4号->3号->2号->1号的顺序从左到右进行判断。0101即代表4号和2号关闭,3号和1号开启。如果在大学学过数电的话应该很容易就能够理解。接着这名玩家提出了一个疑问:如果将这个数值设置为15(转换成二进制即为1111),他的FPS有了多达20的提升。那么通过更改这个值能否令WOW在4核甚至更多核的处理器上得到更好的表现呢?
BLZ的技术支持Datth是这么说的:
You can use this to let WoW run on a specific core(s) but it only works up to two cores. If you set it on 15, you just let the game use 2 out of your 4 processors but you didn't tell it which ones.
你能够使用这个值让WOW运行在特定的核心上,但是最多只能在2个核上进行工作。如果你把他的值设置成15,你只是让游戏使用到了4核中的2核,但是没有告诉游戏该用的是哪两个核。
那么,为什么这个玩家在将值更改到15的时候会出现性能提升呢?
Is the default value for processAffinityMask always "3" (I.e., always use the first two virtual processors presented by the operating system) or is it determined dynamically at runtime?
通过这名玩家的描述可以看出,processAffinityMask的默认值为“3”,转换成二进制即为“0011”,代表使用第1号和2号核心。
As far as I know, it's set to default at 2 (first two cores). Your chart above describes how the number (when translated to binary positions) describe what you can set it to to enable the cores you want. I think on a hyperthread system, the system counts [Real core][HT core][Real core][HT core]. You might want to try "5" instead of "15"
Also note that some system drivers take advantage of both Hyperthreading and multicore so you might notice a bigger bump in certain hardware/driver setups.
据我所知,这个默认值为2(前两个核心)。你的表格描述了processAffinityMask这个值当转换成二进制时,是如何(让游戏)使用你想用到的核心的。我认为在一个超线程系统中,系统按照[物理核心][超线程核心][物理核心][超线程核心]。所以你应该把这个值设置成“5”而不是“15”
由此可以看出,使用双核+HT的CPU需要将processAffinityMask设置为5。如果设置为3,即开启一个物理核心上的两个逻辑核心,相当于原本双核处理器变成单核用。性能大幅降低也不奇怪了。
结论:
1.目前WOW仅仅用到双核,而且双核和单核之间的性能差距还是较大的。
2.超线程技术对WOW的性能几乎没有提升。
3.如果仅仅是为了WOW,三核以上的CPU意义不大。如果需要WOW同时进行视频处理等应用,那么三核以及三核以上CPU还是有必要的。考虑到四核处理器目前的性价比,不建议使用。
4.双核带超线程的CPU,如PXE 840和PXE 955需要手动设置processAffinityMask为5.由于国内用XE系列CPU的不多,所以这个问题并不常见。
Just an update, this cvar can support up to 32 processors. Just extend the binary to fit your needs.
一个update以后,这个cvar值就能支持最多32个处理器。
这句话很有趣,仅仅说明了WOW能够识别出32核处理器,但是实际应用起来还是只用到两个。
原帖地址:
[ http://forums.worldofwarcraft.com/thread.html?topicId=1778017311&sid=1&pageNo=1 ]
NGACN |
|