[Bug 19982] SetThreadAffinityMask() seems not to work correctly

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Sep 30 15:40:21 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=19982





--- Comment #30 from Boris <bstriker at ya.ru>  2009-09-30 15:40:20 ---
I performed some tests on a workstation with WinXP at work and on my home
computer. Here are the results.

Test cases:
1) WinXP. For reference.
2) Wine 1.1.30 with five patches applied (see comment #16).
3) Wine 1.1.30 from git (downloaded about 1.5 hours ago) + patch from comment
#19.

$ grep HAVE_SCHED_SETAFFINITY include/config.h
#define HAVE_SCHED_SETAFFINITY 1
This command was executed just after Wine (test case #3) installed with
./tools/wineinstall

Screenshots of 'Test APIC' window of SIV in 3 test cases attached:
1) Reference.
2) Failed.
3) Failed.

'Processors' output of SIV:
1) Reference:
Processors  CPU-0   0    0    0               0000  0  0  0x00000001   2.67GHz

            CPU-1   0    1    0    (core)     0002  0  1  0x00000002   2.67GHz

            CPU-2   0    2    0    ...        0004  0  2  0x00000004   2.67GHz

            CPU-3   0    3    0    ...        0006  0  3  0x00000008   2.67GHz

            CPU-4   0    0    1    (logical)  0001  0  4  0x00000010   2.67GHz

            CPU-5   0    1    1    ...        0003  0  5  0x00000020   2.67GHz

            CPU-6   0    2    1    ...        0005  0  6  0x00000040   2.67GHz

            CPU-7   0    3    1    ...        0007  0  7  0x00000080   2.67GHz
2) Failed:
$ wine siv -save=[processors]=stdout -nodriver 2> /dev/null | egrep "(CPU-|APIC
 G)"
                    MPS  MCP  HTT          APIC  G  N  Affinity       Speed
Processors  CPU-0   0    1    0    (core)  0001  0  0  0x00000001   3.17GHz
            CPU-1   0    1    0    ...     0001  0  1  0x00000002   3.17GHz
3) Good:
$ wine siv -save=[processors]=stdout -nodriver 2> /dev/null | egrep "(CPU-|APIC
 G)"
                    MPS  MCP  HTT          APIC  G  N  Affinity       Speed
Processors  CPU-0   0    0    0            0000  0  0  0x00000001   3.17GHz
            CPU-1   0    1    0    (core)  0001  0  1  0x00000002   3.17GHz

ART test:
1) Good.
2) N/A (forget to do it).
3) Good:
$ wine art
ART - All Tests Passed !

Hope this helps.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list