*** Chandrashekhar B wrote: > >*** Thomas Reinke wrote: > >> Michael Meyer wrote: > >> > > >> > In my tests i saw, that the first find takes some time while all > >> > following finds are very fast. But on a VERY large file system, the > >> > first find may still running during the next find is started and so > on... > >> > > >> > >> We used a slightly older version of version_func.inc, but I think from > >> what we saw, the culprit was descending through nfs mounted file > >> systems that were of substantial size. It was thrashing nfsd severely. > > > There is an option to add '-xdev' to find which should prevent find to > descend into other filesystems. Default of "Descend directories on other > filesystem >(don't add -xdev to find)" is at the moment "yes". > > >It it possible that you test again (against the host with that VERY large > filesystem) with the updated version_func.inc and/or with "Descend > directories on >other filesystem (don't add -xdev to find)" set to "no"? > > >I'm thinking about changing the default of "Descend directories on..." > >to "no". > > +1 for changing to "no"
I'm not sure anymore. This could cause some problems if e.g. /usr is mounted on an other filesystem. We would miss all under /usr then. My last idea was to change the find call to the following: find / -maxdepth 7 -mindepth 1 \( -fstype nfs -o -fstype nfs4 -o -fstype NFS -o -fstype proc -o -fstype afs -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 -fstype unknown \) -o \( -path "*/proc" -o -path "/dev" -o -path "/sys" -o -path "/media" -o -path "/tmp" -o -path "/var" \) -prune -o -name <search> -a \( -type f -o -type l \) -print 2>/dev/null What do you think. You (SecPod) are using this function most i guess. ;) Micha -- Michael Meyer OpenPGP Key: 52A6EFA6 http://www.greenbone.net/ Greenbone Networks GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 202460 Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner _______________________________________________ Openvas-plugins mailing list [email protected] http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-plugins
