[Bug 137764] Re: Firefox caches pixmaps to X11, need feature to disable
Marc Tardif
marc.tardif at canonical.com
Wed Oct 10 21:06:44 UTC 2007
By caching pixmaps to X11, it is possible that Xorg might crash the
system or render it unusable. This occured in an LTSP context and the
workaround was to add the following lines to the script calling startx.
This essentially sets a ulimit on Xorg to about 80% of the memory:
X_RAMPERC=${X_RAMPERC:-100}
if [ ${X_RAMPERC} -lt 100 ]; then
XMEM=0
while read TYPE VALUE UNITS; do
case ${TYPE} in
MemFree:|SwapFree:)
XMEM=$((${XMEM} + ${VALUE}))
;;
esac
done < /proc/meminfo
XMEM=$((${XMEM} * ${X_RAMPERC} / 100))
ulimit -m ${XMEM}
fi
Please note this is only a workaround and might not be appropriate in
every context. However, I thought it might be useful to share this
knowledge.
--
Firefox caches pixmaps to X11, need feature to disable
https://bugs.launchpad.net/bugs/137764
You received this bug notification because you are a member of Mozilla
Bugs, which is the bug contact for Mozilla Firefox.
More information about the Ubuntu-mozillateam-bugs
mailing list