Fix Compiz memory leak on Ubuntu Jaunty Jackalope 9.04 with Intel graphic cards
There's a memory leak in Compiz when you are using UXA mode for Intel graphic cards driver. After a few hours, Compiz eats all available memory and the system crash.
To prevent this you must change some Compiz startup options :
Open a console and type
sudo vim /usr/bin/compiz
Round line 74 replace the line ...
COMPIZ_OPTIONS="--ignore-desktop-hints --replace"
... by this one
COMPIZ_OPTIONS="--replace --sm-disable --ignore-desktop-hints ccp --indirect-rendering"
This will fix Compiz memory leak, but there seams to be a problem about rendering transparent windows when intirect rendering is activated.
I didn't notice this problem on my configuration. I followed tutorial in ticket Drastically improve Intel graphics performance under Ubuntu Jackalope 9.04 before, this might help... or not.
For further informations you can read this bug report, especially comment 17.
Drastically improve Intel graphics performance under Ubuntu Jackalope 9.04
The new Ubuntu Jackalope 9.04 has some performance issues with the EXA acceleration method of Intel graphic cards due to actual Kernel. This causes poor 2D performance (eg in Compiz).
There is no available fixes atm in Ubuntu Jackalope repositories but you can update to kernel 2.6.30.3 and configure your Intel graphic device following instructions on this page : HOWTO: Jaunty Intel Graphics Performance Guide.
I used "Optimal configuration" on a Dell Vostro 220s and noticed a drastic performance improvement, especially in Compiz (even in normal mode).