Bugzilla – Bug 333296
updatedb generates a lot of network traffic
Last modified: 2016-04-15 09:05:06 UTC
The updatedb script run by cron generates a lot of network traffic. It also seems to mount all home directories in /suse.
Maybe this is due to the now visible directories in automounted directories. E.g. df does not report a filesystem type: /suse> df . -T Filesystem Type 1M-blocks Used Available Use% Mounted on - - 0 0 0 - /suse So I guess find does not know that the subdirectories are nfs based and has to look into each one.
The problem is that automount does not create an entry in /etc/mtab, so df has no way to find out the filesystem (and therefore type) of the mount point.
Yes, autofs does not write to /etc/mtab anymore. This has been announced and documented: /usr/share/doc/packages/autofs/README.v5.release: - `autofs' filesystem mounts only appear in /proc/mounts and not /etc/mtab. So I don't want to change this. statfs(2) will deliver f_type=0x0187 for autofs, so it is possible to detect an autofs filesystem without parsing /etc/mtab. df seems to do a statfs anyway (according to strace), so why does it not use this information?
Since the automount directory is missing from the list of mounted directories, there is no way to find out. Only entries in /etc/mtab matter.
*** Bug 368708 has been marked as a duplicate of this bug. ***
Nothing I can do here, as avoiding the autofs mount in /etc/mtab is intented by upstream. From Ian Kent: "The foremost reason is because version 5 uses lots of mounts as triggers, for direct mounts and for the lazy mount/expire of trees of mounts (aka the multi-mounts and the hosts map). If they were added to the mtab this would lead to considerable confusion. And if you've used a system that does add these to the mtab (such as old versions of AIX) and your map had, even just a few hundred direct mounts, you would understand how annoying it is. ... Finally there's the issue of scanning the mtab which I need to do fairly often when checking if something is mounted. A few hundred entries isn't that bad but the number of entries can order in the thousands for quite a few users which leads to performance problems." You will have to exclude the /suse directory from the updatedb configuration or disable browsable maps by setting DEFAULT_BROWSE_MODE="no" in /ect/sysconfig/autofs.
*** Bug 395391 has been marked as a duplicate of this bug. ***
*** Bug 129339 has been marked as a duplicate of this bug. ***
Augment locate/suse scripts to use /proc/mounts then, or check for the fs magic.
*** Bug 441676 has been marked as a duplicate of this bug. ***
still there with 11.3 Factory, and still annoying as it slurps network bandwith and fills the local disk. Philipp, you own it now, perhaps you want to address it.
find in factory has been changed to use /proc/mounts and updatedb to ignore unknown fs types.
Only to point it out: bug 591460 is the corresponding SLE bug. It also contains a detailed description of what was wrong.
This is an autogenerated message for OBS integration: This bug (333296) was mentioned in https://build.opensuse.org/request/show/39383 11.2 / findutils