Thursday 24 May 2007
Performance Observation
I'm running Tp2 page load tests on a Linux box --- a real dual-core machine, not a VM. Interesting observations:
- Firefox uses 40% of one processor
- X11 uses 60% of one processor
- One processor is basically idle
I don't know why we're spending so much time in the X server. These are old pages and they're fairly simple. Maybe we're not using cairo well, or cairo isn't using X well.
I also wonder why we aren't using two processors more effectively here. Firefox should be able to overlap with X. They must be waiting on each other for some reason.
I'm tempted to go off on a rant here about how X has sucked for so long and continues to suck in spite of all promises to the contrary. But I won't.
Comments
Maybe I'm not looking hard enough but most users seem to like X these days. I'm not sufficiently well informed to have a strong opinion, but I'd like to hear yours.
https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/104481
http://ubuntuforums.org/showthread.php?t=443799
I think it would be more productive if you posted this information (and more, like an oprofile report) to the cairo and/or xorg lists. Frankly, I don't see anything constructive that can come out of ranting about performance to an audience that is unlikely to help you resolve your problem. Let's resume this conversation on the lists (I'm active on both lists).
About your assertion of what the "fundamental problem" is regarding X, I have a different view.
As one that has read many, many system-wide performance profiles of applications that use the X server in various environments (e.g. desktop, embedded devices), I can say that the fact that drawing is done in a separate process is rarely the cause of poor performance.
I'd be happy to go on, but as I said, this isn't the most productive place to carry on discussions of this nature.
Thank you for all the wonderful work you're doing at Mozilla. I'm a very big fan of yours.