Linux - GeneralThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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).
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
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.