]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r276983: When aggregating TRIM segments, move the new one to the end.
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 25 Jan 2015 14:31:44 +0000 (14:31 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 25 Jan 2015 14:31:44 +0000 (14:31 +0000)
commitb1b6f3ca56eaa35efa9d6a82e5c5222433595b4a
treec75a1e401b20cd171732a800fa45c9232b8629cc
parent0777a90d7eb7d46a622db3ed9e507e2d1926a5ff
MFC r276983: When aggregating TRIM segments, move the new one to the end.

New segment at the list head may block all TRIM requests until txg of that
segment can be processed.  On my random I/O tests this change reduce peak
TRIM list length from 650 to 450 segments.  Hopefully it should reduce TRIM
burstiness when list processing is unblocked.

git-svn-id: svn://svn.freebsd.org/base/stable/10@277701 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/trim_map.c