LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-22-2003, 04:38 AM   #1
Jestrik
Member
 
Registered: Dec 2003
Location: Hampshire, UK
Distribution: gentoo, Debian Sarge, Slack 9.1
Posts: 206

Rep: Reputation: 30
CPU on 100% usage after sleep...


I woke up this morning and linux came out of its sleepy thingy and then i noticed that the CPU was on 100% ALL the time. So i took a look in the processes list and gnome was at around 30-60% all the time and using around 200MB of my ram!! so was another program but can't remember what it was called and also control center was using around 10-20% CPU time, whilst using around 70MB. I couldn't understand this because it's as if they were working whilst I was asleep......on what? Also, i looked at the more info bit and it said that these prgrams were 'sleeping'....were they sleep processing or something b/c i thought they would just be cached and on 0% time? I did take a screenshot but it was tooo dog slow that I just rebooted.

What's it doing?
Cheers
 
Old 12-22-2003, 06:24 AM   #2
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
Probably executing 'updatedb', it's a cron job...
 
Old 12-22-2003, 06:29 AM   #3
Jestrik
Member
 
Registered: Dec 2003
Location: Hampshire, UK
Distribution: gentoo, Debian Sarge, Slack 9.1
Posts: 206

Original Poster
Rep: Reputation: 30
What's that mean?
 
Old 12-22-2003, 06:38 AM   #4
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
Well there's a daemon(service) named 'cron' (or vcron or crond...) which executes tasks on a schedule(everyday or everymonth or at 6am of 24/12/03).
Well, 'slocate' is one of it's entries by default, and it executes 'updatedb' which updates your 'locate' database.
And this takes up alot of ressources(executing 'updatedb' I mean).

Last edited by lokee; 12-22-2003 at 06:40 AM.
 
Old 12-22-2003, 08:59 AM   #5
Jestrik
Member
 
Registered: Dec 2003
Location: Hampshire, UK
Distribution: gentoo, Debian Sarge, Slack 9.1
Posts: 206

Original Poster
Rep: Reputation: 30
ahh, i understand, i woke up at around 11ish (lazy b*stard, i know... but i've just broken up from school )Could it have been doing this foru around 5 hours? Also, what is the locate database?
Thanks
 
Old 12-22-2003, 09:04 AM   #6
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
The locate database contains the list of all files on the system, it's used by 'locate' to find files:
Code:
locate /usr "ki" #find all files that containt 'ki' in the directory /usr
 
Old 12-22-2003, 09:10 AM   #7
Jestrik
Member
 
Registered: Dec 2003
Location: Hampshire, UK
Distribution: gentoo, Debian Sarge, Slack 9.1
Posts: 206

Original Poster
Rep: Reputation: 30
I'm sorry to keep asking questions but why would you want to update the database containing all the files on the system? So it has some sort of backup, make it faster?
 
Old 12-22-2003, 09:15 AM   #8
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
No, it isn't a backup because it doesn't contain the data of the files, it's a list(sort of) of the files(name with location, ex: /bin/bash), not the files themselves:
searching the list is faster than searching through the entire system.

Last edited by lokee; 12-22-2003 at 09:17 AM.
 
Old 12-22-2003, 09:18 AM   #9
Jestrik
Member
 
Registered: Dec 2003
Location: Hampshire, UK
Distribution: gentoo, Debian Sarge, Slack 9.1
Posts: 206

Original Poster
Rep: Reputation: 30
oooooh, so it's kinda similar to xp where you can enable that indexed search thingy majig? I understand now, cheers
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CPU Usage goes to 100% when pthread_cond_wait is being used zen_buddha Linux - Software 4 10-19-2005 04:28 PM
Hotwayd - 100% CPU Usage Hoaxbe Linux - Software 2 10-03-2005 05:18 PM
BZFlag 100% CPU Usage pjpeter Linux - Games 5 10-10-2004 08:48 PM
CPU usage 100% ecsfan Red Hat 17 11-19-2003 03:06 PM
100 % CPU usage ???? rolandi Linux - Newbie 1 10-07-2003 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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