Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

What is an Updatedb process

Discussion in 'General Discussion' started by achieverzain, May 18, 2010.

  1. achieverzain

    achieverzain Registered

    May 18, 2010
    Likes Received:
    Trophy Points:

    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.

  2. DomineauX

    DomineauX Well-Known Member PartnerNOC

    Apr 12, 2003
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    That would be the daily cron to update the locate database:


    From the Man page (command: man updatedb):
    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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Spiral

    Spiral BANNED

    Jun 24, 2005
    Likes Received:
    Trophy Points:
    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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice