From nobody Thu Sep 2 07:25:36 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2D9B417B0C5D for ; Thu, 2 Sep 2021 07:25:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H0XX00dmKz3NF2 for ; Thu, 2 Sep 2021 07:25:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F254314D35 for ; Thu, 2 Sep 2021 07:25:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1827PZV1054171 for ; Thu, 2 Sep 2021 07:25:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1827PZ3S054170 for bugs@FreeBSD.org; Thu, 2 Sep 2021 07:25:35 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 258204] Extremely poor performance copying directory with lot of small files on nvme Date: Thu, 02 Sep 2021 07:25:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ali.abdallah@suse.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258204 --- Comment #2 from Ali Abdallah --- # 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 sy= stem calls. On a different hardware but same FreeBSD version+UFS with sata ssd, = the same copy of /usr/src/sys takes 2 seconds. --=20 You are receiving this mail because: You are the assignee for the bug.=