From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 16 03:32:27 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 67033DE5 for ; Wed, 16 Jan 2013 03:32:27 +0000 (UTC) (envelope-from dieterbsd@gmail.com) Received: from mail-ie0-f173.google.com (mail-ie0-f173.google.com [209.85.223.173]) by mx1.freebsd.org (Postfix) with ESMTP id 29C4D2A3 for ; Wed, 16 Jan 2013 03:32:26 +0000 (UTC) Received: by mail-ie0-f173.google.com with SMTP id e13so1647381iej.4 for ; Tue, 15 Jan 2013 19:32:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=evBG7CofJuAeSULRVQEOQxZK6yzhQ8uP8QrlTg2Okhc=; b=PuWk7Hv07jc6arDELeFVWKJmxfNX+6lgfFv3+bw0fcKDy3YfyLHuYpNIZRmaBIIPzg vSyaHY/e66TZEsyVwHpsSWV5YTSEqvQ8orbYT+WcobEZ/fdCFTFgPxIbSCQetmAR1AGg yohTG52XvESn94iY6ptFfpytYFhF9oRB3eY9a5XN0tQ01KCDIsCkCPEEQ8izspUr3MWZ gkur1EX2JfCfdVAz7vNeu6l8j4Tp2k9dfpNzhbNWtJUCWo6NP7PP3YnzBQf7BAhboUyN 26t7HCm9v+aPKQcOe9UHYpcRpy8khJUw6wTwwF/FQBem7NJtHj2zxS6eiOlT2XpB6OnP AW1g== MIME-Version: 1.0 X-Received: by 10.50.196.138 with SMTP id im10mr3781243igc.83.1358307145446; Tue, 15 Jan 2013 19:32:25 -0800 (PST) Received: by 10.64.107.196 with HTTP; Tue, 15 Jan 2013 19:32:25 -0800 (PST) Date: Tue, 15 Jan 2013 19:32:25 -0800 Message-ID: Subject: Re: IBM blade server abysmal disk write performances From: Dieter BSD To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2013 03:32:27 -0000 > 25.9 MB/s Even Linux is pretty slow. > Transfer rates: > outside: 102400 kbytes in 0.685483 sec = 149384 kbytes/sec > middle: 102400 kbytes in 0.747424 sec = 137004 kbytes/sec > inside: 102400 kbytes in 1.051036 sec = 97428 kbytes/sec That's more like it. I assume these numbers are reading. You should get numbers nearly this high when writing. Can you try writing to the bare drive without a filesystem? time dd if=/dev/da0 of=/dev/null bs=124k count=250000 time (dd if=/dev/zero if=/dev/da0 bs=124k count=250000; sync) Between writing more data than the size of memory and the sync, this should hopefully reduce any buffering effects down into the noise and make the numbers more comparable between FreeBSD and Linux. (and more honest) Also eliminates any effect from the filesystem, which will be different between FreeBSD and Linux. Writing should be almost as fast as reading. Is the disk healthy? Smartctl might give a clue. If the disk is healthy and you still get numbers that indicate one write per rev without a filesystem, then the question is why does the driver claim queueing but not deliver it?