Xorg CPU hog?

Questions about applications and software
Forum rules
Before you post please read this

Xorg CPU hog?

Postby Sanjima on Sat Oct 24, 2009 8:33 pm

http://img148.imageshack.us/img148/330/wtfxorg.png

Would anyone by chance know why Xorg is taking so many CPU cycles? It didn't start doing it 'till kind of recently.
Watch your words spread Hope like Fire.
User avatar
Sanjima
Level 3
Level 3
 
Posts: 104
Joined: Tue Jul 21, 2009 1:40 pm

Linux Mint is funded by ads and donations.
 

Re: Xorg CPU hog?

Postby lagagnon on Sat Oct 24, 2009 8:38 pm

Basically you do not have enough RAM for the fancy graphical desktop you are attempting to run there. If you look at your top output you can see you have maxed out RAM and are already using a considerable amount of swap memory. I am amazed you can stand it - your machine must be chugging along rather slowly. I suggest you either: 1) pony up and buy some more RAM or, 2) turn off all the fancy graphical eye-candy.
User avatar
lagagnon
Level 7
Level 7
 
Posts: 1888
Joined: Wed Jun 17, 2009 7:38 pm
Location: an island in the Pacific...

Re: Xorg CPU hog?

Postby Sanjima on Sat Oct 24, 2009 8:43 pm

My machine is actually running quite smoothly, save for the stolen CPU cycles by Xorg. If I turn off the on-demand CPU frequency scaling, it uses about 9% on my 1.5GHz mobile intel processor. I realize I don't have much ram, but I'm not exactly bursting with cash either. All I want to know is why Xorg is hogging my processor so much.

Also, I'm barely using 15MB of swap memory. How is that a "considerable amount"?

edit: Never mind. I turned off gnome compositing and turned compiz back on, and now it's fine and running smooth again. I thought I'd try the compositing instead of compiz thinking it would be lighter on my system but that was a bit of a joke. Thanks for the help.
Watch your words spread Hope like Fire.
User avatar
Sanjima
Level 3
Level 3
 
Posts: 104
Joined: Tue Jul 21, 2009 1:40 pm

Re: Xorg CPU hog?

Postby lagagnon on Sat Oct 24, 2009 8:52 pm

Sanjima wrote:All I want to know is why Xorg is hogging my processor so much.
Also, I'm barely using 15MB of swap memory. How is that a "considerable amount"?


Any time you start using swap you basically do not have enough RAM in your system for what you are attempting to do. I suspect Xorg is swapping on you because of all the fancy stuff on your desktop, and thus using more CPU cycles to do so....

RAM is cheaper than it has ever been in history - you can buy 1GB chips for $25 on sale these days....
User avatar
lagagnon
Level 7
Level 7
 
Posts: 1888
Joined: Wed Jun 17, 2009 7:38 pm
Location: an island in the Pacific...

Re: Xorg CPU hog?

Postby Sanjima on Sat Oct 24, 2009 8:56 pm

A 1GB stick of ram for my particular laptop is $18 from Newegg, regular price. I still don't have money for it though, I have more important things to do.

Also, I disagree with what you said about when the system starts using swap. My desktop computer has 1GB of ram and usually never goes above 40%, and yet I -still- found the swap being used on occasion, about 15MB of it just like my laptop. In response I turned the swap function off entirely, as it got a bit annoying. And I haven't had a problem since.

On my laptop, I have vm.swappiness set to 10, and that seems to work just fine. It rarely tends to swap, and using the swap does not use more CPU cycles. It only takes longer for things to load that are in the swap. That's all.

edit: Also, all of my fancy graphical eye-candy uses less than 10MB of ram collectively. I don't think turning that off will make much of a difference.
Watch your words spread Hope like Fire.
User avatar
Sanjima
Level 3
Level 3
 
Posts: 104
Joined: Tue Jul 21, 2009 1:40 pm


Return to Software & Applications

Who is online

Users browsing this forum: iru and 14 guests