From: Cydrome Leader on
E. Braun <waps(a)tantalus.jena.thur.de> wrote:
> Hello,
>
> "zfs create" gets slow, if the number of fily systems is increasing:
>
> # time zfs create zpool01/test01/test
> real 0m10.627s
> user 0m3.098s
> sys 0m0.346s
> # wc -l /etc/mnttab
> 1931 /etc/mnttab
>
> (same happens on "zfs destroy")
>
> When the table of mounted file systems has ~4000 entries, the real time
> grows up to one minute, which seems to much to me.
> When 'truss'ing the process, it shows, that the file /etc/nfssec.conf is
> opened very often. The number of then open system call is approximately
> the double of entries in /etc/mnttab.
>
> Is there a way to speedup the "zfs create"?
>
> Thank you,

surprise, having thousands of filesystems per system is just stupid as
you've discovered.