[Bug 258204] Extremely poor performance copying directory with lot of small files on nvme

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 02 Sep 2021 07:25:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258204

--- Comment #2 from Ali Abdallah <ali.abdallah@suse.com> ---
# truss -c cp -r /usr/src/sys .
syscall                     seconds   calls  errors
madvise                 0.000116236      11       0
copy_file_range         0.026481268       7       0
__sysctlbyname          0.000026349       1       0
write                  94.863922672   25461       0
openat                148.953887368   50930       0
mkdir                   7.676342967    2945       0
umask                   0.000010470       2       0
fstatat                 0.421467513   56822   28411
sigaction               0.000006072       1       0
__sysctl                0.000006882       1       0
readlink                0.000006863       1       1
munmap                  0.167493547   25462       0
fstatfs                 0.000006633       1       0
pread                   0.000005861       1       0
getdirentries           0.039877899    5965       0
fcntl                   0.015446983    2946       0
close                   0.341184094   53880       0
read                    0.000026979       3       0
fstat                   0.000028032       4       0
open                    0.022203466    2950       0
sigfastblock            0.000009748       1       0
issetugid               0.000010801       2       0
mprotect                0.000027954       4       0
mmap                    0.195280501   25473       0
                      ------------- ------- -------
                      252.723877158  252874   28412

As you can see, a ridiculous amount of time is spend in openat and write system
calls. On a different hardware but same FreeBSD version+UFS with sata ssd, the
same copy of /usr/src/sys takes 2 seconds.

-- 
You are receiving this mail because:
You are the assignee for the bug.