Advertisement
Guest User

rsyncrm

a guest
Mar 28th, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.62 KB | None | 0 0
  1. # mkdir testrm
  2. # mkdir testrsync
  3. # touch testrm/{1..100000}
  4. # touch testrsync/{1..100000}
  5.  
  6. # time strace -c rsync -a --delete empty/ testrsync/ 2>&1
  7. % time     seconds  usecs/call     calls    errors syscall
  8. ------ ----------- ----------- --------- --------- ----------------
  9. 100.00    0.000017           3         5         3 wait4
  10.   0.00    0.000000           0        15           read
  11.   0.00    0.000000           0         6           write
  12.   0.00    0.000000           0        11         3 open
  13.   0.00    0.000000           0        10           close
  14.   0.00    0.000000           0         1         1 stat
  15.   0.00    0.000000           0         7           fstat
  16.   0.00    0.000000           0         1           lstat
  17.   0.00    0.000000           0        20           mmap
  18.   0.00    0.000000           0        10           mprotect
  19.   0.00    0.000000           0         2           munmap
  20.   0.00    0.000000           0         3           brk
  21.   0.00    0.000000           0        10           rt_sigaction
  22.   0.00    0.000000           0         1           rt_sigprocmask
  23.   0.00    0.000000           0         1         1 rt_sigreturn
  24.   0.00    0.000000           0         6         6 access
  25.   0.00    0.000000           0        19         1 select
  26.   0.00    0.000000           0         2           socketpair
  27.   0.00    0.000000           0         1           clone
  28.   0.00    0.000000           0         1           execve
  29.   0.00    0.000000           0        11           fcntl
  30.   0.00    0.000000           0         2           getdents
  31.   0.00    0.000000           0         1           getcwd
  32.   0.00    0.000000           0         1           chdir
  33.   0.00    0.000000           0         1           umask
  34.   0.00    0.000000           0         6           gettimeofday
  35.   0.00    0.000000           0         1           geteuid
  36.   0.00    0.000000           0         1           arch_prctl
  37.   0.00    0.000000           0         2           time
  38. ------ ----------- ----------- --------- --------- ----------------
  39. 100.00    0.000017                   158        15 total
  40.  
  41. real    0m1.548s
  42. user    0m0.148s
  43. sys 0m1.196s
  44.  
  45. # time strace -c rm -rf testrm 2>&1
  46. % time     seconds  usecs/call     calls    errors syscall
  47. ------ ----------- ----------- --------- --------- ----------------
  48.  64.01    0.017063           0    100001           unlinkat
  49.  20.99    0.005595          58        97           getdents
  50.  15.00    0.004000          18       218           brk
  51.   0.00    0.000000           0         2           read
  52.   0.00    0.000000           0         4           open
  53.   0.00    0.000000           0         9           close
  54.   0.00    0.000000           0         5           fstat
  55.   0.00    0.000000           0         1           lstat
  56.   0.00    0.000000           0         1         1 lseek
  57.   0.00    0.000000           0        12           mmap
  58.   0.00    0.000000           0         4           mprotect
  59.   0.00    0.000000           0         4           munmap
  60.   0.00    0.000000           0         1           ioctl
  61.   0.00    0.000000           0         3         3 access
  62.   0.00    0.000000           0         1           execve
  63.   0.00    0.000000           0         7           fcntl
  64.   0.00    0.000000           0         1           fstatfs
  65.   0.00    0.000000           0         1           arch_prctl
  66.   0.00    0.000000           0         1           openat
  67.   0.00    0.000000           0         1           newfstatat
  68. ------ ----------- ----------- --------- --------- ----------------
  69. 100.00    0.026658                100374         4 total
  70.  
  71. real    0m6.724s
  72. user    0m0.756s
  73. sys 0m4.688s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement