From owner-svn-src-projects@FreeBSD.ORG Fri Jun 17 08:30:59 2011 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB24D1065670 for ; Fri, 17 Jun 2011 08:30:59 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 714818FC16 for ; Fri, 17 Jun 2011 08:30:59 +0000 (UTC) Received: from localhost (58.wheelsystems.com [83.12.187.58]) by mail.dawidek.net (Postfix) with ESMTPSA id CD57AB00; Fri, 17 Jun 2011 09:03:33 +0200 (CEST) Date: Fri, 17 Jun 2011 10:14:00 +0200 From: Pawel Jakub Dawidek To: Maxim Sobolev Message-ID: <20110617081400.GA1732@garage.freebsd.pl> References: <201106160844.p5G8iQ4W020318@svn.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline In-Reply-To: <201106160844.p5G8iQ4W020318@svn.freebsd.org> X-OS: FreeBSD 9.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-projects@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r223144 - projects/hastd_wan X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2011 08:30:59 -0000 --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 16, 2011 at 08:44:26AM +0000, Maxim Sobolev wrote: > Author: sobomax > Date: Thu Jun 16 08:44:26 2011 > New Revision: 223144 > URL: http://svn.freebsd.org/changeset/base/223144 >=20 > Log: > "HAST currently doesn't support 'async' mode, so working over WAN is not > common use case for now, which makes your changes low priority. High > priority for HAST is working over LAN." -pjd > =20 > So this little fork of the hastd would aim at optimizing it for good > performance over WAN network. Hopefully it will be useful for somebody > else and and end up at least partially in the main tree. Let me share my ideas how I think 'async' should be implemented. In 'async' mode we send writes to the remote node, but don't wait for confirmation. This way we can complete the write much faster of course, but we still need to keep the extents dirty until remote node confirms that write succeeded. Then you need to limit the number of outstanding 'async' writes as we can easly consume huge amount of memory and make the activemap very dirty. Which shows that 'async' will only work for configuration where you have relatively short write peaks. Once that done you may think about combining outstanding I/Os and removing covered parts of earlier outstanding I/Os. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk37DMgACgkQForvXbEpPzTtCQCeLmV4uibXAtMGAjzFoU9uFKXb Gb0AniKcRSVH2xLPGXzWSOb28xvRsrs4 =MtV0 -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--