Hi Louis!
Solaris /usr/bin/find and Linux (GNU-) find work differently! I have
experienced dramatic runtime differences some time ago. The reason is
that Solaris find and GNU find use different algorithms.
GNU find uses the st_nlink ("number of links") field of the stat
structure to optimize it's work. Solaris find does not use this kind
of optimization because the meaning of "number of links" is not well
defined and file system dependent.
If you are interested, take a look at, say,
CR 4907267 link count problem is hsfs
CR 4462534 RFE: pcfs should emulate link counts for directories
Dirk
Am 17.06.2009 um 18:08 schrieb Louis Romero:
Jose,
I believe the problem is endemic to Solaris. I have run into
similar problems doing a simple find(1) in /etc. On Linux, a find
operation in /etc is almost instantaneous. On solaris, it has a
tendency to spin for a long time. I don't know what their use of
find might be but, running updatedb on the linux clients (with the
NFS file system mounted of course) and using locate(1) will give you
a work-around on the linux clients.
Caveat Empore: There is a staleness factor associated with this
solution as any new files dropped in after updatedb runs will not
show up until the next updatedb is run.
HTH
louis
On 06/16/09 11:55, Jose Martins wrote:
Hello experts,
IHAC that wants to put more than 250 Million files on a single
mountpoint (in a directory tree with no more than 100 files on each
directory).
He wants to share such filesystem by NFS and mount it through
many Linux Debian clients
We are proposing a 7410 Openstore appliance...
He is claiming that certain operations like find, even if taken from
the Linux clients on such NFS mountpoint take significant more
time than if such NFS share was provided by other NAS providers
like NetApp...
Can someone confirm if this is really a problem for ZFS
filesystems?...
Is there any way to tune it?...
We thank any input
Best regards
Jose
--
Sun Microsystems GmbH Dirk Nitschke
Nagelsweg 55 Storage Architect
20097 Hamburg Phone: +49-40-251523-413
Germany Fax: +49-40-251523-425
http://www.sun.de/ Mobile: +49-172-847 62 66
dirk.nitsc...@sun.com
-----------------------------------------------------------------------
Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
D-85551 Kirchheim-Heimstetten - Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Wolf Frenkel
Vorsitzender des Aufsichtsrates: Martin Haering
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss