<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>Just an idea:</span></div><div><br><span></span></div><div><span>Check the CPU temperatures.  Some people have reported problems with ACPI fan control to point that it causes CPU overheating.  The internal temperature sensor then reduces the clock speed to prevent damage.  I've never heard of it causing this much trouble however - mostly lag when watching videos etc.</span></div><div><br><span></span></div><div><span>Sorry I don't have any specifics, but it might be worth eliminating this as a potential problem before you go reading all that code  ;-)</span></div><div><br><span></span></div><div><span>Chris<br></span></div><div><br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Arial"
 size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Robert Massaioli <robertmassaioli@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> xorg@freedesktop.org<br><b><span style="font-weight: bold;">Sent:</span></b> Tuesday, 6 September 2011 10:46 AM<br><b><span style="font-weight: bold;">Subject:</span></b> High /usr/bin/X CPU Usage<br></font><br><meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv1316267766">Hi XOrg Mailing List,<br><br>In a nutshell: I am having issues with /usr/bin/X taking up way too much CPU and, when it does start to use more CPU, my entire user experience becomes quite laggy. I have tried really hard to solve the problem on my own but I was unable to find a solution so I have finally decided that it is time for me to ask this mailing list for help. That is the fundamental problem, the rest of this post deals with how it happens, what I am running and what I have already
 tried. I could use any help I can get so thank you for reading.<br>

<br>This link points to a screenshot of htop running showing the constant high 40-60% CPU usage that /usr/bin/X now sits at: <a rel="nofollow" target="_blank" href="http://i.imgur.com/mRIzG.png">http://i.imgur.com/mRIzG.png</a><br><br>My computer is quite powerful and should easily be able to handle any load that any part of linux can throw at it. I have a Quad Core i2500k CPU, an NVIDIA 560 Ti Graphics Card and 8GB RAM, so no hardware bottlenecks thats for sure (and my Windows Partition runs like a breeze; which proves that the hardware seems to be solid). However, with that in mind this is what happens:<br>

<ol><li>Start computer, everything is working fine, /usr/bin/X is behaving normally. I can play and watch videos with no lag at all.<br></li><li>Wait some undefined period of time and just work on stuff (I don't actually know how to reliably reproduce the problem but it does happen every single time I use my linux partition).</li>

<li>Watch one of my CPU's spike to an average of 50% and keyboard responsiveness drop to the point where I can notice the lag in response time. Video playback also becomes impossibly slow at this point.</li></ol>I would not have thought that the keyboard would be an issue but it is lagging so I have a Razer Acosta keyboard if that helps.<br>

<br>In short, I have no idea what is causing the problem, on the software side I am running:<br><br>$ uname -a<br>Linux ShhnapDesk 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux<br>

$ cat /etc/lsb-release<br>DISTRIB_ID=Ubuntu<br>DISTRIB_RELEASE=11.04<br>DISTRIB_CODENAME=natty<br>DISTRIB_DESCRIPTION="Ubuntu 11.04"<br>$ xmonad --version<br>xmonad 0.9.2<br><br>My window manager is XMonad as you can see from above and I am also running XMobar (0.13) through that. I have tried:<br>

<ul><li>Asking for help elsewhere: <a rel="nofollow" target="_blank" href="http://superuser.com/questions/328612/linux-x11-is-using-up-50-of-one-of-my-cpus-and-lagging-terribly">http://superuser.com/questions/328612/linux-x11-is-using-up-50-of-one-of-my-cpus-and-lagging-terribly</a></li>

<li>Uninstalling Flash because I read that it might be the problem.</li><li>Using Firefox instead of Google Chrome (I found that chrome had some X issues in the past)</li><li>Closing every single X program (bar XMonad) to see if /usr/bin/X would start behaving again.<br>

</li></ul>But none of those troubleshooting attempts worked out for me.<br><br>I do not know what else to do other than read through the entire codebase of X and try and reverse engineer where my problem lies. If anybody has any suggestions then please make them and any extra information that you happen to require I will be more than happy to provide. This problem is significantly hindering my Linux joy and I love Linux. I use it for everything and have done so for the last three years.<br>

<br>Thanks in advance for any and all help,<br>Robert<br>
</div><meta http-equiv="x-dns-prefetch-control" content="on"><br>_______________________________________________<br><a ymailto="mailto:xorg@lists.freedesktop.org" href="mailto:xorg@lists.freedesktop.org">xorg@lists.freedesktop.org</a>: X.Org support<br>Archives: <a href="http://lists.freedesktop.org/archives/xorg" target="_blank">http://lists.freedesktop.org/archives/xorg</a><br>Info: <a href="http://lists.freedesktop.org/mailman/listinfo/xorg" target="_blank">http://lists.freedesktop.org/mailman/listinfo/xorg</a><br>Your subscription address: <a ymailto="mailto:fabricator4@yahoo.com" href="mailto:fabricator4@yahoo.com">fabricator4@yahoo.com</a><br><br></div></div></div></body></html>