[Bug 34945] New: AppleWin 1.23.0: CPU usage is very high when should be minimal
http://bugs.winehq.org/show_bug.cgi?id=34945 Bug #: 34945 Summary: AppleWin 1.23.0: CPU usage is very high when should be minimal Product: Wine Version: 1.7.6 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs(a)winehq.org ReportedBy: michael.lutynski(a)gmail.com Classification: Unclassified Created attachment 46567 --> http://bugs.winehq.org/attachment.cgi?id=46567 htop showing CPU usage A performance issue where Wine puts an excessive load upon the CPU; CPU usage should be marginal. Both of my cores in my dual-core computer run at nearly 100% when I run AppleWin 1.23.0, a self-contained Apple II emulator. Mentioning this issue to the AppleWin developers, they say this is how AppleWin is functioning internally, which may be of help:
During *normal* emulation, the emulator will: i) Start a 1ms timer ii) Execute AppleII for 1ms of emulated time iii) Wait for 1ms timer to expire
So assuming you have a sufficiently fast PC (ie. any PC from the past 10 years) then the wait at step-(iii) will dominate the above sequence. Also, Applewin is single-threaded, so on your dual-core, it will at most consume 50% of the CPU capacity. <<< To replicate: Just run Applewin.exe, and when the main window appears, press F2 to start the emulator. A flashing prompt appears and the Applewin.exe CPU usage runs at, for example, 72% and wineserver is at 66% (see attached screenshot from htop). Download link: http://download.berlios.de/applewin/AppleWin1.23.0.0.zip 51cbe8790d5fdbd3809a17a5b8b66923e676605b AppleWin1.23.0.0.zip -- 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.
http://bugs.winehq.org/show_bug.cgi?id=34945 --- Comment #1 from michael.lutynski(a)gmail.com 2013-11-19 04:24:39 CST --- Created attachment 46568 --> http://bugs.winehq.org/attachment.cgi?id=46568 Output -- 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.
http://bugs.winehq.org/show_bug.cgi?id=34945 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, performance URL| |http://download.berlios.de/ | |applewin/AppleWin1.23.0.0.z | |ip -- 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.
https://bugs.winehq.org/show_bug.cgi?id=34945 Sebastian Lackner <sebastian(a)fds-team.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian(a)fds-team.de --- Comment #2 from Sebastian Lackner <sebastian(a)fds-team.de> --- Does the change explained in https://www.winehq.org/pipermail/wine-devel/2015-June/107754.html help to reduce the CPU usage? -- 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.
https://bugs.winehq.org/show_bug.cgi?id=34945 --- Comment #3 from michael.lutynski(a)gmail.com --- Hello Sebastian, Sorry, I cannot test this patch. I am running wine-1.7.38 via http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu. When this emerges in my packages, I can and will test it, unless there are development binaries packages I can install. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=34945 --- Comment #4 from michael.lutynski(a)gmail.com --- Wait, I now have wine-staging 1.7.44 and will be able to test this sooner than I thought. Just need to wait until this patch gets rolled into the next staging point release. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=34945 michael.lutynski(a)gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #5 from michael.lutynski(a)gmail.com ---
Does the change explained in https://www.winehq.org/pipermail/wine-devel/2015-June/107754.html help to reduce the CPU usage?
YES! It works! Now the CPU usage in AppleWin is much, much lower, around 6% CPU load whereas before is was around 80%. Very good, thank you! I've marked this as Fixed :) -- 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.
https://bugs.winehq.org/show_bug.cgi?id=34945 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |b513e07c55504f623baf8d838d0 | |0ac628eac7614 Component|-unknown |quartz -- 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.
https://bugs.winehq.org/show_bug.cgi?id=34945 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #6 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 1.7.47. -- 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.
participants (1)
-
wine-bugs@winehq.org