Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    2

    Question What is an Updatedb process

    Hi,

    Can any one explain me better about why the update db process in the server is increasing the load to a great extent where is the PU resource usage was not found great for that process. Was searching for it for a long time still unable to find something more helpful.

    Thanks.

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2003
    Location
    Houston, TX
    Posts
    378
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    That would be the daily cron to update the locate database:

    /etc/cron.daily/mlocate.cron


    From the Man page (command: man updatedb):
    ---------
    DESCRIPTION
    updatedb creates or updates a database used by locate(1). If the database already exists, its data is reused to avoid rereading directories that have not changed.
    updatedb is usually run daily by cron(8) to update the default database.
    ---------

  3. #3
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    DomineauX covered it pretty good but just to expand upon that ....

    Updatedb is part of 'mlocate' which is simply an indexing system to keep a database listing all the files on your server that you can do searches from using the 'locate' command at the shell.

    It it much faster to use 'locate' than 'find' to locate files because 'locate' uses the index database last built by updatedb while 'find' searches the live file system looking for the files you are searching.

    The loads during updatedb running because of it building the database but should have very limited impact to your server other than really negligible and marginally higher load numbers while running. If it is impacting your server more than that then I suspect that you don't have enough memory to really be running Cpanel or your server has far too many accounts loaded on it --- on or the other most likely.

    The 'updatedb' is run daily from /etc/cron.daily/mlocate.cron and is controlled by the configuration settings in /etc/updatedb.conf

Similar Threads & Tags
Similar threads

  1. /usr/bin/updatedb issues
    By xuser in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-22-2010, 11:02 AM
  2. updatedb causing high load every morning
    By Metro2 in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 10-20-2006, 02:56 AM
  3. /usr/bin/updatedb -f "nfs,smbfs,........
    By kernow in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-15-2006, 04:15 AM
  4. updatedb, can I disable it?
    By VIPsNET in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 08-26-2004, 06:50 PM
  5. Time when /usr/bin/updatedb runs?
    By dendis in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 06-23-2004, 11:28 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube