From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 15 20:03:39 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CA049A2E for ; Tue, 15 Jan 2013 20:03:39 +0000 (UTC) (envelope-from dieterbsd@gmail.com) Received: from mail-ie0-f176.google.com (mail-ie0-f176.google.com [209.85.223.176]) by mx1.freebsd.org (Postfix) with ESMTP id A300A2C4 for ; Tue, 15 Jan 2013 20:03:39 +0000 (UTC) Received: by mail-ie0-f176.google.com with SMTP id 13so973662iea.7 for ; Tue, 15 Jan 2013 12:03:33 -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=UrkhlY5lB3kHEG9jmoWSPAxOqGRHbGe5e/oFnsy887s=; b=p3EG+wqQnFQpOeN4gVDgKHvx6MjgK6zL8Zr42a9Pk+XoYA8MM5ERlS46OW0yO7+XXA LX5NQWVxu6/NQEn+Pvne2lVVhEvgW1wU+A1fy+46f9ylOxnUXrpRCpMGqEWn4wNY9mp/ OMyS3/Z6AVf2e2n/3WXrUGZxQln5lYPM8BIjns/dyFMPScRyafCZgjPO8kf8dcO1IhQJ hbabp3D8ddsYl0hvLqp1JZtgKaWGf9SMKkYZiyZCGpMI6RAHvmwYYQ8pTUXEhGy6Jm4z F8p5oRYvohbD71w8cXMBm/5znwQ6BggSt869b6ypcD4yNtVa/ChVa0Y79ArgWpnzetJ6 WeWA== MIME-Version: 1.0 X-Received: by 10.50.184.199 with SMTP id ew7mr2769340igc.84.1358280213264; Tue, 15 Jan 2013 12:03:33 -0800 (PST) Received: by 10.64.107.196 with HTTP; Tue, 15 Jan 2013 12:03:33 -0800 (PST) Date: Tue, 15 Jan 2013 12:03:33 -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: Tue, 15 Jan 2013 20:03:39 -0000 >>> 5120000 bytes transferred in 60.024997 secs (85298 bytes/sec) >>> mpt0: port 0x1000-0x10ff mem 0x9b910000-0x9b913fff,0x9b900000-0x9b90ffff irq 28 at device 0.0 on pci11 >>> mpt0: MPI Version=1.5.20.0 >>> mpt0: Capabilities: ( RAID-0 RAID-1E RAID-1 ) >>> mpt0: 0 Active Volumes (2 Max) >>> mpt0: 0 Hidden Drive Members (14 Max) >>> da0 at mpt0 bus 0 scbus0 target 1 lun 0 >>> da0: Fixed Direct Access SCSI-6 device >>> da0: 300.000MB/s transfers >>> da0: Command Queueing enabled >>> da0: 286102MB (585937500 512 byte sectors: 255H 63S/T 36472C) >> That's a 10k RPM drive. >> 10000 ops in 60 seconds is practically the definition of a 10k drive. Assuming 1 op per rev. > if it takes one revolution for one write it means that write caching is > disabled. Disabling the disks's write cache is *required* for data integrity. One op per rev means write caching is disabled and no queueing. But dmesg claims "Command Queueing enabled", so you should be getting more than one op per rev, and writes should be fast. Is this dd to the raw drive, to a filesystem? (FFS? ZFS? other?) Are you running compression, encryption, or some other feature that might slow things down? Also, try dd with a larger block size, like bs=1m.