PC重いな->答えはupdatedb

PCが重いなとtopコマンドを見てみると,nobodyユーザがfindしている.

psコマンドでfindをgrepしてみると,こんな感じだった.

$ ps aux | grep find
root      4547  0.0  0.0   1776   372 ?        SN   12:15   0:00 /usr/lib/find/frcode -0
root      4551  0.0  0.1   3248  1256 ?        SN   12:15   0:00 su nobody -s /bin/sh -c /usr/bin/find /       -type d \( -fstype nfs -o -fstype NFS -o -fstype nfs4 -o -fstype afs -o -fstype proc -o -fstype smbfs -o -fstype autofs -o -fstype iso9660 -o -fstype ncpfs -o -fstype coda -o -fstype devpts -o -fstype ftpfs -o -fstype devfs -o -fstype mfs -o -fstype sysfs -o -fstype shfs -o -fstype cifs -o -fstype 9P -o -regex '\(^/mnt$\)\|\(^/cdrom$\)\|\(^/tmp$\)\|\(^/usr/tmp$\)\|\(^/var/tmp$\)\|\(^/var/spool$\)\|\(^/proc$\)\|\(^/media$\)\|\(^/sys$\)' \) -prune      -o -print0
nobody    4552  1.6  0.1   2788  1352 ?        RN   12:15   0:07 /usr/bin/find / -type d ( -fstype nfs -o -fstype NFS -o -fstype nfs4 -o -fstype afs -o -fstype proc -o -fstype smbfs -o -fstype autofs -o -fstype iso9660 -o -fstype ncpfs -o -fstype coda -o -fstype devpts -o -fstype ftpfs -o -fstype devfs -o -fstype mfs -o -fstype sysfs -o -fstype shfs -o -fstype cifs -o -fstype 9P -o -regex \(^/mnt$\)\|\(^/cdrom$\)\|\(^/tmp$\)\|\(^/usr/tmp$\)\|\(^/var/tmp$\)\|\(^/var/spool$\)\|\(^/proc$\)\|\(^/media$\)\|\(^/sys$\) ) -prune -o -print0

自分以外には誰もこのPCにログインしていないのに,何かやっている.
これは何をしているんだろう.


追記:psで確認してみるとcronだった

また(別の日にも)やってた.

root      3230  0.0  0.1   2336   816 ?        Ss   12:04   0:00 /usr/sbin/cron
root      5524  0.0  0.1   2836  1016 ?        S    13:45   0:00  \_ /usr/sbin/cron
root      5525  0.0  0.1   2936  1172 ?        Ss   13:45   0:00      \_ /bin/sh -c  test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/
dev/null 2>&1
root      5526  0.0  0.1   2940  1316 ?        S    13:45   0:00          \_ /bin/bash /usr/lib/cron/run-crons
root      9241  0.0  0.1   2936  1236 ?        SN   13:46   0:00              \_ /bin/sh /etc/cron.daily/suse.de-updatedb
root      9249  0.0  0.1   2936  1292 ?        SN   13:46   0:00                  \_ /bin/sh /usr/bin/updatedb --localuser=nobody --prunepaths=/mn
t /cdrom /tmp /usr/tmp /var/tmp /var/spool /proc /media /sys
root      9269  0.0  0.0   2936   644 ?        SN   13:46   0:00                      \_ /bin/sh /usr/bin/updatedb --localuser=nobody --prunepaths
=/mnt /cdrom /tmp /usr/tmp /var/tmp /var/spool /proc /media /sys
root      9277  0.0  0.1   3248  1260 ?        SN   13:46   0:00                      |   \_ su nobody -s /bin/sh -c /usr/bin/find /       -type d
 \( -fstype nfs -o -fstype NFS -o -fstype nfs4 -o -fstype afs -o -fstype proc -o -fstype smbfs -o -fstype autofs -o -fstype iso9660 -o -fstype ncp
fs -o -fstype coda -o -fstype devpts -o -fstype ftpfs -o -fstype devfs -o -fstype mfs -o -fstype sysfs -o -fstype shfs -o -fstype cifs -o -fstype 
9P -o -regex '\(^/mnt$\)\|\(^/cdrom$\)\|\(^/tmp$\)\|\(^/usr/tmp$\)\|\(^/var/tmp$\)\|\(^/var/spool$\)\|\(^/proc$\)\|\(^/media$\)\|\(^/sys$\)' \) -p
rune      -o -print0
nobody    9278  2.3  0.1   2420  1160 ?        RN   13:46   0:03                      |       \_ /usr/bin/find / -type d ( -fstype nfs -o -fstype 
NFS -o -fstype nfs4 -o -fstype afs -o -fstype proc -o -fstype smbfs -o -fstype autofs -o -fstype iso9660 -o -fstype ncpfs -o -fstype coda -o -fsty
pe devpts -o -fstype ftpfs -o -fstype devfs -o -fstype mfs -o -fstype sysfs -o -fstype shfs -o -fstype cifs -o -fstype 9P -o -regex \(^/mnt$\)\|\(
^/cdrom$\)\|\(^/tmp$\)\|\(^/usr/tmp$\)\|\(^/var/tmp$\)\|\(^/var/spool$\)\|\(^/proc$\)\|\(^/media$\)\|\(^/sys$\) ) -prune -o -print0
root      9272  0.0  1.3  27580 10264 ?        SN   13:46   0:00                      \_ /usr/bin/sort -z -f
root      9273  0.0  0.0   1776   372 ?        SN   13:46   0:00                      \_ /usr/lib/find/frcode -0

ああ,updatedbか.なるほど.