LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 02-01-2014, 11:18 AM   #1
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,490

Rep: Reputation: Disabled
X constantly at >20% cpu usage


Hi,

On a slackware64 14.1 desktop top shows that X constantly uses 20%+ of the cpu even when the computer is mostly idle. I have seen that this problem has been linked in the past to the nouveau driver or to Terminal, but I am using the proprietary NVIDIA driver and the same behavior is exhibited in eg. xterm, konsole, etc.

Does anyone have any other ideas of what to do about this.

Thanks,
Brian

PS. inactive libreoffice also seems to constantly use nearly 10% of the CPU, but I can close libreoffice, I can't really close X
 
Old 02-01-2014, 12:52 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 2,336

Rep: Reputation: 594Reputation: 594Reputation: 594Reputation: 594Reputation: 594Reputation: 594
It may depend on how you are determining it is using 10%...

IF you are running top in the desktop... yes, it will be using 10%, after all, it has to update the display...

IF you are running top in a console terminal, check to see what you have running - a screen saver can easily cause X to use up that much, as can firefox/chrome that may have something active.

Even something as simple as a clock display will cause X to be active.
 
Old 02-04-2014, 10:58 AM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,490

Original Poster
Rep: Reputation: Disabled
It seems that firefox was the culprit. So in addition to high cpu usage for the firefox process itself and the dreaded plugin-container processes, but it also drives high usage for the X process? Looks like time to look into alternatives. Is chrome better for that?

Brian
 
Old 02-04-2014, 11:11 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 2,336

Rep: Reputation: 594Reputation: 594Reputation: 594Reputation: 594Reputation: 594Reputation: 594
It depends on what the plugin is doing.

What I found was that the )&*(& advertisements are all video/flash based, and the flash player filled the X server with activity... Even when the windows are unmapped, the X server is still given the data... which has to be discarded as the window is unmapped.

And it didn't matter what browser is in use. I use firefox... my wife prefers chrome, yet when her login display is unmapped, chrome is still busy passing data to the flash player, then to the X server...

The I think the flash player just ignores proper X handling (it should know it is unmapped, and then to not bother the X server until it gets a mapped event).

Last edited by jpollard; 02-04-2014 at 11:14 AM.
 
Old 02-04-2014, 11:23 AM   #5
Shadowmeph
Member
 
Registered: May 2008
Location: West Coast Canada
Posts: 258

Rep: Reputation: 28
Yes firefox uses allot of rersouces especially the plugins
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] CPU constantly 50% also pcmanfm constantly respawning. linuxpicaxe Linux - Software 2 09-11-2012 05:45 PM
Constantly high CPU usage - RHEL4 andka16 Linux - Enterprise 28 10-30-2008 01:24 PM
Memory usage constantly increasing reverse Debian 1 11-11-2007 04:15 AM
CPU usage constantly at 100% due to application-browser and gnome-panel Perps Suse/Novell 1 05-14-2007 11:55 AM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 05:45 AM


All times are GMT -5. The time now is 11:59 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration