http://bugs.winehq.org/show_bug.cgi?id=26549
Summary: GomezPEER fails to set processor priority Product: Wine Version: 1.3.16 Platform: x86-64 URL: http://lastmile.gomez.com/PEERInstall.exe OS/Version: Linux Status: NEW Keywords: download Severity: minor Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: kennybobs@o2.co.uk
GomezPEER sets its background process (an instance of java.exe) to the lowest (idle) priority in Windows. It fails to do so under Linux. Does Wine lack the ability to set process priorities, perhaps?
Apologies if a similar bug is already open but I could not find one.
On newer systems this is not a problem, but on older system the PEER can consume 100% CPU while processing. The app is designed so that performance of the PC is not affected, which of course it isn't under Windows (save the usual Windows-related problems) but it is under Wine.
I'm not sure if I/O priority is also set.
The following does not work as a workaround:
$nice -n19 wine ~/blah/GomezPEER.exe
because this then sets all the Wine components to -n19 and can badly affect the performance of other apps running under Wine.
Instead, the workaround I use is:
$wineserver -p15 $nice -n19 wine ~/blah/GomezPEER.exe
This way the wineserver remains at normal priority. winedevice.exe in this case still receives -n19 priority, however.
Console log:
fixme:win:EnumDisplayDevicesW ((null),0,0x73a83c,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),1,0x73a83c,0x00000000), stub! fixme:ddraw:DirectDrawEnumerateExA flags 0x00000001 not handled fixme:win:EnumDisplayDevicesW ((null),0,0x74b69c,0x00000000), stub! fixme:font:WineEngCreateFontInstance Untranslated charset 255 fixme:time:GetSystemTimes (0xd9ee5a0,0xd9ee5b0,0xd9ee5a8): Stub! fixme:time:GetSystemTimes (0xd9ee5a0,0xd9ee5b0,0xd9ee5a8): Stub!
http://bugs.winehq.org/show_bug.cgi?id=26549
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://lastmile.gomez.com/P |http://www.rarlab.com/rar/w |EERInstall.exe |rar400.exe Summary|GomezPEER fails to set |Wine fails to set processor |processor priority |priority (niceness)
http://bugs.winehq.org/show_bug.cgi?id=26549
--- Comment #1 from Ken Sharp kennybobs@o2.co.uk 2011-11-07 00:01:23 CST --- http://wiki.winehq.org/SetThreadPriority
http://bugs.winehq.org/show_bug.cgi?id=26549
--- Comment #2 from Artem S. Tashkinov t.artem@mailcity.com 2012-01-15 14:36:52 CST --- I don't think this bug will ever get fixed, unless it's fixed in POSIX.
POSIX allows user space applications to lower their niceness but you cannot raise it (you will receive the "permission denied" error).
In Windows it's possible to restore "niceness" to the "Normal" level.
http://bugs.winehq.org/show_bug.cgi?id=26549
--- Comment #3 from Ken Sharp kennybobs@o2.co.uk 2012-01-15 15:26:03 CST --- Lowering the niceness should still be supported IF possible.
http://bugs.winehq.org/show_bug.cgi?id=26549
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Wine fails to set processor |Add support for setting |priority (niceness) |processor priority | |(niceness)
http://bugs.winehq.org/show_bug.cgi?id=26549
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source URL|http://www.rarlab.com/rar/w |http://boinc.berkeley.edu/d |rar400.exe |l/boinc_7.2.33_windows_inte | |lx86.exe
--- Comment #4 from Ken Sharp imwellcushtymelike@gmail.com --- Raising the priority to "normal" is supported under Ubuntu. I don't know about other OS but IIRC PC-BSD 9.x and OpenIndiana had no issue with this either.
http://bugs.winehq.org/show_bug.cgi?id=26549
--- Comment #5 from Ken Sharp imwellcushtymelike@gmail.com --- In fact, Ubuntu's PPA Wine patches Wine to allow this, and it works perfectly.
https://bugs.winehq.org/show_bug.cgi?id=26549
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |performance
https://bugs.winehq.org/show_bug.cgi?id=26549
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de
https://bugs.winehq.org/show_bug.cgi?id=26549
Jia Yuan Lo jylo06g@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jylo06g@gmail.com
--- Comment #6 from Jia Yuan Lo jylo06g@gmail.com --- Is this feature added or not? BOINC needs this.
https://wine-staging.com/news/2015-04-05-release-1.7.40.html https://github.com/wine-compholio/wine-staging/wiki/Environment-Variables#Re...
Wine said there is "optional" real time priorities support but what about setting it to lower/lowest priority?
The built-in taskmgr.exe felt like does nothing...
https://bugs.winehq.org/show_bug.cgi?id=26549
--- Comment #7 from Ken Sharp imwellcushtymelike@gmail.com --- https://github.com/wine-compholio/wine-staging/tree/master/patches/ntdll-Pro... https://github.com/wine-compholio/wine-staging/tree/master/patches/server-Re...
https://bugs.winehq.org/show_bug.cgi?id=26549
mirh mirh@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mirh@protonmail.ch
--- Comment #8 from mirh mirh@protonmail.ch --- The first patch landed in ab3c0a3e0a7b8f9fc1eb703b2e4f2133ef3ebf0d (wine 3.3) The second is still being carried in staging. Should the bug status be updated?
https://bugs.winehq.org/show_bug.cgi?id=26549
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |53101
https://bugs.winehq.org/show_bug.cgi?id=26549 Bug 26549 depends on bug 53101, which changed state.
Bug 53101 Summary: Public Peer silently exits https://bugs.winehq.org/show_bug.cgi?id=53101
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED