Here are the results :
The data-set
Code:
zfs list
NAME USED AVAIL REFER MOUNTPOINT
rock 4.36T 988G 4.07T /mnt/rock
rock/others 279G 988G 275G /mnt/rock/others
rock/syslog 341K 988G 192K /mnt/rock/syslog
Two equally size folders (cp -r X x1 ; cp -r X x2)
Code:
[root@nbx /mnt/rock/Serials]# du -sh x1
3.4G x1
[root@nbx /mnt/rock/Serials]# du -sh x2
3.4G x2
Move x1 to parent (same set)
Code:
time mv x1 ../
real 0m0.043s
user 0m0.037s
sys 0m0.004s
Move x2 to data-set others
Code:
time mv x2 /mnt/rock/others/
real 0m39.179s
user 0m0.185s
sys 0m10.736s
The same tests repeated in csh as the output is different
Code:
time mv x1 ../
0.111u 0.007s 0:03.33 3.3% 16+180k 1+0io 0pf+0w
time mv x2 /mnt/rock/others/
0.127u 11.018s 0:40.89 27.2% 21+1507k 266+21io 12pf+0w
I am not familiar with the output of the time command under csh and if someone can point me in the right direction I'll appreciate it. Looks like it also give io and system process information. (man time doesn't tell me much!)
However the bottom-line is:
In the amount of time you have spent looking for 'the fastest solution', you could have already copied everything over...
No argument with that
