LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-17-2007, 12:36 PM   #1
mike_morley
Member
 
Registered: Aug 2006
Location: Nottingham
Distribution: Fedora
Posts: 86

Rep: Reputation: 15
CPU running at 100% usage while no applications are running


I know their are things running in the background but nothing is showing as using excessive CPU usage via the PS command.

Also there is 0.35kB/s download and 0.44kB/s upload network usage whilst no network applications are running (that I know of).

How can I find out what is eating up my CPU usage?

Could I have been hacked? If so how do I find out for sure?
 
Old 05-17-2007, 12:44 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Have you tried running "top"? If you're a gnome user then Applications->System Tools->System Monitor->Processes->CPU Time may be helpful.
 
Old 05-17-2007, 12:51 PM   #3
mike_morley
Member
 
Registered: Aug 2006
Location: Nottingham
Distribution: Fedora
Posts: 86

Original Poster
Rep: Reputation: 15
X is running at 80 - 90% CPU with user root
 
Old 05-17-2007, 01:03 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
I don't know much (nothing really) about Fedora. On my Etch machine, Xorg takes up less than 3% of the CPU, so 80-90% sounds like an awful lot. But, are you running an old Pentium 133 with an embedded video processor that uses motherboard memory and some sort of active background? We'll need to see what the apples are to make sure we don't compare them to oranges.
 
Old 05-17-2007, 01:42 PM   #5
PocketSam
LQ Newbie
 
Registered: Jan 2007
Location: Russia - Novosibirsk
Distribution: Arch
Posts: 13

Rep: Reputation: 0
A bit off topic question:
Is it safe to use X under root? I've heard about a few incidents when working with X as root had crashed the system. Can't remember what exactly happened, but a man advised to give up using X uned root login.
 
Old 05-17-2007, 01:48 PM   #6
mike_morley
Member
 
Registered: Aug 2006
Location: Nottingham
Distribution: Fedora
Posts: 86

Original Poster
Rep: Reputation: 15
I am running a AMD Athlon 64 Processor 3500+ with 2.5GB Ram, 256MB Nividia Gfx card.

Also as a P.S. Regarding PocketSam's comment.... I agree... It seems unnecessary and rather.... Unwise to run X as root.

Last edited by mike_morley; 05-17-2007 at 01:53 PM.
 
Old 05-17-2007, 01:51 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Well, I guess it's not an overloaded machine, then. Are you using the Fedora driver for the nvidia card, or are you using the nvidia.com driver? Other than that, I don't think I have any suggestions for you.
 
Old 05-17-2007, 02:00 PM   #8
mike_morley
Member
 
Registered: Aug 2006
Location: Nottingham
Distribution: Fedora
Posts: 86

Original Poster
Rep: Reputation: 15
I'm using the drivers that came with FC5... I take it I should try and find the appropriate drivers for my GFX card from Nividia.

This however still wouldn't explain why it is taking the best part of my CPU time. I am sure it didn't use to.
 
Old 05-17-2007, 02:23 PM   #9
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
Hi,

Can you check if ACPI is enabled and throttling your processor? Try changing power modes to "Dynamic" or "Powersave", and see if it throttles down.

Sam
 
Old 05-17-2007, 02:29 PM   #10
mike_morley
Member
 
Registered: Aug 2006
Location: Nottingham
Distribution: Fedora
Posts: 86

Original Poster
Rep: Reputation: 15
how do I do that?
 
Old 05-17-2007, 03:15 PM   #11
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
Sorry, I really don't know how to do it in Fedora. Maybe someone who knows Fedora or acpi check commands could be a better help.

You could try and see if there's a power manager icon in your system tray, and try right clicking on it.

Sam
 
Old 05-17-2007, 03:30 PM   #12
mike_morley
Member
 
Registered: Aug 2006
Location: Nottingham
Distribution: Fedora
Posts: 86

Original Poster
Rep: Reputation: 15
Cheers for the pointer samstar.

I got the following under Laptop Power management... It should be noted that this isn't a Laptop...

Your computer seems to have a partial ACPI installation. ACPI was probably enabled, but some of the sub-options were not - you need to enable at least 'AC Adaptor' and 'Control Method Battery' and then rebuild your kernel.
 
Old 05-17-2007, 04:02 PM   #13
wantamad
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Rep: Reputation: 0
check if your swap space is turned on.
 
Old 05-17-2007, 08:52 PM   #14
mike_morley
Member
 
Registered: Aug 2006
Location: Nottingham
Distribution: Fedora
Posts: 86

Original Poster
Rep: Reputation: 15
erm... yeah it is but I have yet to use it
 
Old 05-17-2007, 09:39 PM   #15
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by PocketSam
A bit off topic question:
Is it safe to use X under root? I've heard about a few incidents when working with X as root had crashed the system. Can't remember what exactly happened, but a man advised to give up using X uned root login.
The X server itself generally requires special privileges to access the graphics card and open other devices (at least under the intel architecture). The executable itself is generally suid root on many systems. This is different from logging in as root, and different from allowing root access to the X server through xhost.
 
  


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
How to check memory usage on running process/applications rickylim Linux - General 17 05-08-2013 09:09 PM
Server aburptly stops running High CPU usage PERL script after about 5 hours bpmee Linux - Server 3 05-18-2007 11:24 AM
High CPU usage on FreeBSD 5.4 with nothing special running adz *BSD 24 06-24-2005 08:51 PM
Red Alert running slow in Wine, uses 100% CPU tomas412 Linux - Games 2 06-17-2005 02:07 AM
redhat 8 running slow - CPU usage 100% jonnycarlos Linux - General 4 09-10-2003 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:47 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