* WINE + Galciv + Con Kolivar's 09 patch to 2.6.0-test1-mm2 @ 2003-07-26 21:49 gaxt 2003-07-27 2:05 ` Con Kolivas 0 siblings, 1 reply; 20+ messages in thread From: gaxt @ 2003-07-26 21:49 UTC (permalink / raw) To: linux-kernel Kudos to CK In 2.4.21 galciv + wine was fine. In 2.4.21 + CK patches, galvic + wine would pause every 15 seconds or so (maybe it was when little animations played). In 2.6.0-test1-mm2 (vanilla, or + 08) Galciv would stutter horribly and freeze my machine in wine. It might run smoothly until I loaded a nautilus window or something then stutters and loss of control of the system. With 09, it is smooth as silk until I do something and then the video playbacks can be choppy but the game (turn based strategy) seems to run without the long pauses of 2.4.21 CK or 2.6.0 vanilla. I can switch between apps and go back without any problem. 09 seems to be a big improvement for whatever caused the stutter & die problems in wine+galciv. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + Con Kolivar's 09 patch to 2.6.0-test1-mm2 2003-07-26 21:49 WINE + Galciv + Con Kolivar's 09 patch to 2.6.0-test1-mm2 gaxt @ 2003-07-27 2:05 ` Con Kolivas 2003-07-28 5:17 ` 260test2+O10int breaks : " gaxt 2003-07-28 21:40 ` gaxt 0 siblings, 2 replies; 20+ messages in thread From: Con Kolivas @ 2003-07-27 2:05 UTC (permalink / raw) To: gaxt, linux-kernel On Sun, 27 Jul 2003 07:49, gaxt wrote: > Kudos to CK Thanks. > In 2.4.21 galciv + wine was fine. > > In 2.4.21 + CK patches, galvic + wine would pause every 15 seconds or so > (maybe it was when little animations played). > > In 2.6.0-test1-mm2 (vanilla, or + 08) Galciv would stutter horribly and > freeze my machine in wine. It might run smoothly until I loaded a > nautilus window or something then stutters and loss of control of the > system. > > With 09, it is smooth as silk until I do something and then the video > playbacks can be choppy but the game (turn based strategy) seems to run > without the long pauses of 2.4.21 CK or 2.6.0 vanilla. I can switch > between apps and go back without any problem. > > 09 seems to be a big improvement for whatever caused the stutter & die > problems in wine+galciv. Therein lies the problem with large MAX_SLEEP_AVG values. It may prevent interactive tasks from becoming non interactive (which is the point), but if an interactive task turns into a true cpu hog it can literally stall the machine for seconds. Which is why the workaround in O*int that allow small MSAs help. Con ^ permalink raw reply [flat|nested] 20+ messages in thread
* 260test2+O10int breaks : Re: WINE + Galciv + Con Kolivar's 09 patch to 2.6.0-test1-mm2 2003-07-27 2:05 ` Con Kolivas @ 2003-07-28 5:17 ` gaxt 2003-07-28 21:40 ` gaxt 1 sibling, 0 replies; 20+ messages in thread From: gaxt @ 2003-07-28 5:17 UTC (permalink / raw) To: Con Kolivas; +Cc: linux-kernel Update: 260-test2 with O10int has returned wine+galciv to freezing the whole computer on starting the game. The intro avi plays less than 1 second and the machine freezes up. I can swtich from virtual terminals but not enter any input. Con Kolivas wrote: > On Sun, 27 Jul 2003 07:49, gaxt wrote: > >>Kudos to CK > > > Thanks. > > >>In 2.4.21 galciv + wine was fine. >> >>In 2.4.21 + CK patches, galvic + wine would pause every 15 seconds or so >>(maybe it was when little animations played). >> >>In 2.6.0-test1-mm2 (vanilla, or + 08) Galciv would stutter horribly and >>freeze my machine in wine. It might run smoothly until I loaded a >>nautilus window or something then stutters and loss of control of the >>system. >> >>With 09, it is smooth as silk until I do something and then the video >>playbacks can be choppy but the game (turn based strategy) seems to run >>without the long pauses of 2.4.21 CK or 2.6.0 vanilla. I can switch >>between apps and go back without any problem. >> >>09 seems to be a big improvement for whatever caused the stutter & die >>problems in wine+galciv. > > > Therein lies the problem with large MAX_SLEEP_AVG values. It may prevent > interactive tasks from becoming non interactive (which is the point), but if > an interactive task turns into a true cpu hog it can literally stall the > machine for seconds. Which is why the workaround in O*int that allow small > MSAs help. > > Con > > ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + Con Kolivar's 09 patch to 2.6.0-test1-mm2 2003-07-27 2:05 ` Con Kolivas 2003-07-28 5:17 ` 260test2+O10int breaks : " gaxt @ 2003-07-28 21:40 ` gaxt 2003-07-28 21:39 ` Con Kolivas 1 sibling, 1 reply; 20+ messages in thread From: gaxt @ 2003-07-28 21:40 UTC (permalink / raw) To: Con Kolivas; +Cc: linux-kernel 260-test2-vanilla works fine with a little stutter playing the avis 260-test2-O10 causes horrible stutter and loss of input to system 260-test2-mm1 causes horrible stutter and loss of input to system NOTE: Instead of re-setting, by switching consoles by pressing Alt F7 then Alt-F1 back and forth (ie from X to virtual console) it seems I could prod wine+galciv into edging forward, stalling, edging forward etc. through the opening AVIs. ie. I would hear the sounds of the movie advance each time I switched into Alt-F1. Once into the turn-based game itself (after opening animations) ability to input was restored again and the game can be played and windows moved around etc. So it seems the playing of the little movies is what really locks up the whole system using the O10/mm1 scheduling??? ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + Con Kolivar's 09 patch to 2.6.0-test1-mm2 2003-07-28 21:40 ` gaxt @ 2003-07-28 21:39 ` Con Kolivas 2003-07-29 2:30 ` gaxt 0 siblings, 1 reply; 20+ messages in thread From: Con Kolivas @ 2003-07-28 21:39 UTC (permalink / raw) To: gaxt; +Cc: linux-kernel On Tue, 29 Jul 2003 07:40, gaxt wrote: > 260-test2-vanilla works fine with a little stutter playing the avis > 260-test2-O10 causes horrible stutter and loss of input to system > 260-test2-mm1 causes horrible stutter and loss of input to system > > NOTE: Instead of re-setting, by switching consoles by pressing Alt F7 > then Alt-F1 back and forth (ie from X to virtual console) it seems I > could prod wine+galciv into edging forward, stalling, edging forward > etc. through the opening AVIs. ie. I would hear the sounds of the movie > advance each time I switched into Alt-F1. > > Once into the turn-based game itself (after opening animations) ability > to input was restored again and the game can be played and windows moved > around etc. > > So it seems the playing of the little movies is what really locks up the > whole system using the O10/mm1 scheduling??? File I/O ? Try booting with elevator=deadline Con ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + Con Kolivar's 09 patch to 2.6.0-test1-mm2 2003-07-28 21:39 ` Con Kolivas @ 2003-07-29 2:30 ` gaxt 2003-07-29 3:25 ` Con Kolivas 0 siblings, 1 reply; 20+ messages in thread From: gaxt @ 2003-07-29 2:30 UTC (permalink / raw) To: Con Kolivas; +Cc: linux-kernel Con Kolivas wrote: > On Tue, 29 Jul 2003 07:40, gaxt wrote: > >>260-test2-vanilla works fine with a little stutter playing the avis >>260-test2-O10 causes horrible stutter and loss of input to system >>260-test2-mm1 causes horrible stutter and loss of input to system >> >>NOTE: Instead of re-setting, by switching consoles by pressing Alt F7 >>then Alt-F1 back and forth (ie from X to virtual console) it seems I >>could prod wine+galciv into edging forward, stalling, edging forward >>etc. through the opening AVIs. ie. I would hear the sounds of the movie >>advance each time I switched into Alt-F1. >> >>Once into the turn-based game itself (after opening animations) ability >>to input was restored again and the game can be played and windows moved >>around etc. >> >>So it seems the playing of the little movies is what really locks up the >>whole system using the O10/mm1 scheduling??? > > > File I/O ? Try booting with elevator=deadline > > Con Setting elevator=deadline results in wine+galciv loading without the horrible long pauses but there is still chugging and while the AVIs play, the rest of Gnome is unresponsive (ie can't switch windows by clicking etc) though I can switch to Alt-F1 virtual terminal. Still not as good as 260-test-2-vanilla ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + Con Kolivar's 09 patch to 2.6.0-test1-mm2 2003-07-29 2:30 ` gaxt @ 2003-07-29 3:25 ` Con Kolivas 2003-07-29 12:48 ` WINE + Galciv + Con Kolivas's 011 patch to 2.6.0-test2 gaxt 0 siblings, 1 reply; 20+ messages in thread From: Con Kolivas @ 2003-07-29 3:25 UTC (permalink / raw) To: gaxt; +Cc: linux-kernel On Tue, 29 Jul 2003 12:30, gaxt wrote: > Con Kolivas wrote: > > File I/O ? Try booting with elevator=deadline > > Setting elevator=deadline results in wine+galciv loading without the > horrible long pauses but there is still chugging and while the AVIs > play, the rest of Gnome is unresponsive (ie can't switch windows by > clicking etc) though I can switch to Alt-F1 virtual terminal. Still not > as good as 260-test-2-vanilla Well that is weird, but no doubt IO is playing some part here. Can you please try the preview O11 patch (incremental against 2.6.0-test2-mm1 but should patch against an O10 patched vanilla) in http://kernel.kolivas.org/2.5/experimental While not specifically addressing this problem, it may help. Con ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + Con Kolivas's 011 patch to 2.6.0-test2 2003-07-29 3:25 ` Con Kolivas @ 2003-07-29 12:48 ` gaxt 2003-07-29 12:46 ` Con Kolivas 0 siblings, 1 reply; 20+ messages in thread From: gaxt @ 2003-07-29 12:48 UTC (permalink / raw) To: Con Kolivas; +Cc: linux-kernel I tried O11. Still chuggy in the AVIs and then locks out input into X. I switch to Alt-F1 console and hear the video advance, switch back, it pauses, switch to Alt-F1 etc. to get it through the video and then it's fine. Incidentally, I moved my /home to another hard drive last night (same 7200 rpms) to get more space. It makes no difference to performance. 260-test2-vanilla was quite good and -mm1 and -O11 are chuggy and lock out input to X and require switching to virtual console to advance through the videos. If there is some other data I can provide you, let me know. Con Kolivas wrote: > On Tue, 29 Jul 2003 12:30, gaxt wrote: > >>Con Kolivas wrote: >> >>>File I/O ? Try booting with elevator=deadline >> >>Setting elevator=deadline results in wine+galciv loading without the >>horrible long pauses but there is still chugging and while the AVIs >>play, the rest of Gnome is unresponsive (ie can't switch windows by >>clicking etc) though I can switch to Alt-F1 virtual terminal. Still not >>as good as 260-test-2-vanilla > > > Well that is weird, but no doubt IO is playing some part here. Can you please > try the preview O11 patch (incremental against 2.6.0-test2-mm1 but should > patch against an O10 patched vanilla) in > > http://kernel.kolivas.org/2.5/experimental > > While not specifically addressing this problem, it may help. > > Con > > ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + Con Kolivas's 011 patch to 2.6.0-test2 2003-07-29 12:48 ` WINE + Galciv + Con Kolivas's 011 patch to 2.6.0-test2 gaxt @ 2003-07-29 12:46 ` Con Kolivas 2003-07-29 20:59 ` gaxt ` (2 more replies) 0 siblings, 3 replies; 20+ messages in thread From: Con Kolivas @ 2003-07-29 12:46 UTC (permalink / raw) To: gaxt; +Cc: linux-kernel On Tue, 29 Jul 2003 22:48, gaxt wrote: > I tried O11. Still chuggy in the AVIs and then locks out input into X. I > switch to Alt-F1 console and hear the video advance, switch back, it > pauses, switch to Alt-F1 etc. to get it through the video and then it's > fine. > > Incidentally, I moved my /home to another hard drive last night (same > 7200 rpms) to get more space. It makes no difference to performance. > 260-test2-vanilla was quite good and -mm1 and -O11 are chuggy and lock > out input to X and require switching to virtual console to advance > through the videos. > > If there is some other data I can provide you, let me know. What top shows as the PRI of all the important processes concerned during all this would be helpful. Con ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + Con Kolivas's 011 patch to 2.6.0-test2 2003-07-29 12:46 ` Con Kolivas @ 2003-07-29 20:59 ` gaxt 2003-07-29 21:09 ` gaxt 2003-08-08 20:04 ` 2.6.0-test2-mm5 + July Wine + Galciv gaxt 2003-08-12 14:42 ` WINE + Galciv + 2.6.0-test3-mm1-O15 gaxt 2 siblings, 1 reply; 20+ messages in thread From: gaxt @ 2003-07-29 20:59 UTC (permalink / raw) To: Con Kolivas; +Cc: linux-kernel Con Kolivas wrote: > On Tue, 29 Jul 2003 22:48, gaxt wrote: > >>I tried O11. Still chuggy in the AVIs and then locks out input into X. I >>switch to Alt-F1 console and hear the video advance, switch back, it >>pauses, switch to Alt-F1 etc. to get it through the video and then it's >>fine. >> >>Incidentally, I moved my /home to another hard drive last night (same >>7200 rpms) to get more space. It makes no difference to performance. >>260-test2-vanilla was quite good and -mm1 and -O11 are chuggy and lock >>out input to X and require switching to virtual console to advance >>through the videos. >> >>If there is some other data I can provide you, let me know. > > > What top shows as the PRI of all the important processes concerned during all > this would be helpful. > > Con It's hard to grab top info as the interface freezes up. I'd have to ssh in from another system. However, browsing lkml, I noticed someone saying I/O throughput was affected by a readahead setting of 256 instead of 512 using hdparm -a ###. I changed the readahead on my root and home drives and galciv was able to load (with some mild stuttering in the movies). I've never adjusted this setting before. Perhaps it compensates for scheduler activity by allowing the system to draw more data within a given timeslice? Or am I babbling? Running top while glaciv + wine is running with the new hdparm -a 512 setting, I can mention the following patterns: When loading up playing AVIs, the top are wineserver, wine, wine, and X (there is also another wine process). When the game chugs/pauses badly in playing an avi, wineserver leaps to the top with >50% CPU with wineserver+wine processes+x taking 100% CPU. Then when chugging lapses, wineserver drops down to the 26% range and the other wine processes are the same or a bit above. When the game is loaded, two wine processes at 21% CPU each are at top, then X with 5-10% then wineserver with 2-3% (a huge drop) or even a couple of appas above wineserver. Perhaps this data helps? ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + Con Kolivas's 011 patch to 2.6.0-test2 2003-07-29 20:59 ` gaxt @ 2003-07-29 21:09 ` gaxt 2003-07-29 21:13 ` gaxt 0 siblings, 1 reply; 20+ messages in thread From: gaxt @ 2003-07-29 21:09 UTC (permalink / raw) To: Con Kolivas; +Cc: linux-kernel More notes. galciv+wine even with hdparm -a is still too chuggy even within the game. Wineserver drops down to a 1-3% in game play but wine processes +x add up to 95 - 100% and slows things down. Using other windows in X takes long pauses. Not like vanilla 260 at all which was very smooth in the game and switching between apps. gaxt wrote: > Con Kolivas wrote: > >> On Tue, 29 Jul 2003 22:48, gaxt wrote: >> >>> I tried O11. Still chuggy in the AVIs and then locks out input into X. I >>> switch to Alt-F1 console and hear the video advance, switch back, it >>> pauses, switch to Alt-F1 etc. to get it through the video and then it's >>> fine. >>> >>> Incidentally, I moved my /home to another hard drive last night (same >>> 7200 rpms) to get more space. It makes no difference to performance. >>> 260-test2-vanilla was quite good and -mm1 and -O11 are chuggy and lock >>> out input to X and require switching to virtual console to advance >>> through the videos. >>> >>> If there is some other data I can provide you, let me know. >> >> >> >> What top shows as the PRI of all the important processes concerned >> during all this would be helpful. >> >> Con > > > It's hard to grab top info as the interface freezes up. I'd have to ssh > in from another system. > > However, browsing lkml, I noticed someone saying I/O throughput was > affected by a readahead setting of 256 instead of 512 using hdparm -a > ###. I changed the readahead on my root and home drives and galciv was > able to load (with some mild stuttering in the movies). > > I've never adjusted this setting before. Perhaps it compensates for > scheduler activity by allowing the system to draw more data within a > given timeslice? Or am I babbling? > > Running top while glaciv + wine is running with the new hdparm -a 512 > setting, I can mention the following patterns: > > When loading up playing AVIs, the top are wineserver, wine, wine, and X > (there is also another wine process). When the game chugs/pauses badly > in playing an avi, wineserver leaps to the top with >50% CPU with > wineserver+wine processes+x taking 100% CPU. Then when chugging lapses, > wineserver drops down to the 26% range and the other wine processes are > the same or a bit above. When the game is loaded, two wine processes at > 21% CPU each are at top, then X with 5-10% then wineserver with 2-3% (a > huge drop) or even a couple of appas above wineserver. > > Perhaps this data helps? > ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + Con Kolivas's 011 patch to 2.6.0-test2 2003-07-29 21:09 ` gaxt @ 2003-07-29 21:13 ` gaxt 0 siblings, 0 replies; 20+ messages in thread From: gaxt @ 2003-07-29 21:13 UTC (permalink / raw) To: Con Kolivas; +Cc: linux-kernel gaxt wrote: > More notes. > > galciv+wine even with hdparm -a is still too chuggy even within the > game. Wineserver drops down to a 1-3% in game play but wine processes +x > add up to 95 - 100% and slows things down. Using other windows in X > takes long pauses. Not like vanilla 260 at all which was very smooth in > the game and switching between apps. sorry -> 260-test2 vanilla NOT 260test1 which would lock galciv+wine up. > > gaxt wrote: > >> Con Kolivas wrote: >> >>> On Tue, 29 Jul 2003 22:48, gaxt wrote: >>> >>>> I tried O11. Still chuggy in the AVIs and then locks out input into >>>> X. I >>>> switch to Alt-F1 console and hear the video advance, switch back, it >>>> pauses, switch to Alt-F1 etc. to get it through the video and then it's >>>> fine. >>>> >>>> Incidentally, I moved my /home to another hard drive last night (same >>>> 7200 rpms) to get more space. It makes no difference to performance. >>>> 260-test2-vanilla was quite good and -mm1 and -O11 are chuggy and lock >>>> out input to X and require switching to virtual console to advance >>>> through the videos. >>>> >>>> If there is some other data I can provide you, let me know. >>> >>> >>> >>> >>> What top shows as the PRI of all the important processes concerned >>> during all this would be helpful. >>> >>> Con >> >> >> >> It's hard to grab top info as the interface freezes up. I'd have to >> ssh in from another system. >> >> However, browsing lkml, I noticed someone saying I/O throughput was >> affected by a readahead setting of 256 instead of 512 using hdparm -a >> ###. I changed the readahead on my root and home drives and galciv was >> able to load (with some mild stuttering in the movies). >> >> I've never adjusted this setting before. Perhaps it compensates for >> scheduler activity by allowing the system to draw more data within a >> given timeslice? Or am I babbling? >> >> Running top while glaciv + wine is running with the new hdparm -a 512 >> setting, I can mention the following patterns: >> >> When loading up playing AVIs, the top are wineserver, wine, wine, and >> X (there is also another wine process). When the game chugs/pauses >> badly in playing an avi, wineserver leaps to the top with >50% CPU >> with wineserver+wine processes+x taking 100% CPU. Then when chugging >> lapses, wineserver drops down to the 26% range and the other wine >> processes are the same or a bit above. When the game is loaded, two >> wine processes at 21% CPU each are at top, then X with 5-10% then >> wineserver with 2-3% (a huge drop) or even a couple of appas above >> wineserver. >> >> Perhaps this data helps? >> > > ^ permalink raw reply [flat|nested] 20+ messages in thread
* 2.6.0-test2-mm5 + July Wine + Galciv 2003-07-29 12:46 ` Con Kolivas 2003-07-29 20:59 ` gaxt @ 2003-08-08 20:04 ` gaxt 2003-08-12 14:42 ` WINE + Galciv + 2.6.0-test3-mm1-O15 gaxt 2 siblings, 0 replies; 20+ messages in thread From: gaxt @ 2003-08-08 20:04 UTC (permalink / raw) To: linux-kernel As an update to the messages I've been posting about running Galactic Civ in Wine on the 260 series: 260-test2-mm5 seems quite nice. When programs are intially run (ie. Nautilus, OpenOffice etc. as well as Galciv in wine) there can be minor stuttering and some long delays but once the software is up, it can be switched back and forth with little problem. (When initially starting up even the movies ran fine without pauses) There can be some minor stuttering when flipping between apps but it seems to smooth out after using a particular app for awhile which I would guess is the adpative nature of the scheduler? ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + 2.6.0-test3-mm1-O15 2003-07-29 12:46 ` Con Kolivas 2003-07-29 20:59 ` gaxt 2003-08-08 20:04 ` 2.6.0-test2-mm5 + July Wine + Galciv gaxt @ 2003-08-12 14:42 ` gaxt 2003-08-12 14:40 ` Con Kolivas 2 siblings, 1 reply; 20+ messages in thread From: gaxt @ 2003-08-12 14:42 UTC (permalink / raw) To: Con Kolivas; +Cc: linux-kernel Photoshop 6 (yes, legal owned version) in wine is flawless (as it was with 2.6.0-test3) Galciv plays videos quite smoothly but as soon as I run it it will freeze the cursor for 12-15 seconds every half-minute or so even within the game itself which is turn-based strategy without a lot of whizbang stuff. In the past, the videos would stutter but the game would not suffer from more than short pauses now and then. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + 2.6.0-test3-mm1-O15 2003-08-12 14:42 ` WINE + Galciv + 2.6.0-test3-mm1-O15 gaxt @ 2003-08-12 14:40 ` Con Kolivas 2003-08-12 18:24 ` Mike Galbraith 0 siblings, 1 reply; 20+ messages in thread From: Con Kolivas @ 2003-08-12 14:40 UTC (permalink / raw) To: gaxt; +Cc: linux-kernel, Mike Galbraith On Wed, 13 Aug 2003 00:42, gaxt wrote: > Photoshop 6 (yes, legal owned version) in wine is flawless (as it was > with 2.6.0-test3) > > Galciv plays videos quite smoothly but as soon as I run it it will > freeze the cursor for 12-15 seconds every half-minute or so even within > the game itself which is turn-based strategy without a lot of whizbang > stuff. In the past, the videos would stutter but the game would not > suffer from more than short pauses now and then. Yes, herein lies one of those mysteries that still eludes me but I have been investigating it. I can now reproduce in other applications what appears to be the problem - Two cpu hogs, X and evolution for example are running and evolution is making X the cpu hog. The problem is that X gets demoted whereas evolution doesn't. Strangely, dropping evolution to nice +1 or making X -1 seems to change which one gets demoted, and X is now much smoother. I assume the same thing is happening here between wine and wineserver, which is why you've seen reversal of priorities in your previous posts. See if renicing one of them +1 helps for the time being. I will continue investigating to find out why the heck this happens and try and fix it. Con P.S. I've cc'ed MG because he has seen the scheduler do other forms of trickery and may have thoughts on why this happens. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + 2.6.0-test3-mm1-O15 2003-08-12 14:40 ` Con Kolivas @ 2003-08-12 18:24 ` Mike Galbraith 2003-08-12 18:44 ` Timothy Miller 2003-08-13 3:34 ` Con Kolivas 0 siblings, 2 replies; 20+ messages in thread From: Mike Galbraith @ 2003-08-12 18:24 UTC (permalink / raw) To: Con Kolivas; +Cc: gaxt, linux-kernel At 12:40 AM 8/13/2003 +1000, Con Kolivas wrote: >On Wed, 13 Aug 2003 00:42, gaxt wrote: > > Photoshop 6 (yes, legal owned version) in wine is flawless (as it was > > with 2.6.0-test3) > > > > Galciv plays videos quite smoothly but as soon as I run it it will > > freeze the cursor for 12-15 seconds every half-minute or so even within > > the game itself which is turn-based strategy without a lot of whizbang > > stuff. In the past, the videos would stutter but the game would not > > suffer from more than short pauses now and then. > >Yes, herein lies one of those mysteries that still eludes me but I have been >investigating it. I can now reproduce in other applications what appears to >be the problem - Two cpu hogs, X and evolution for example are running and >evolution is making X the cpu hog. The problem is that X gets demoted whereas >evolution doesn't. Strangely, dropping evolution to nice +1 or making X -1 >seems to change which one gets demoted, and X is now much smoother. I assume >the same thing is happening here between wine and wineserver, which is why >you've seen reversal of priorities in your previous posts. See if renicing >one of them +1 helps for the time being. I will continue investigating to >find out why the heck this happens and try and fix it. > >Con > >P.S. I've cc'ed MG because he has seen the scheduler do other forms of >trickery and may have thoughts on why this happens. That sounds suspiciously similar to my scenario, but mine requires a third element to trigger. <scritch scritch scritch> What about this? In both your senario and mine, X is running low on cash while doing work at the request of a client right? Charge for it. If X is lower on cash than the guy he's working for, pick the client's pocket... take the remainder of your slice from his sleep_avg for your trouble. If you're not in_interrupt(), nothing's free. Similar to Robinhood, but you take from the rich, and keep it :) He's probably going straight to the bank after he wakes you anyway, so he likely won't even miss it. Instead of backboost of overflow, which can cause nasty problems, you could try backtheft. -Mike ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + 2.6.0-test3-mm1-O15 2003-08-12 18:24 ` Mike Galbraith @ 2003-08-12 18:44 ` Timothy Miller 2003-08-12 18:48 ` Mike Galbraith 2003-08-13 3:34 ` Con Kolivas 1 sibling, 1 reply; 20+ messages in thread From: Timothy Miller @ 2003-08-12 18:44 UTC (permalink / raw) To: Mike Galbraith; +Cc: Con Kolivas, gaxt, linux-kernel Mike Galbraith wrote: > > That sounds suspiciously similar to my scenario, but mine requires a > third element to trigger. > > <scritch scritch scritch> > > What about this? In both your senario and mine, X is running low on > cash while doing work at the request of a client right? Charge for it. > If X is lower on cash than the guy he's working for, pick the client's > pocket... take the remainder of your slice from his sleep_avg for your > trouble. If you're not in_interrupt(), nothing's free. Similar to > Robinhood, but you take from the rich, and keep it :) He's probably > going straight to the bank after he wakes you anyway, so he likely won't > even miss it. Instead of backboost of overflow, which can cause nasty > problems, you could try backtheft. How is this different from back-boost? ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + 2.6.0-test3-mm1-O15 2003-08-12 18:44 ` Timothy Miller @ 2003-08-12 18:48 ` Mike Galbraith 0 siblings, 0 replies; 20+ messages in thread From: Mike Galbraith @ 2003-08-12 18:48 UTC (permalink / raw) To: Timothy Miller; +Cc: Con Kolivas, gaxt, linux-kernel At 02:44 PM 8/12/2003 -0400, Timothy Miller wrote: >Mike Galbraith wrote: > >>That sounds suspiciously similar to my scenario, but mine requires a >>third element to trigger. >><scritch scritch scritch> >>What about this? In both your senario and mine, X is running low on cash >>while doing work at the request of a client right? Charge for it. >>If X is lower on cash than the guy he's working for, pick the client's >>pocket... take the remainder of your slice from his sleep_avg for your >>trouble. If you're not in_interrupt(), nothing's free. Similar to >>Robinhood, but you take from the rich, and keep it :) He's probably >>going straight to the bank after he wakes you anyway, so he likely won't >>even miss it. Instead of backboost of overflow, which can cause nasty >>problems, you could try backtheft. > > >How is this different from back-boost? With backboost, you take everything that overflows MAX_SLEEP_AVG and give it all to the waker... you always pull-up. With back-theft (blech;), there's constant pull-up and push-down for all parties instead of only those who reach MAX_SLEEP_AVG, so while you'll still tend to group tasks which are related (the original goal of backboost), it shouldn't (wild theory) go raging out of control. -Mike ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + 2.6.0-test3-mm1-O15 2003-08-12 18:24 ` Mike Galbraith 2003-08-12 18:44 ` Timothy Miller @ 2003-08-13 3:34 ` Con Kolivas 2003-08-13 12:47 ` Mike Galbraith 1 sibling, 1 reply; 20+ messages in thread From: Con Kolivas @ 2003-08-13 3:34 UTC (permalink / raw) To: Mike Galbraith; +Cc: gaxt, linux-kernel On Wed, 13 Aug 2003 04:24, Mike Galbraith wrote: > At 12:40 AM 8/13/2003 +1000, Con Kolivas wrote: > >On Wed, 13 Aug 2003 00:42, gaxt wrote: > > > Photoshop 6 (yes, legal owned version) in wine is flawless (as it was > > > with 2.6.0-test3) > > > > > > Galciv plays videos quite smoothly but as soon as I run it it will > > > freeze the cursor for 12-15 seconds every half-minute or so even within > > > the game itself which is turn-based strategy without a lot of whizbang > > > stuff. In the past, the videos would stutter but the game would not > > > suffer from more than short pauses now and then. > > > >Yes, herein lies one of those mysteries that still eludes me but I have > > been investigating it. I can now reproduce in other applications what > > appears to be the problem - Two cpu hogs, X and evolution for example are > > running and evolution is making X the cpu hog. The problem is that X gets > > demoted whereas evolution doesn't. Strangely, dropping evolution to nice > > +1 or making X -1 seems to change which one gets demoted, and X is now > > much smoother. I assume the same thing is happening here between wine and > > wineserver, which is why you've seen reversal of priorities in your > > previous posts. See if renicing one of them +1 helps for the time being. > > I will continue investigating to find out why the heck this happens and > > try and fix it. > > > >Con > > > >P.S. I've cc'ed MG because he has seen the scheduler do other forms of > >trickery and may have thoughts on why this happens. > > That sounds suspiciously similar to my scenario, but mine requires a third > element to trigger. > > <scritch scritch scritch> > > What about this? In both your senario and mine, X is running low on cash > while doing work at the request of a client right? Charge for it. If X is > lower on cash than the guy he's working for, pick the client's pocket... > take the remainder of your slice from his sleep_avg for your trouble. If > you're not in_interrupt(), nothing's free. Similar to Robinhood, but you > take from the rich, and keep it :) He's probably going straight to the > bank after he wakes you anyway, so he likely won't even miss it. Instead > of backboost of overflow, which can cause nasty problems, you could try > backtheft. Not a bad idea at all. The working for someone else thing is killing me. Now, how to implement... Con ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: WINE + Galciv + 2.6.0-test3-mm1-O15 2003-08-13 3:34 ` Con Kolivas @ 2003-08-13 12:47 ` Mike Galbraith 0 siblings, 0 replies; 20+ messages in thread From: Mike Galbraith @ 2003-08-13 12:47 UTC (permalink / raw) To: Con Kolivas; +Cc: gaxt, linux-kernel [-- Attachment #1: Type: text/plain, Size: 2726 bytes --] At 01:34 PM 8/13/2003 +1000, Con Kolivas wrote: >On Wed, 13 Aug 2003 04:24, Mike Galbraith wrote: > > At 12:40 AM 8/13/2003 +1000, Con Kolivas wrote: > > >On Wed, 13 Aug 2003 00:42, gaxt wrote: > > > > Photoshop 6 (yes, legal owned version) in wine is flawless (as it was > > > > with 2.6.0-test3) > > > > > > > > Galciv plays videos quite smoothly but as soon as I run it it will > > > > freeze the cursor for 12-15 seconds every half-minute or so even within > > > > the game itself which is turn-based strategy without a lot of whizbang > > > > stuff. In the past, the videos would stutter but the game would not > > > > suffer from more than short pauses now and then. > > > > > >Yes, herein lies one of those mysteries that still eludes me but I have > > > been investigating it. I can now reproduce in other applications what > > > appears to be the problem - Two cpu hogs, X and evolution for example are > > > running and evolution is making X the cpu hog. The problem is that X gets > > > demoted whereas evolution doesn't. Strangely, dropping evolution to nice > > > +1 or making X -1 seems to change which one gets demoted, and X is now > > > much smoother. I assume the same thing is happening here between wine and > > > wineserver, which is why you've seen reversal of priorities in your > > > previous posts. See if renicing one of them +1 helps for the time being. > > > I will continue investigating to find out why the heck this happens and > > > try and fix it. > > > > > >Con > > > > > >P.S. I've cc'ed MG because he has seen the scheduler do other forms of > > >trickery and may have thoughts on why this happens. > > > > That sounds suspiciously similar to my scenario, but mine requires a third > > element to trigger. > > > > <scritch scritch scritch> > > > > What about this? In both your senario and mine, X is running low on cash > > while doing work at the request of a client right? Charge for it. If X is > > lower on cash than the guy he's working for, pick the client's pocket... > > take the remainder of your slice from his sleep_avg for your trouble. If > > you're not in_interrupt(), nothing's free. Similar to Robinhood, but you > > take from the rich, and keep it :) He's probably going straight to the > > bank after he wakes you anyway, so he likely won't even miss it. Instead > > of backboost of overflow, which can cause nasty problems, you could try > > backtheft. > >Not a bad idea at all. The working for someone else thing is killing me. Now, >how to implement... I had to back up and regroup a bit because of backboost sanity problems (wish I could pull those dang fangs, backboost is wonderful otherwise), but the attached cured my inversion problem. -Mike [-- Attachment #2: xx.diff --] [-- Type: application/octet-stream, Size: 1400 bytes --] --- linux-2.6.0-test1.G8/kernel/sched.c.org Wed Aug 13 09:19:13 2003 +++ linux-2.6.0-test1.G8/kernel/sched.c Wed Aug 13 14:41:42 2003 @@ -358,6 +358,8 @@ if (sleep_time > 0) { unsigned long long sleep_avg; + unsigned long run_time = now - current->timestamp; + unsigned int slice = 1000000 * current->time_slice; /* * This code gives a bonus to interactive tasks. @@ -381,6 +383,22 @@ p->sleep_avg = sleep_avg; p->prio = effective_prio(p); } + /* + * If the awakened task has been asleep for longer than the + * waker has had the CPU plus round-robin time, and it is + * going to preempt, there is a good chance that the waker + * is not getting enough CPU to service the awakened task in + * a timely manner, and that this is the cause of the preempt. + * Take some of the resulting sleep_time from the awakened + * task, and give it to the waker. + */ + if (!in_interrupt() && p->mm && current->mm && sleep_avg > + current->sleep_avg + slice && sleep_time > run_time + + (1000000 * this_rq()->nr_running * TIMESLICE_GRANULARITY) && + TASK_PREEMPTS_CURR(p, task_rq(current))) { + current->sleep_avg += slice; + sleep_avg -= slice; + } } } @@ -1414,6 +1432,7 @@ next->timestamp = now; rq->nr_switches++; rq->curr = next; + next->timestamp = now; prepare_arch_switch(rq, next); prev = context_switch(rq, prev, next); ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2003-08-13 12:43 UTC | newest] Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2003-07-26 21:49 WINE + Galciv + Con Kolivar's 09 patch to 2.6.0-test1-mm2 gaxt 2003-07-27 2:05 ` Con Kolivas 2003-07-28 5:17 ` 260test2+O10int breaks : " gaxt 2003-07-28 21:40 ` gaxt 2003-07-28 21:39 ` Con Kolivas 2003-07-29 2:30 ` gaxt 2003-07-29 3:25 ` Con Kolivas 2003-07-29 12:48 ` WINE + Galciv + Con Kolivas's 011 patch to 2.6.0-test2 gaxt 2003-07-29 12:46 ` Con Kolivas 2003-07-29 20:59 ` gaxt 2003-07-29 21:09 ` gaxt 2003-07-29 21:13 ` gaxt 2003-08-08 20:04 ` 2.6.0-test2-mm5 + July Wine + Galciv gaxt 2003-08-12 14:42 ` WINE + Galciv + 2.6.0-test3-mm1-O15 gaxt 2003-08-12 14:40 ` Con Kolivas 2003-08-12 18:24 ` Mike Galbraith 2003-08-12 18:44 ` Timothy Miller 2003-08-12 18:48 ` Mike Galbraith 2003-08-13 3:34 ` Con Kolivas 2003-08-13 12:47 ` Mike Galbraith
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).