[PATCH] EXA: Defragment offscreen memory.

Michel Dänzer michel at daenzer.net
Tue Feb 17 08:28:11 PST 2009


On Sat, 2009-02-14 at 19:03 +0100, Michel Dänzer wrote:
> On Sat, 2009-02-14 at 09:01 -0800, Keith Packard wrote:
> > On Sat, 2009-02-14 at 14:28 +0100, Michel Dänzer wrote:
> > 
> > > * The server is going idle.
> > 
> > The server calls the block handler every 20ms, not just when it is truly
> > idle. If this operation is expensive, you may want to hack up the block
> > and wakeup handlers to pend this until the server actually ended up
> > sleeping.
> 
> How can I tell that?

Does your silence mean it isn't possible? Did you mean actually doing
the work in the WakeupHandler? I'm not sure it makes sense to wait for
the server going idle, but then only do the work when it has other
things to do again...

> It shouldn't be too expensive usually and will only actually run at
> most once per second anyway, [...]

Given this (and that 'Nix' hasn't complained about the BlockHandler
overhead :), I'd suggest trying this, and if people complain about weird
delays every second, we can reduce the frequency further or even remove
the BlockHandler defragmentation run altogether. Sounds good?


-- 
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer


More information about the xorg-devel mailing list