summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-04-27 15:02:55 -0700
committerDarrick J. Wong <djwong@kernel.org>2022-04-29 16:40:30 -0700
commit5eb8d288009245ce2b93c79aefc7e67e80d713b4 (patch)
treeed130900b908523a2a66cd61184773410f80c251 /Kconfig
parent1f30f48f6e53aadd074ec922819263833da8145c (diff)
xfs: speed up write operations by using non-overlapped lookups when possiblermap-speedups_2022-04-29
Reverse mapping on a reflink-capable filesystem has some pretty high overhead when performing file operations. This is because the rmap records for logically and physically adjacent extents might not be adjacent in the rmap index due to data block sharing. As a result, we use expensive overlapped-interval btree search, which walks every record that overlaps with the supplied key in the hopes of finding the record. However, profiling data shows that when the index contains a record that is an exact match for a query key, the non-overlapped btree search function can find the record much faster than the overlapped version. Try the non-overlapped lookup first when we're trying to find the left neighbor rmap record for a given file mapping, which makes unwritten extent conversion and remap operations run faster if data block sharing is minimal in this part of the filesystem. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions