From owner-freebsd-current@FreeBSD.ORG Tue Mar 5 09:25:58 2013 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F0D7DB9F; Tue, 5 Mar 2013 09:25:58 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) by mx1.freebsd.org (Postfix) with ESMTP id D4FA0D72; Tue, 5 Mar 2013 09:25:58 +0000 (UTC) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id r259Pm7o012790; Tue, 5 Mar 2013 01:25:51 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201303050925.r259Pm7o012790@gw.catspoiler.org> Date: Tue, 5 Mar 2013 01:25:48 -0800 (PST) From: Don Lewis Subject: Re: access to hard drives is "blocked" by writes to a flash drive To: phk@phk.freebsd.dk In-Reply-To: <65342.1362473108@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: kostikbel@gmail.com, deeptech71@gmail.com, freebsd-current@FreeBSD.org, peter@rulingia.com, ian@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Mar 2013 09:25:59 -0000 On 5 Mar, Poul-Henning Kamp wrote: > In message <201303050840.r258egAG012697@gw.catspoiler.org>, Don Lewis writes: > >>For composite devices such as mirrors, using the first underlying device >>is probably a reasonable choice. For more complicated cases, or to >>override the default, the syncer thread could be specified as a mount >>option. > > I doubt that will be any better than what we have today. I'm thinking of the case where ada0s1a and ada1s1a are mirrored, ada0s2b and ada1s2b are mirrored, etc. Or ada0 and ada1 are mirrored and then the mirror is partitioned. We don't want two syncer threads simultaneously trying to fsync files on the outer tracks and the inner tracks. If we just create a syncer thread for ada0, it will fsync the files on the outer tracks first and then go on to the inner tracks, avoiding lots of long seeks. > I think it is a much better idea to have the syncer monitor bio write > latency and adjust accordingly. That's a good idea as well, but that's also something that is global to each "device".