Date: Fri, 23 Apr 2010 08:08:50 +0200 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Andriy Gapon <avg@icyb.net.ua> Cc: freebsd-fs@FreeBSD.org, freebsd-geom@FreeBSD.org Subject: Re: vdev_geom_io: parallelize ? Message-ID: <20100423060850.GB1670@garage.freebsd.pl> In-Reply-To: <4BD0C802.3000004@icyb.net.ua> References: <4BD0C802.3000004@icyb.net.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Fri, Apr 23, 2010 at 01:04:50AM +0300, Andriy Gapon wrote:
>
> Just thinking out loud.
>
> Currently ZFS vdev_geom_io does something like:
> for (...) {
> ...
> g_io_request(...);
> biowait(...);
> ...
> }
> I/O is done in MAXPHYS chunks.
>
> If that was changed to first issuing all the requests and only after that
> waiting on them, could there be any performance benefit?
> Or cases of vdev_geom_io with size > MAXPHYS are too rare?
> Or something else?
The vdev_geom_io() function is there only to read ZFS labels, it is not
used during regular I/O. Regular I/O requests are handled asynchronously
by the vdev_geom_io_start() function.
--
Pawel Jakub Dawidek http://www.wheelsystems.com
pjd@FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)
iEYEARECAAYFAkvROXIACgkQForvXbEpPzSM9wCcDPLqokCtvb9D/QzxkGAOX3oL
t90An3ssb9u19Zgw/x32k0xE5P5QLnHF
=LTp5
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100423060850.GB1670>
