Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Jan 2021 21:49:40 +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-ePsxACTi5M@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-252358-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252358

Rick Macklem <rmacklem@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rmacklem@FreeBSD.org

--- Comment #1 from Rick Macklem <rmacklem@FreeBSD.org> ---
Created attachment 221214
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=221214&action=edit
fix the problem by using a large "len" argument for copy_file_range(2)

This patch modifies "cp" so that it uses a large "len"
argument to copy_file_range(2).
This results in far fewer copy_file_range(2) syscalls,
each of which will do a SEEK_DATA and SEEK_HOLE.

I suspect that these SEEK_DATA/SEEK_HOLE operations
are slow for large non-sparse files and doing a large
number of them caused the slowdown.

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

home | help

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