[Ilugc] One Day One Command (LOCATE)

  • From: binand@xxxxxxxxx (Binand Sethumadhavan)
  • Date: Mon Mar 28 19:01:17 2005

On Mon, 28 Mar 2005 18:55:01 +0530, Suresh Ramasubramanian
<linux@xxxxxxxxxxxxxxxx> wrote:

Bharathi Subramanian wrote:
locate -- Quick search for files

first thing i usually do when setting up a production box is to disable
the updatedb cronjob :)

it is either that or have your servers slow to a crawl and see their
disks thrash around early in the morning

Does it?

[root@snape root]# cp /dev/null /var/lib/slocate/slocate.db
[root@snape root]# time /etc/cron.daily/slocate.cron

real    0m1.084s
user    0m0.440s
sys     0m0.630s

Doesn't seem all that intensive to me.

Binand

Other related posts: