2003-07-26 21:23:36

by gaxt

[permalink] [raw]
Subject: WINE + Galciv + Con Kolivar's 09 patch to 2.6.0-test1-mm2

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.


2003-07-27 01:46:37

by Con Kolivas

[permalink] [raw]
Subject: Re: WINE + Galciv + Con Kolivar's 09 patch to 2.6.0-test1-mm2

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

2003-07-28 04:51:08

by gaxt

[permalink] [raw]
Subject: 260test2+O10int breaks : Re: WINE + Galciv + Con Kolivar's 09 patch to 2.6.0-test1-mm2

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
>
>


2003-07-28 21:31:27

by gaxt

[permalink] [raw]
Subject: Re: WINE + Galciv + Con Kolivar's 09 patch to 2.6.0-test1-mm2

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???

2003-07-28 21:34:49

by Con Kolivas

[permalink] [raw]
Subject: Re: WINE + Galciv + Con Kolivar's 09 patch to 2.6.0-test1-mm2

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

2003-07-29 02:18:56

by gaxt

[permalink] [raw]
Subject: Re: WINE + Galciv + Con Kolivar's 09 patch to 2.6.0-test1-mm2

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

2003-07-29 03:20:52

by Con Kolivas

[permalink] [raw]
Subject: Re: WINE + Galciv + Con Kolivar's 09 patch to 2.6.0-test1-mm2

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

2003-07-29 12:42:18

by Con Kolivas

[permalink] [raw]
Subject: Re: WINE + Galciv + Con Kolivas's 011 patch to 2.6.0-test2

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

2003-07-29 12:37:26

by gaxt

[permalink] [raw]
Subject: Re: WINE + Galciv + Con Kolivas's 011 patch to 2.6.0-test2

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
>
>


2003-07-29 20:48:25

by gaxt

[permalink] [raw]
Subject: Re: WINE + Galciv + Con Kolivas's 011 patch to 2.6.0-test2

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?

2003-07-29 20:58:28

by gaxt

[permalink] [raw]
Subject: Re: WINE + Galciv + Con Kolivas's 011 patch to 2.6.0-test2

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?
>


2003-07-29 21:02:01

by gaxt

[permalink] [raw]
Subject: Re: WINE + Galciv + Con Kolivas's 011 patch to 2.6.0-test2

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?
>>
>
>


2003-08-08 19:52:09

by gaxt

[permalink] [raw]
Subject: 2.6.0-test2-mm5 + July Wine + Galciv

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?


2003-08-12 14:28:38

by gaxt

[permalink] [raw]
Subject: Re: WINE + Galciv + 2.6.0-test3-mm1-O15

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.

2003-08-12 14:35:18

by Con Kolivas

[permalink] [raw]
Subject: Re: WINE + Galciv + 2.6.0-test3-mm1-O15

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.

2003-08-12 18:20:32

by Mike Galbraith

[permalink] [raw]
Subject: Re: WINE + Galciv + 2.6.0-test3-mm1-O15

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

2003-08-13 03:29:21

by Con Kolivas

[permalink] [raw]
Subject: Re: WINE + Galciv + 2.6.0-test3-mm1-O15

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

2003-08-13 12:43:49

by Mike Galbraith

[permalink] [raw]
Subject: Re: WINE + Galciv + 2.6.0-test3-mm1-O15

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


Attachments:
xx.diff (1.37 kB)