LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices

Reply
 
Search this Thread
Old 07-15-2010, 11:19 AM   #1
gimli01
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
problems with cpu affinity, wine and Mass Effect 2


Hello,
I'm running Ubuntu Lucid 64 bit, with wine 1.2-rc6 and all relevant video drivers and such, in addition to linux-kernel 2.6.32-24 preempt and an nvidia gtx 260.

I've looked all over the web, and tried most of the cpu affinity tools out there, from schedtools to taskset and to cpulimit, which I compiled myself.

The problem I'm having is with running a game via wine, Mass Effect 2. I compiled wine to support it, and under an older realtime kernel (2.6.31-11-rt?) it ran perfectly, albeit slow). I now am using a preemptive kernel, and the game crashes after loading a savegame.

I can get around that, if I'm launching the program directly. Using taskset, I can change the affinity of the ME2 process to use one cpu core only. However, this does not seem to work when running the game from steam, and no effort I have made to apply a cpu affinity at game launch or steam launch has had the slightest effect.

My question is: is there a way to make wine apply a cpu affinity to every process run with it, for as long as i say so? If so, how?

Or can I somehow set up my system to have every wine process automatically confined to a single cpu core?

Thanks for your help.
 
Old 07-16-2010, 07:39 AM   #2
zaks_974
LQ Newbie
 
Registered: Jul 2010
Location: Bangalore
Distribution: fedora
Posts: 24

Rep: Reputation: 1
Why do you want to restrict wine to run on a single core if you have more. Linux if configured for smp (in the kernel) will take care of balancing all CPU's and the user need NOT worry about it. If you have a specific reason of running wine on a single cpu, let us know
 
Old 07-17-2010, 03:49 AM   #3
gimli01
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zaks_974 View Post
Why do you want to restrict wine to run on a single core if you have more. Linux if configured for smp (in the kernel) will take care of balancing all CPU's and the user need NOT worry about it. If you have a specific reason of running wine on a single cpu, let us know
Well, it's pretty simple really. If I don't confine the game to a single core, it crashes. It's a bit misbehaved under many dual core cpus, and has documented bugs relating to them. The usual fix is to set Mass Effect 2's cpu affinity to one cpu core, which works for the most part. I was just looking for ways to set a permanent policy without having to set it manually.

In any case, it's not an issue anymore, wine has a built in task manager that allows someone to set affinity for a wine process. It can be used by running wine taskmgr. Still in early stages, I think.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CPU affinity / taskset does not always work. lwi Ubuntu 3 03-01-2010 01:49 PM
thread affinity for a cpu core aloktiagi Linux - Newbie 4 08-21-2009 06:53 AM
CPU binding - How to modify the CPU affinity mask? Thaidog Linux - General 1 03-15-2008 06:54 PM
CPU affinity on kernel 2.4.14-SMP tsik Linux - Kernel 0 11-05-2007 10:27 PM
Processor affinity and cpu scheduling...? Thaidog Linux - Newbie 5 01-09-2003 08:08 PM


All times are GMT -5. The time now is 03:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration