[PATCH] D27295: Remove existing file in a separate thread asynchronously.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 1 09:28:55 PST 2016


ruiu added a comment.

What is your kernel and how did you create your file? Removing an 1.6 GB link result always takes about 2.5 seconds for me.

  $ /ssd/rel/bin/ld.lld @response -o /ssd/out
  
  $ ls -l /ssd/out
  -rwxr-x--- 1 ruiu eng 1624892488 Dec  1 09:25 /ssd/out
  
  $ strace -c rm /ssd/out
  % time     seconds  usecs/call     calls    errors syscall
  ------ ----------- ----------- --------- --------- ----------------
   99.96    0.260674      260674         1           unlinkat
    0.01    0.000022           3         8           mmap
    0.01    0.000015           5         3           open
    0.01    0.000014           4         4           mprotect
    0.00    0.000011           2         6           close
    0.00    0.000011           4         3         3 access
    0.00    0.000010          10         1           execve
    0.00    0.000006           6         1           munmap
    0.00    0.000005           3         2           newfstatat
    0.00    0.000004           4         1         1 lseek
    0.00    0.000003           1         3           fstat
    0.00    0.000003           1         3           brk
    0.00    0.000003           3         1           faccessat
    0.00    0.000002           2         1           read
    0.00    0.000002           2         1           ioctl
    0.00    0.000001           1         1           geteuid
    0.00    0.000001           1         1           arch_prctl
  ------ ----------- ----------- --------- --------- ----------------
  100.00    0.260787                    41         4 total


https://reviews.llvm.org/D27295





More information about the llvm-commits mailing list