problems with cpu affinity, wine and Mass Effect 2
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.