HomeFreeBSD

copy_file_range(2): add recommendation to use large "len"

Description

copy_file_range(2): add recommendation to use large "len"

PR#252358 reported a serious performance problem w.r.t.
cp(1) when copying large non-sparse files.
This problem appears to have been caused by cp(1)
calling copy_file_range(2) with a small "len" argument.

This patch adds a recommendation to use a large "len"
value where possible, for performance reasons.

Reviewed by: asomers
Differential Revision: https://reviews.freebsd.org/D27935

Details

Provenance
rmacklemAuthored on Jan 3 2021, 1:21 AM
Reviewer
asomers
Differential Revision
D27935: add recommendation for using a large "len" argument
Parents
R10:c98a764c681f: cp(1): fix performance issue for large non-sparse file copies
Branches
Unknown
Tags
Unknown