LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-23-2018, 12:37 PM   #1
halfpower
Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 241

Rep: Reputation: 31
Question High CPU usage from Xorg


Periodically, htop shows that the command

Code:
/usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root:0 -nolisten tcp vt7 -novtswitch
is using about 92% of one virtual core. It does this after starting up, and then it does it periodically while running. Aside from eating up resources, using XCFE shortcut keys is very slow (the command is delayed by minutes).

I'm using Intel's integrated graphics adapter. I noticed that the directory /usr/share/X11/xorg.conf.d/ contains the file 10-amdgpu.conf. Also, running cat /usr/share/X11/xorg.conf.d/10-amdgpu.conf outputs this:

Code:
Section "OutputClass"
	Identifier "AMDgpu"
	MatchDriver "amdgpu"
	Driver "amdgpu"
This might well be unrelated, but it looks strange to me as I have no AMD GPU.

Does anyone know how this problem might be resolved?
 
Old 05-23-2018, 08:08 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Is there any pattern to what you are doing at the time the CPU usage spikes, such as watching/editing video, etc.?

Regarding the /usr/share/X11/xorg.conf.d/10-amdgpu.conf output, I get the same on this here Zareason machine all-Intel inside machine running Slackware. I suspect the "amd" refers, not to the video card, but to the 64-bit architecture, which is commonly referred to as "amd" in Linux world.
 
Old 05-29-2018, 11:37 AM   #3
halfpower
Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 241

Original Poster
Rep: Reputation: 31
It happens after I boot and login. I'm not aware of any other pattern. Searching for "xorg lightdm high cpu usage" returns a lot results, but no promising leads.
 
Old 10-19-2018, 07:08 AM   #4
Ganth
LQ Newbie
 
Registered: Oct 2018
Location: Somewhere in Europe
Distribution: Debian, man ;)
Posts: 2

Rep: Reputation: Disabled
Hey, I actually have exactly the same problem on Debian Stretch stable, after I changed a few things on my system : One core fully used for about 2 minutes on every login (after sleep, hibernate, even login in other tty) by Xorg with this line in htop :

Code:
Xorg :0 -seat seat0 -auth /var/run/lightdm/root:0 -nolisten tcp vt7 -novtswitch
And during this time, xfce shortcuts are very slow/not working, but only the keyboard applications shortcuts, not the window manager keyboard shortcuts (which is strange, since they are in the same file if I recall well, but in different menus in the settings).

I started a list of all the stuff I did before it started happening, but I did do a lot of things and am not sure exactly when this started.
If you're interested, we can share and cross check our personnal settings to try and find out where it comes from.

I'll post later on some more info about what I did that could have led to this
 
Old 01-10-2019, 07:39 AM   #5
anon272
LQ Newbie
 
Registered: Jan 2019
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by Ganth View Post
Hey, I actually have exactly the same problem on Debian Stretch stable, after I changed a few things on my system : One core fully used for about 2 minutes on every login (after sleep, hibernate, even login in other tty) by Xorg with this line in htop :

Code:
Xorg :0 -seat seat0 -auth /var/run/lightdm/root:0 -nolisten tcp vt7 -novtswitch
And during this time, xfce shortcuts are very slow/not working, but only the keyboard applications shortcuts, not the window manager keyboard shortcuts (which is strange, since they are in the same file if I recall well, but in different menus in the settings).

I started a list of all the stuff I did before it started happening, but I did do a lot of things and am not sure exactly when this started.
If you're interested, we can share and cross check our personnal settings to try and find out where it comes from.

I'll post later on some more info about what I did that could have led to this
I've the same problem with application shortcuts when resuming session from locked screen. Same process keeps 1 CPU 90-100% for 5 minutes.

Did you fixed your problem?
 
Old 01-10-2019, 11:00 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Ganth View Post
Hey, I actually have exactly the same problem on Debian Stretch stable, after I changed a few things on my system : One core fully used for about 2 minutes on every login (after sleep, hibernate, even login in other tty) by Xorg with this line in htop :

Code:
Xorg :0 -seat seat0 -auth /var/run/lightdm/root:0 -nolisten tcp vt7 -novtswitch
And during this time, xfce shortcuts are very slow/not working, but only the keyboard applications shortcuts, not the window manager keyboard shortcuts (which is strange, since they are in the same file if I recall well, but in different menus in the settings).

I started a list of all the stuff I did before it started happening, but I did do a lot of things and am not sure exactly when this started.
If you're interested, we can share and cross check our personnal settings to try and find out where it comes from.

I'll post later on some more info about what I did that could have led to this
Quote:
Originally Posted by peledzius View Post
I've the same problem with application shortcuts when resuming session from locked screen. Same process keeps 1 CPU 90-100% for 5 minutes.

Did you fixed your problem?
i'll concede that high cpu usage by Xorg is tricky and difficult to troubleshoot (because usually other applications are responsible for it; i think it's a graphics thing).
but this is not "the same problem".
also, OP never fully analysed their own problem.
right now i don't know how to do that either; if i was you i'd start with a search.
 
1 members found this post helpful.
Old 01-16-2019, 08:13 AM   #7
Ganth
LQ Newbie
 
Registered: Oct 2018
Location: Somewhere in Europe
Distribution: Debian, man ;)
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by peledzius View Post
I've the same problem with application shortcuts when resuming session from locked screen. Same process keeps 1 CPU 90-100% for 5 minutes.

Did you fixed your problem?
Hi! Well, actually, no, as my computer fried at Christmas (it was a W520 ; I know, this shouldn't happen). So I never will be able to try to solve it or update, sorry.
What died was the graphics actually, as soon as anything graphic started it froze and only a manual power-button hard reboot was possible (and I know about the Nvidia/optimus mess, I could handle it well, it wasn't this and anyway it's off topic).
But maybe my Xorg problems where symptoms of this ?

Quote:
Originally Posted by ondoho View Post
i'll concede that high cpu usage by Xorg is tricky and difficult to troubleshoot (because usually other applications are responsible for it; i think it's a graphics thing).
but this is not "the same problem".
also, OP never fully analysed their own problem.
right now i don't know how to do that either; if i was you i'd start with a search.
Ok, thanks for the info, I hadn't realized this. In my case, my problem precisely was that I had no logs that seemed to hint to the problem, nor in journalctl, dmesg or the Xorg log. This would have surely required much more digging/thread opening and I hadn't found the time... (and usually I manage to find something, thus my (maybe totally wrong) supposition that it could be linked to my upcoming hardware failure).
Anyway, well... good luck to anybody else trying to fix a similar problem!
 
  


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
High Xorg CPU usage, Slow Graphics Performance, On Cedarview D2550 NM Chipset10 k84834 Linux - General 7 05-19-2014 06:50 AM
[SOLVED] High CPU load, but low CPU usage (high idle CPU) baffy Linux - Newbie 5 03-13-2013 09:24 AM
Xorg high cpu usage system/video not running smoothly twon Linux - General 5 02-20-2011 05:58 PM
High CPU usage running Xorg t.j.sorrow SUSE / openSUSE 1 05-20-2007 09:33 AM
High Xorg CPU usage in Ubuntu ImpactDNI Linux - Software 1 10-21-2006 10:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:51 PM.

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