Fixing devPrivates

Adam Jackson ajax at nwnk.net
Mon May 3 07:50:37 PDT 2010


On Sat, 2010-05-01 at 01:58 -0700, Keith Packard wrote:

> I promised to get some actual numbers. I did before/after comparisons
> with three different X server states:
> 
>  1) X server at the root weave
>  2) Gnome session started
>  3) Gnome session running with iceweasel showing lwn.net's home page
> 
> With the old implementation:
> 
>          bytes:   blocks:
> Startup: 10516    33 
> Gnome:   178776   582
> lwn.net: 377492   1131
> 
> And with the new implementation:
> 
>          bytes:  blocks:
> Startup: 1220    35
> Gnome:   20992   754
> lwn.net: 31312   1529
> 
> So, I'm getting somewhere around a 90% raw space savings. It's better
> than that though -- each of the blocks in the old implementation
> represents at least one additional allocated block of memory, any
> pre-requested private storage would be another allocated block of
> memory. With the new implementation, there are precisely 2 additional
> allocations. That's all.

To be clear: "blocks" here are "devPrivates hanging off some object" and
"bytes" are "number of bytes in those blocks" ?

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100503/a54a004d/attachment.pgp>


More information about the xorg-devel mailing list