From owner-freebsd-stable@FreeBSD.ORG Sat Jul 22 21:22:37 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91F5016A4DA for ; Sat, 22 Jul 2006 21:22:37 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A428243D53 for ; Sat, 22 Jul 2006 21:22:30 +0000 (GMT) (envelope-from freebsd-stable@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G4OvX-0005Un-6W for freebsd-stable@freebsd.org; Sat, 22 Jul 2006 23:22:23 +0200 Received: from cmung1666.cmu.carnet.hr ([193.198.134.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 Jul 2006 23:22:23 +0200 Received: from ivoras by cmung1666.cmu.carnet.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 Jul 2006 23:22:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Ivan Voras Date: Sat, 22 Jul 2006 23:22:14 +0200 Lines: 19 Message-ID: References: <44C22BB6.8010104@copyleft.no> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cmung1666.cmu.carnet.hr User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en In-Reply-To: <44C22BB6.8010104@copyleft.no> Sender: news Subject: Re: Slow RAID1 with gmirror X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2006 21:22:37 -0000 Hr. Daniel Mikkelsen wrote: > But reading from the RAID1 runs at half the normal rates, while I > expected to get double rates. Some possible things to check are: - What did you use for bs= argument to dd? You should use sizes of 64KB or more (for example, a common size is 1MB) - Did you use dd on a raw mirror device or on a file system built on the device? Try both :) The difference you're seeing might be because Linux buffers raw device I/O and FreeBSD doesn't. - If you're using it on the filesystem you could try increasing vfs.read_max sysctl variable - Try using stripe size of 64K or 128KB with gmirror ("-s" argument) and bs=X (of dd) with twice that size In any case, please post results you get from experiments such as these (also from Linux) to this list.