@Elaquine

Boehm

Dalayan Elder
Uhm, lets stop shitting up the fame thread. Can you;

1. Tell me which version of ubuntu you are using and which kernel
- "cat /etc/ubuntu_version" - i think
- "uname -r"

2. grep for CAP_SYS_NICE in /usr/include/linux/capability.h
and post that section of the file here so I can look at it when I get home.
It allows the setting of real time scheduling priorities in calling or arbitrary processes.

If it's not there;
"aptitude install linux-headers-$(uname -r)"
then check the file. you can remove the package after posting it.

I may ask you to run an strace later depending.

3. Any exact error messages would be great.


thanks vell
 
Uhm, lets stop shitting up the fame thread. Can you;

1. Tell me which version of ubuntu you are using and which kernel

Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty

2.6.38-11-generic

2. grep for CAP_SYS_NICE in /usr/include/linux/capability.h
Code:
/* Allow raising priority and setting priority on other (different
   UID) processes */
/* Allow use of FIFO and round-robin (realtime) scheduling on own
   processes and setting the scheduling algorithm used by another
   process. */
/* Allow setting cpu affinity on other processes */

#define CAP_SYS_NICE         23
3. Any exact error messages would be great.
I only get one error message from "taskset 1 wine sodpatcher.exe" (a Wine issue, if Google is to be trusted) and then running "taskset -p" on the PID gives me a mask of 3...
Code:
fixme:ntoskrnl:KeInitializeSpinLock stub: 0x547d74
 
Well, thats a dev stub for an unimplement nt kernel call. The CAP_SYS_NICE is correct, or at least fine. The ubuntu version
shows you are probably using gnome 3 for desktop.
You can try this;

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=sod
Type=Application
Terminal=false
Icon[en_US]=swfdec
Name[en_US]=sod1
Exec=taskset 0x1 wine "/home/pparrish/.wine/drive_c/Program Files/Sony/Shards/EverQuest/sodpatcher.exe"
Icon=swfdec
GenericName[en_US]=

copy that into a text editor like vi, gedit what have you and save it to your desktop folder after replacing the path to patcher with yours.

if that doesn't work, copy and paste it into a terminal and copy error messages here.

You can also do this
#!/bin/bash
cd "/home/pparrish/.wine/drive_c/Program Files/Sony/Shards/EverQuest/"
taskset -c 0x1 wine eqgame.exe patchme
as a script. You only need the patcher for patching. It also gives more verbose messaging in the terminal.

If that doesn't work, there is a task manager in the wine "desktop" that you can right click and set affinity. But really child processes should accept the affinity of parents. There is also another scheduling tool I've never used called sched?? I'll find later on the wine boards.
 
Hmm... I tried the command, but both as a a launcher and as a script, I get the same response.

Code:
$ taskset -p 3143
pid 3143's current affinity mask: 3

Next, I tried setting the affinity mask to 1 and seeing what happens when it starts eqgame.exe

Code:
$ taskset -p 1 3143
pid 3143's current affinity mask: 3
pid 3143's new affinity mask: 1

$ taskset -p 3143
pid 3143's current affinity mask: 1

Went to the patcher and told it to patch / run eqgame, then tracked down the PID for eqgame...

Code:
$ taskset -p 3304
pid 3304's current affinity mask: 3
 
You need to file a bug report with canonical. eqgame should just inherit affinity from wine. Or at least log into their irc channel/newslist and find out what's up.

It's possible something like this wine-cvs hasn't made it into the current version of wine
for your host, assuming you are patched to current.
 
Last edited:
Back
Top Bottom