Joep Vesseur wrote:
All,

I was wondering why "zfs destroy -r" is so excruciatingly slow compared to
parallel destroys.

< SNIP>
while a little handy-work with

  # time for i in `zfs list | awk '/blub2\\// {print $1}'` ;\
           do ( zfs destroy $i & ) ; done

yields

  real    0m8.191s
  user    0m6.037s
  sys     0m16.096s

An 38.8 time improvement (at the cost of some extra CPU load)

Why is there so much overhead in the sequential case? Or have I oversimplified
the issues at hand with this simple test?

One reason is that you're not timing how long it takes for the destroy's to complete. You're only timing how long it takes to start all the jobs in the background.

 -Kyle

Joep
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to