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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-22-2003, 04:38 AM
|
#1
|
|
Member
Registered: Dec 2003
Location: Hampshire, UK
Distribution: gentoo, Debian Sarge, Slack 9.1
Posts: 206
Rep:
|
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
|
|
|
|
12-22-2003, 06:24 AM
|
#2
|
|
Member
Registered: Feb 2003
Distribution: Gentoo
Posts: 381
Rep:
|
Probably executing 'updatedb', it's a cron job...
|
|
|
|
12-22-2003, 06:29 AM
|
#3
|
|
Member
Registered: Dec 2003
Location: Hampshire, UK
Distribution: gentoo, Debian Sarge, Slack 9.1
Posts: 206
Original Poster
Rep:
|
What's that mean? 
|
|
|
|
12-22-2003, 06:38 AM
|
#4
|
|
Member
Registered: Feb 2003
Distribution: Gentoo
Posts: 381
Rep:
|
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.
|
|
|
|
12-22-2003, 08:59 AM
|
#5
|
|
Member
Registered: Dec 2003
Location: Hampshire, UK
Distribution: gentoo, Debian Sarge, Slack 9.1
Posts: 206
Original Poster
Rep:
|
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
|
|
|
|
12-22-2003, 09:04 AM
|
#6
|
|
Member
Registered: Feb 2003
Distribution: Gentoo
Posts: 381
Rep:
|
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
|
|
|
|
12-22-2003, 09:10 AM
|
#7
|
|
Member
Registered: Dec 2003
Location: Hampshire, UK
Distribution: gentoo, Debian Sarge, Slack 9.1
Posts: 206
Original Poster
Rep:
|
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?
|
|
|
|
12-22-2003, 09:15 AM
|
#8
|
|
Member
Registered: Feb 2003
Distribution: Gentoo
Posts: 381
Rep:
|
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.
|
|
|
|
12-22-2003, 09:18 AM
|
#9
|
|
Member
Registered: Dec 2003
Location: Hampshire, UK
Distribution: gentoo, Debian Sarge, Slack 9.1
Posts: 206
Original Poster
Rep:
|
oooooh, so it's kinda similar to xp where you can enable that indexed search thingy majig? I understand now, cheers 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:50 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|