I am running a fresh install of Jaunty. The updatedb.mlocate process is running all the time. It never stops unless I reboot (which I prefer not to do for months).
I would like to not have updatedb.mlocate running all the time. It could run nightly if it finishes in an hour or less. Otherwise, I will run it weekly (assuming it finishes in a reasonable time).
I have a 150 GB Raptor HDD, and all my main directories under /home are on an NFS mount (see info below). I have several other mounted file systems and they are mounted in different places (to make the path on my machine match the path on the server so symlinks work correctly).
The content of my /etc/updatedb.conf are:
The contents of my /etc/cron.daily/mlocate are:Code:PRUNE_BIND_MOUNTS="yes" # PRUNENAMES=".git .bzr .hg .svn" PRUNEPATHS="/tmp /var/spool /media" PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 ncpf$
examples of my mounted file systems are:Code:#! /bin/bash set -e [ -x /usr/bin/updatedb.mlocate ] || exit 0 if which on_ac_power >/dev/null 2>&1; then AC_POWER=0 on_ac_power >/dev/null 2>&1 || AC_POWER=$? if [ "$AC_POWER" -eq 1 ]; then echo >&2 "On battery power, not running today." exit 1 fi fi ## LOCKFILE="/var/lib/mlocate/daily.lock" trap "rm -f $LOCKFILE" EXIT if [ -e "$LOCKFILE" ]; then echo >&2 "Warning: $LOCKFILE present, not running today." exit 1 else touch "$LOCKFILE" fi ## # See ionice(1) if [ -x /usr/bin/ionice ] && /usr/bin/ionice -c3 true 2>/dev/null; then IONICE="/usr/bin/ionice -c3" fi $IONICE /usr/bin/updatedb.mlocate
Here is a typical entry from /etc/fstab:Code:/backups /shared /home/myuser/Documents /home/myuser/Pictures /home/myuser/Music
This is what iotop usually shows:Code:10.10.1.1:/home/myuser/Documents /home/myuser/Documents nfs auto,rw,rsize=8192,wsize=8192,hard,intr 0 0
I appreciate any suggestions on how to stop mlocate from running all the time.Code:Total DISK READ: 0 B/s | Total DISK WRITE: 38.69 K/s PID USER DISK READ DISK WRITE SWAPIN IO< COMMAND 27877 root 0 B/s 38.69 K/s 0.00 % 0.00 % updatedb.mlocate



Adv Reply

Bookmarks