From owner-freebsd-questions Tue Feb 2 23:42:13 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA17092 for freebsd-questions-outgoing; Tue, 2 Feb 1999 23:42:13 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA17087 for ; Tue, 2 Feb 1999 23:42:07 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id SAA28144; Wed, 3 Feb 1999 18:12:05 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.2/8.9.0) id SAA60645; Wed, 3 Feb 1999 18:12:03 +1030 (CST) Date: Wed, 3 Feb 1999 18:12:03 +1030 From: Greg Lehey To: John Saunders Cc: freebsd-questions@FreeBSD.ORG Subject: Re: advice on setting up a Vinum volume Message-ID: <19990203181203.A1179@freebie.lemis.com> References: <19990203171610.Z1179@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: ; from John Saunders on Wed, Feb 03, 1999 at 06:22:58PM +1100 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday, 3 February 1999 at 18:22:58 +1100, John Saunders wrote: > On Wed, 3 Feb 1999, Greg Lehey wrote: > >>> Sustained performance is much better. On my pair of Quantum 6.4GB drives >>> they get approx 7MB/s sustained (dd if=/dev/zero of=file bs=262144 >>> count=1024). With a vinum strip of 256K in size I get sustained >>> 12.5MB/s. Running squid on this setup I can watch the load being >>> distributed by running (systat -iostat 1) >> >> Interesting. Which version of FreeBSD is this? Are you using the >> standard vinum, which includes slow debugging aids, or have you >> compiled them out? > > This is done with RELENG_3 cvsupped about a week ago. I did a recent cvsup > and noticed a lot of vinum changes, so it was prior to the lastest > round of changes. Particularly the vinum_slices -> vinum_disks change > bit me (I use rc.conf.local for host config). > > The machine is a PII-350MHz/100MHz bus with 128MB SDRAM so I think any CPU > intensive debug would be dealt with rather quickly. There's a certain truth to that. Some of the debug stuff (like the memory allocation) is painfully slow, but it's probably still faster than a disk. You might like to try to change the parameters in the Makefiles (/usr/src/sbin/vinum/Makefile and /usr/src/sys/modules/vinum/Makefile). Remove the parameter -DVINUMDEBUG from both of them, do make all install, and see how things look then. >>> although vinum stats show that one drive seems to be used about 20% >>> more than the other. >> >> I've noticed this too. There's no way this can be a vinum problem (in >> other words, you should see exactly the same distribution when using >> ccd). I suspect that it's an incompatibility between ufs and the >> stripe size. I suspect that you may end up with all super blocks on >> one drive. It would be interesting to calculate what stripe size >> would balance the cylinder groups across the drives. > > Is there anything wrong with a strip size that is not a power of 2? Not that I know of :-) It would be a bug if it were. > Although it still would have to be a multiple of the block size. Right, everything's a multiple of the block size. It also needs to be a fraction of the volume size. > On Linux the mke2fs command has an option to specify the stripe size > and it does some tweaks to avoid putting super blocks on the same > drive. This is new to me. I didn't know that ext2fs knew anything about striping. > With the ufs 32MB cylinder groups I woudln't be surprised if if all > super blocks were on the same disk. Anyone for prime number stripe > sizes? Try it and tell me :-) Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message