From owner-freebsd-questions@FreeBSD.ORG Sun Jul 13 20:04:46 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02A5E37B401 for ; Sun, 13 Jul 2003 20:04:46 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 199DD43F3F for ; Sun, 13 Jul 2003 20:04:44 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id A0FE0526C9; Mon, 14 Jul 2003 12:34:41 +0930 (CST) Date: Mon, 14 Jul 2003 12:34:41 +0930 From: Greg 'groggy' Lehey To: Marc Wiz Message-ID: <20030714030441.GU94666@wantadilla.lemis.com> References: <200307130245.h6D2j8HB000556@soth.ventu> <20030713191453.GF23909@dan.emsphone.com> <20030714003258.GP94666@wantadilla.lemis.com> <20030714015746.GE50589@freshaire.wiz.com> <20030714021914.GR94666@wantadilla.lemis.com> <20030714030137.GG50589@freshaire.wiz.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZjLa2K+dB9SFbrgo" Content-Disposition: inline In-Reply-To: <20030714030137.GG50589@freshaire.wiz.com> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: Dan Nelson cc: freebsd-questions@freebsd.org Subject: Re: vinum and hot-swapping X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 03:04:46 -0000 --ZjLa2K+dB9SFbrgo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sunday, 13 July 2003 at 22:01:37 -0500, Marc Wiz wrote: > On Mon, Jul 14, 2003 at 11:49:14AM +0930, Greg 'groggy' Lehey wrote: >> On Sunday, 13 July 2003 at 20:57:46 -0500, Marc Wiz wrote: >>> On Mon, Jul 14, 2003 at 10:02:58AM +0930, Greg 'groggy' Lehey wrote: >>>>> I don't believe vinum can optimize full-stripe writes, though, since >>>>> FreeBSD can only do I/O in 64k max chunks, >>>> >>>> 128 kB. >>> >>> I thought physio was limited to 64 KB? The man page on dump states >>> this. Please correct me if I am wrong. >> >> Physio is limited to MAXPHYS, which you'll find defined in >> /usr/include/sys/param.h: >> >> #ifndef MAXPHYS >> #define MAXPHYS (128 * 1024) /* max raw I/O transfer size */ >> #endif > > That's nice to know. What prevents it from being increased beyond > 128K? There are a couple of things, I think, but I can't recall what. Individual controllers and host adaptors sometimes have quirks. >> I've taken a look at the dump code (yuk!), and it no longer places any >> limitation on the block size. I'll fix the man page. > > Thanks. I have tried increasing the block size but going past 64K > does not seem to help performance. I will have to check the dump > code to see if it is limiting itself to a max of 64K. Check the dump with iostat 1. I think that the CAM layer currently restricts all I/O to 60 kB. If that's the case, you'll probably find that 60 kB blocks will be faster than 64 (which will give you an average block size of 30). Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers --ZjLa2K+dB9SFbrgo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE/Eh3JIubykFB6QiMRAvMjAKChk0AUnZTLzq4VZK/ilFC3V/Fr7wCgtDWs A1WSH30NaoobHZ89QvZkMKg= =QaZ0 -----END PGP SIGNATURE----- --ZjLa2K+dB9SFbrgo--