[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-multimedia
Subject:    Re: [PATCH] artsd periodic cpu usage check
From:       Martin Vogt <mvogt () rhrk ! uni-kl ! de>
Date:       2000-09-05 15:30:50
[Download RAW message or body]

On Mon, Sep 04, 2000 at 10:28:52AM +0200, Stefan Westerfeld wrote:
>    Hi!
> 
> This patch adresses this issue by periodically (setitimer()) self-checking
> the CPU usage of the artsd process (clocks()), and if it is over 90% for
> more than 15 seconds, terminating artsd (exit()). I think with this patch
> applied, running artsd all the time with realtime rights on some millions
> of KDE desktops shouldn't lead to a single freeze.
>

But it can lead to an exit(1) when you dont like it either.
If the user plays a divx movie (with the divxplugin) the cpu will have
a 100% load all the time. (At least on high resolutions
on not so fast cpus.)

The sync routine skips most of the images (every thrid frame for example)
But the user can still watch the movie with this.
And artsd will exist.
For mp3 playback the realtime priority is ok.

==> the realtime checking does not work in all cases.

Maybe this is the real bugfix:
-------------------------------
Subject:  klipper solution - sort of
From:     Carsten Pfeiffer <carpdjih@cetus.zrz.TU-Berlin.DE>
Date:     2000-09-02 13:38:38

Hi,

Lars just said on irc that the klipper CPU problem probably won't get fixed
before Qt 2.2.1. So we have two solutions:
- disable klipper
- hack qclipboard_x11.cpp and insert a usleep() into the offending loop (and
  adding the hacked version to klipper) The attached patch does this, and
  it works pretty nicely. E.g. Konqueror loads large pages faster and aRts
  doesn't have dropoupts all the time when moving windows.


There was a patch attached to this posting, maybe we should apply
it. (Maybe Stefan should apply it) .
I at least does not even know for what klipper is used for,
so I wont touch the patch.

Martin
 
 
> So I'd like to apply it if there are no objections. Perhaps we can also
> make the realtime setting the default after a period of testing.
> 
>    Cu... Stefan
> -- 
_______________________________________________
Kde-multimedia mailing list
Kde-multimedia@master.kde.org
http://master.kde.org/mailman/listinfo/kde-multimedia

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic