From owner-freebsd-questions@freebsd.org Mon Aug 10 15:19:40 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D643099D7A2 for ; Mon, 10 Aug 2015 15:19:40 +0000 (UTC) (envelope-from jmmv@meroh.net) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 99B0A313 for ; Mon, 10 Aug 2015 15:19:40 +0000 (UTC) (envelope-from jmmv@meroh.net) Received: by qkcs67 with SMTP id s67so36911063qkc.1 for ; Mon, 10 Aug 2015 08:19:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:content-type :content-transfer-encoding:subject:message-id:date:to:mime-version; bh=XwHyYKG7IxfU0FxBKSYASUYwIUOyySONjrVboCHFLo8=; b=R2rlx98Aj9CgXeDLpT7avZP/HQ2YBUwK0WcSAv+CZJU1hjVeYs77rzVGO+LnvITjtw pDixSVKUkHAnDlQ/kequlqsh9vsKe/mMJXRenBFA9+z+Hk6/oVjzJnWkZEv9Nswqh7Gd d0qoKFqrhK7JheUCf1UZdaxKUk/KW70Iq7rTZyqWBXowSYmpZ8kI1/C5UIDA6wOlkiog 0nqW9YNjTZbAqT62eJvoKLTSOaLZN+CCK4+oWqnHryW/nMDq/xzF01/L0/hwhgFTw8xj kkMg/WNtHYDVvt7PvkAr6odB/y2dsHhTCZf1PrDpXEBlNhTa6fLu3SGTvIggB8FxrDeL 1Q8Q== X-Gm-Message-State: ALoCoQl3UaYBVjqRVIIH7vY1gzZufu2zwgdTeAGZBgmoaTGKPJ2mT4F2+MbjzkP5Iicthjb2vyII X-Received: by 10.55.22.220 with SMTP id 89mr39291825qkw.74.1439219574427; Mon, 10 Aug 2015 08:12:54 -0700 (PDT) Received: from [192.168.1.131] (cpe-24-90-142-167.nyc.res.rr.com. [24.90.142.167]) by smtp.gmail.com with ESMTPSA id t77sm9997596qge.42.2015.08.10.08.12.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Aug 2015 08:12:53 -0700 (PDT) Sender: Julio Merino From: Julio Merino Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Poor I/O performance; maybe ZFS? Message-Id: Date: Mon, 10 Aug 2015 11:12:52 -0400 To: freebsd-questions@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) X-Mailer: Apple Mail (2.2102) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Aug 2015 15:19:41 -0000 Hello, I have a PowerMac G5 running 11.0-CURRENT (upgraded yesterday). The = machine is a dual-CPU 2GHz G5 with 6GB of RAM and two drives: ada0 at ata2 bus 0 scbus2 target 0 lun 0cd0 at ata0 bus 0 scbus0 target = 0 lun 0 ada0: ATA-6 SATA 1.x device ada0: Serial Number 3JS478VL ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes) ada0: 152627MB (312581808 512 byte sectors: 16H 63S/T 16383C) ada1 at ata3 bus 0 scbus3 target 0 lun 0 ada1: ATA8-ACS SATA 2.x device ada1: Serial Number WD-WMASY2696897 ada1: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes) ada1: 610480MB (1250263728 512 byte sectors: 16H 63S/T 16383C) I have a UFS file system on ada0s4 for / and a ZFS pool on ada1s2 with = file systems for /home and poudriere. For a while, I have felt that the system is incredibly sluggish. For = example, a simple "make buildworld" with up-to-date obj, which should be = I/O bound, takes forever (something like 20-30 minutes). This is = running with src and obj on ZFS. "svn update" is similarly = infuriatingly slow. Today, I decided to install bonnie and ran a couple of tests using "-s = 4096". -------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 ada0 4196 43973 62.4 46207 37.7 43259 41.9 89210 96.8 280589 95.9 = 17038.2 103.1 tank 4196 54093 72.2 27596 93.0 21478 90.7 64214 83.5 65358 50.8 = 126.7 3.7 Note the vast difference on the numbers, especially random seeks. In case this matters, this is how ada1s2 looks like: 1. Name: ada1s2 Mediasize: 640135019520 (596G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 9216 Mode: r1w1e1 rawtype: FreeBSD-ZFS label: 1 length: 640135019520 offset: 9216 type: freebsd-zfs index: 1 end: 1250263727 start: 18 Any obvious things I should look at? Thank you!=