I'm trying to debug or narrow down the cause of an issue and I'm looking for some thoughts on where to look. Here's the symptoms and what I've found thus far:
Since upgrading from Mageia 3 to 4 on my laptop (Thinkpad X230, 2x2core Intel i7 2.9GHz CPUs, 16GB RAM, intel X11 driver), I've had two issues that required a reboot. Upon further investigation after the second reboot, I found that /etc/X11/X (i.e. Xorg) was using 11.9GB VIRT and 9.2GB RES (or 59.3%) of memory as per htop after an uptime of 2 days. Also, a large amount of the 4GB of swap was being used which it's never done before (other than when I knowingly taxed the system). I thought that a bit high (to say the least) with what I thought was not a lot of X11 apps running. Also, and don't laugh too hard, but I still use twm as my window manager with no display manager (i.e. the system boots to a console login, I log in and run startx).
At first, I thought the culprit might have been Virtualbox and the three VM's I usually run but as it turned out, the culprit was Google Chrome. Though I usually have two Chrome windows open, each with around 20 tabs, it hasn't really changed since I upgraded from Mageia 3 which I had been using since it came out.
Basically, when I run Chrome, I can just sit there and watch the memory usage on /etc/X11/X slowly rise. I ran a few tests and the memory usage goes up on average 175MB per hour. The longest I let it run in these tests was 6 hours and X's memory usage went up by over a gigabyte before I stopped it. After I stopped it, X's memory usage stopped rising but did not really go down. The only other items running were 5 Xterms and a VM running Windows XP (1GB of RAM allocated to it).
I then copied the entire .config/google-chrome directory, plopped it on my desktop (2x4core AMD 2.3GHz CPU, 64GB RAM, nouveau X11 driver) which is still running Mageia 3 (with all the latest updates) and ran Chrome for 90 minutes. /etc/X11/X usage rose in that time but only about 65MB. I also have a LOT of X11 apps running on my desktop including 5 VM's.
I'm trying to work out any issues before upgrading my desktop to Mageia 4 so any thoughts on what I should check would be awesome.
Even though Chrome is the catalyst, I'm still leaning towards a memory leak with X and I'd like to gather more information (and, probably more importantly, see if anyone else has seen a similar issue) before.
For reference:
- Code: Select all
laptop$ rpm -qf /usr/bin/Xorg
x11-server-xorg-1.14.5-2.mga4
desktop$ rpm -qf /usr/bin/Xorg
x11-server-xorg-1.13.4-2.3.mga3
Thanks!
-Jeff