From owner-freebsd-questions@FreeBSD.ORG Sat Mar 20 08:16:51 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E598A106566C; Sat, 20 Mar 2010 08:16:51 +0000 (UTC) (envelope-from dan.naumov@gmail.com) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id 1E6DA8FC1C; Sat, 20 Mar 2010 08:16:50 +0000 (UTC) Received: by bwz8 with SMTP id 8so3628779bwz.3 for ; Sat, 20 Mar 2010 01:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=ZGEJNCP9LNysm18UdMBs2XqHr5ZsHJieCtGNrH0LcoY=; b=d6yZFF4iuAJrnYCvHnrgLreFc/mmy14qY9y3zEPYujFdGkTeNCIIBpDNJtsR8hmFP9 Xtkx1lgbrZUGsOFaZNIzH5Av1SOWkf9onHWlqv7xxdPiEFwWuhlESgybcVIyGPzml5gF 2b2ew853pnu2CcHTY6UBxuAxSl4ObW3XyP4iw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=lUHNQx5lYzNnKo4BVIlb7GhynV8CJu4EFvfZzY5LvNUOhrLy2iIeL3pSrSU26CkdeE Akks9LpBp5fSKAV4cObpFUubkxJeVZb9YP/fyPXXnuKLlgUBDcMu8azQxyYQdIJ44HuW r4NoxWVSSIfrMirAyh8vryhAgoWP5xM8uFUKM= MIME-Version: 1.0 Received: by 10.204.138.79 with SMTP id z15mr4003924bkt.167.1269073009288; Sat, 20 Mar 2010 01:16:49 -0700 (PDT) In-Reply-To: <30209_1269049775_4BA429AF_30209_895_1_D9B37353831173459FDAA836D3B434994A334315@WADPMBXV0.waddell.com> References: <30209_1269049775_4BA429AF_30209_895_1_D9B37353831173459FDAA836D3B434994A334315@WADPMBXV0.waddell.com> Date: Sat, 20 Mar 2010 10:16:49 +0200 Message-ID: From: Dan Naumov To: Gary Gatten Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-performance@freebsd.org" , "freebsd-stable@freebsd.org" , "freebsd-questions@freebsd.org" Subject: Re: Samba read speed performance tuning X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2010 08:16:52 -0000 On Sat, Mar 20, 2010 at 3:49 AM, Gary Gatten wrote: > It MAY make a big diff, but make sure during your tests you use unique files or flush the cache or you'll me testing cache speed and not disk speed. Yeah I did make sure to use unique files for testing the effects of prefetch. This is Atom D510 / Supermicro X75SPA-H / 4Gb Ram with 2 x slow 2tb WD Green (WD20EADS) disks with 32mb cache in a ZFS mirror after enabling prefetch.: Code: bonnie -s 8192 -------Sequential Output-------- ---Sequential Input-- --Random-- -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks--- Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPU 8192 29065 68.9 52027 39.8 39636 33.3 54057 95.4 105335 34.6 174.1 7.9 DD read: dd if=/dev/urandom of=test2 bs=1M count=8192 dd if=test2 of=/dev/zero bs=1M 8589934592 bytes transferred in 76.031399 secs (112978779 bytes/sec) (107,74mb/s) Individual disks read capability: 75mb/s Reading off a mirror of 2 disks with prefetch disabled: 60mb/s Reading off a mirror of 2 disks with prefetch enabled: 107mb/s - Sincerely, Dan Naumov