]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r276983: When aggregating TRIM segments, move the new one to the end.
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 29 Jan 2015 16:16:20 +0000 (16:16 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 29 Jan 2015 16:16:20 +0000 (16:16 +0000)
commit70f2d04536e3b5a3bb84519140b20bf8f9ce52fe
tree8909defb636a03b1f8224499a3a3526f17f87a9b
parentb024a6922d61d4b48fc4a455394bbdb3a2b2a4f9
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/9@277880 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/trim_map.c