]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r344934, r345014: Add separate aggregation limit for non-rotating media.
authorAlexander Motin <mav@FreeBSD.org>
Thu, 11 Apr 2019 13:19:26 +0000 (13:19 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Thu, 11 Apr 2019 13:19:26 +0000 (13:19 +0000)
commitb845dc7949a8df63bb8bb5556249725234eeaa84
treeba3c4af608e68dfdbcf016d0803a35b7b2ff6a87
parent7a71631af150a57082a518b0841020018e11bcff
MFC r344934, r345014: Add separate aggregation limit for non-rotating media.

Before sequential scrub patches ZFS never aggregated I/Os above 128KB.
Sequential scrub bumped that to 1MB, which motivation I understand for
spinning disks, since it should reduce number of head seeks.  But for
SSDs it makes much less sense to me, especially on FreeBSD, where due
to MAXPHYS limitation device will likely still see bunch of 128KB I/Os
instead of one large.  Having more strict aggregation limit allows to
avoid allocation of large memory buffer and memcpy to/from it, that is
a serious problem when bandwidth reaches few GB/s.

Sponsored by: iXsystems, Inc.
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c