LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-09-2005, 05:51 PM   #1
Fahrion
LQ Newbie
 
Registered: Nov 2004
Location: CA
Distribution: Knoppix and Kanotix (Debian)
Posts: 6

Rep: Reputation: 0
X Process: Occasional High CPU Load


Okay, this problem has me completely stumped:

Occasionally, my entire system would seem to lag, and the mouse, keyboard, and other running programs would seem to pause and unpause every half-second or so. Running "top" reveals that the X process, which is usually at under 10% CPU usage, jumps to 30%-40% usage, and stays that way. I've tried comparing "ps -A" outputs before and during a high CPU load period, but there are no new or exited processes, and the only difference seems to be in the X CPU usage.

This problem almost always occurs while I'm using Firefox and visiting something image-intensive, which made me suspect at first that it was a Firefox problem, although I've later had it happen in Konqueror, and at least once when I wasn't using a web browser at all. For example, if I try visiting maps.google.com and scroll the view, the problem will invariably occur. Closing the offending program will usually cause X to go back to normal. Minimizing the program will also occasionally solve the problem, as is switching desktops. However, if I try to restore the Firefox/Konqueror window, the problem resurfaces after a while.

I then suspected that it might be an Internet-related problem, as it commonly occurs when I'm using Firefox, and it never happens with Konqueror if I use it in file-browsing mode, but there is no suspicious network activity, and as I've stated before, I've had it happen at least once when I was not using either web browser.

I'm currently running Kanotix, which is Debian unstable with a 2.6.9 kernel. I am using a "non-intrusive" X.org 6.8.2 installation described here: blogs.vislab.usyd.edu.au/index.php/Steve/2004/09/09/installing_a_non_intrusive_x This problem did not occur immediately after I started using the X.org server, so that does not seem to be the issue. This problem has only started recently, possibly after I uninstalled some Debian packages that I wasn't using, although none of them (to the best of my memory) related to X. I can't remember the exact list of packages I removed anymore, anyway. The computer I'm using is a Thinkpad T42 with an ATI Radeon Mobility, and X.org is using the "radeon" driver.

I'd appreciate any help or suggestions that you can come up with.
 
Old 07-10-2005, 04:38 AM   #2
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
This vaguely sounds like a problem I had. Mind you I had it with FreeBSD but some of the symptoms sound similar. Check out this thread for a description of my problem and the solution that was arrived at. Essentially, just disabling ACPI solved it.
 
Old 07-10-2005, 05:10 PM   #3
Fahrion
LQ Newbie
 
Registered: Nov 2004
Location: CA
Distribution: Knoppix and Kanotix (Debian)
Posts: 6

Original Poster
Rep: Reputation: 0
You know, I did come across your thread while searching for answers, but I haven't touched acpi settings since I installed Linux on this laptop; furthermore, I really don't want to resort to disabling ACPI since this is a laptop, and I don't want my battery life to suddenly go down the drain. I've also seen many pages recommending ACPI over APM for my particular laptop, and none of them seem to report similar problems. But thanks for the suggestion, and maybe I'll try it out just to see what happens.

I also found another thread somewhere recommending disabling the Composite extension in X.org; however, that didn't seem to work either. I'm not entirely sure whether I did disable it successfully. What I did was put in

Section "Extensions"
Option "Composite" "Disable"
EndSection

inside xorg.conf. However, /var/log/Xorg.0.log still says that it's still being loaded (it says "(II) Initializing built-in extension COMPOSITE"). Note that the Extensions section was not in xorg.conf before I modified it, so maybe the extension wasn't even taking effect at all. Changing "Disable" to "Enable" doesn't do anything either.
 
Old 07-11-2005, 04:06 AM   #4
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Quote:
I really don't want to resort to disabling ACPI since this is a laptop
Just try disabling it to see what happens. If things improve then it gives you a clue as to what's wrong. If it is ACPI then it's probably a kernel problem so an upgrade and/or compile may be on the cards.
Quote:
I also found another thread somewhere recommending disabling the Composite extension in X.org; however, that didn't seem to work either. I'm not entirely sure whether I did disable it successfully.
Put the command xdpyinfo | grep Composite and see what you get. If you get nothing, it's disabled. If you get something then it's running.

Last edited by adz; 07-11-2005 at 04:22 AM.
 
Old 07-11-2005, 06:41 PM   #5
Fahrion
LQ Newbie
 
Registered: Nov 2004
Location: CA
Distribution: Knoppix and Kanotix (Debian)
Posts: 6

Original Poster
Rep: Reputation: 0
Disabled ACPI: Nope, problem still occurs. I didn't quite realize how how much my system was set up to use ACPI until half a million kernel modules failed to load and cpufreqd stopped scaling, which was expected, but also my (beloved) Trackpoint stopped working as well. Odd.

Composite: Made sure that it was disabled, but still no change. I've now re-enabled it again.

I also tried a different tactic, which was switching back to XFree86 rather than X.org (which, thanks to the non-intrusive X.org installation, involves only changing a single symlink). So far, the problem SEEMS to have stopped; I'll try using XFree for a while to see what happens. If this is the case, then the problem probably lies in some recent change that was done to my X.org configuration.
 
Old 07-16-2005, 03:05 PM   #6
Fahrion
LQ Newbie
 
Registered: Nov 2004
Location: CA
Distribution: Knoppix and Kanotix (Debian)
Posts: 6

Original Poster
Rep: Reputation: 0
Okay, I think I've finally gotten the problem to a manageable situation. Debian has just added X.org to sarge (Yay!), and so I decided to try out the Debian packages. This immediately caused the following things:

- The problem with the mysterious CPU loads seems to have stopped. I'd still like to know why Debian X.org doesn't have this problem, but my compiled X.org does (and why it didn't initially have this problem)
- I conveniently forgot to un-symlink my non-intrusive X.org installation that I compiled from scratch, so the X.org packages rewrote it. Damn, but oh well.
- A problem that I had with XFree86, which was that the music from amaroK would skip every time I resized/moved/switched windows or tried to open up the K menu or submenu that had a lot of items in it. This happens even if the KDE Sound System is set to realtime priority and buffering is set to max. DMA is already enabled (a common solution I found on the forums for this kind of problem) and my system is reasonably fast.

Seems that you can't win 'em all.

Now, the sound skipping problem REALLY irritates me, and was what caused me to switch from XFree86 to X.org in the first place. Now because that did not occur with X.org that I compiled, I know it's possible for X.org to behave right, and I'd welcome any possible answers to this bizzare behavior.

However, I've got the sound to not skip with the following steps: I switched amaroK's sound engine to GStreamer instead of aRts. Now window switching doesn't cause skips. I then found out that menu translucency was causing a high CPU spike with opening the K menu, and for some reason setting the menu translucency from XRender to Software Blend solves the problem.
 
Old 07-16-2005, 06:47 PM   #7
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Yeah transparency is a little dodgy at the moment. Very CPU intensive.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dm-crypt and high cpu load(pdflush) tazdevil77 Slackware 2 12-25-2004 02:03 PM
High load - but CPU 99% idle? Boss Hoss Linux - Hardware 6 05-24-2004 04:39 AM
High idle cpu load in 2.6.4? geekzen Linux - General 4 04-10-2004 11:54 AM
Why am I getting ?high? CPU load? pnh73 Linux - General 15 10-21-2003 10:36 AM
Help! very high CPU load by squid cash_05 Linux - Networking 0 10-08-2003 07:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration