From owner-freebsd-geom@FreeBSD.ORG Fri Nov 26 22:44:50 2010 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5124106564A for ; Fri, 26 Nov 2010 22:44:50 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from ftp.translate.ru (ftp.translate.ru [80.249.188.42]) by mx1.freebsd.org (Postfix) with ESMTP id 2F12B8FC14 for ; Fri, 26 Nov 2010 22:44:49 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 421AA13DF42 for ; Sat, 27 Nov 2010 01:29:10 +0300 (MSK) Date: Sat, 27 Nov 2010 01:29:03 +0300 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1299537757.20101127012903@serebryakov.spb.ru> To: freebsd-geom@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: Subject: GEOM profiling - how to? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Nov 2010 22:44:50 -0000 Hello, Freebsd-geom. I'm doing some simple benchmarking of geom_raid5 in preparation of putting it into ports. And I notice strange results. It is array of 5 disks, stripsize=3D128k. All disks are SATA2 disks on ICH10R, AHCI driver (8.1-STABLE). Reading from device itself (dd with bs=3D512K) gives speed of one HDD exactly. gstat shows 100% load of RAID geom and 1/5 of this speed (and 18-22% load) on all disk GEOMs. Reading big file from FS (dd with bs=3D512k, FS block size = 32K, vfs.read_max=3D32) gives about twice speed and every disk GEOM is loaded 38-42%. CPU time is about 8% system, 0.5% interrupt, so CPU is not a bottle neck. Bigger block for "dd" doesn't wotk better. I want to know, why this configuration can not load disks up their top (and gives 4*HDD speed, about 320MB/s, speed). I even can not understand, why reeading from FS is beter than from raw device. Of course, I don't think you can me give answers for my questions. Really, I'm asking how could I peek into GEOM infrastructure to find bottle necks, understand why these two scenarios gives such different speed, etc. How could I profile I/O and GEOM? --=20 // Black Lion AKA Lev Serebryakov