Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Jan 2021 20:02:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 252358] cp(1) of large files is causing 100% CPU utilization and poor transfer of ~168M/minute
Message-ID:  <bug-252358-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252358

            Bug ID: 252358
           Summary: cp(1) of large files is causing 100% CPU utilization
                    and poor transfer of ~168M/minute
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: guru@unixarea.de

While using cp(1) to copy large files (seen with 36GByte) on UFS file syste=
ms
with something like:

# cp -p guru-20210102.tar.gz xxx

the CPU utilization is 100% while the copied amount of data is poor (some
168MByte per minute). The cp(1) process shows in truss(1) only
copy_file_range(2) sys calls with low frequency:

# truss -p 37655=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
copy_file_range(0x3,0x0,0x4,0x0,0x200000,0x0)    =3D 2097152 (0x200000)=20=
=20=20=20=20=20=20=20=20=20=20
copy_file_range(0x3,0x0,0x4,0x0,0x200000,0x0)    =3D 2097152 (0x200000)=20=
=20=20=20=20=20=20=20=20=20=20
copy_file_range(0x3,0x0,0x4,0x0,0x200000,0x0)    =3D 2097152 (0x200000)=20=
=20=20=20=20=20=20=20=20=20=20
copy_file_range(0x3,0x0,0x4,0x0,0x200000,0x0)    =3D 2097152 (0x200000)=20=
=20=20=20=20=20=20=20=20=20=20
copy_file_range(0x3,0x0,0x4,0x0,0x200000,0x0)    =3D 2097152 (0x200000)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252358-227>