From owner-freebsd-questions@freebsd.org Tue Aug 4 21:07:25 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 968A69B3AE4 for ; Tue, 4 Aug 2015 21:07:25 +0000 (UTC) (envelope-from javocado@gmail.com) Received: from mail-la0-x235.google.com (mail-la0-x235.google.com [IPv6:2a00:1450:4010:c03::235]) (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 227FAA2B for ; Tue, 4 Aug 2015 21:07:25 +0000 (UTC) (envelope-from javocado@gmail.com) Received: by labsr2 with SMTP id sr2so15834607lab.2 for ; Tue, 04 Aug 2015 14:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0Z3Wx0RF2oFGqPEncPKgIaWPgC8+2+TOQyNnn7c9cnU=; b=ig/FWkvQv3Frsguub5MughGBvCPi+a3g4hS5Oi/AGOfaESm6ILym5uRE2S7nzuOVyZ tUFX2oDebv+QwoP4xIPmnFDUUBrzUYEOT8E92ur3m9DaWQ/h9EPX/s6gVXkv+jgu2z3T I4to9thLiQiU+6mJ+mmmpmyRKMneV0RBNtrtNBQ13R0DT+aFPM/8iXXCKOTCa+d1KJLR LDNLZZ+6nA2J57DW988nBDEErgVumJkXiOmu8o1faINsDv3YpX3AGN2kDqRbYBLpe7q3 No9AGHsDu7zHWDEIWXiMOWu+zA2Vfklg1p23NJUq02g7FV+B5Ktgr1Z425noMzh4mwUa el8Q== MIME-Version: 1.0 X-Received: by 10.112.55.33 with SMTP id o1mr6250954lbp.96.1438722442625; Tue, 04 Aug 2015 14:07:22 -0700 (PDT) Received: by 10.114.96.8 with HTTP; Tue, 4 Aug 2015 14:07:22 -0700 (PDT) Date: Tue, 4 Aug 2015 14:07:22 -0700 Message-ID: Subject: pw operations slow under zfs load From: javocado To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Tue, 04 Aug 2015 21:07:25 -0000 Hi, We have a pretty busy ZFS pool running on an 8.3 AMD system. We are noticing that when the pool is busy pw-related operations seem to take a long time to complete: # time pw unlock 1000 0.007u 0.036s 0:39.72 0.0% 45+1953k 0+113io 0pf+0w # time pw lock 1000 0.032u 0.022s 1:09.63 0.0% 24+1132k 0+114io 0pf+0w Wile the command is running, we note that the process is locked in the D state: root 85051 0.0 0.0 5832 960 0 D+ 1:53PM 0:00.02 /usr/sbin/pwd_mkdb -u 1000 /etc/master.passwd We also note that there is next to 0 disk activity on the boot volume: # gstat -f ad dT: 1.005s w: 1.000s filter: ad L(q) ops/s r/s kBps ms/r w/s kBps ms/w %busy Name 0 0 0 0 0.0 0 0 0.0 0.0| ad6 0 0 0 0 0.0 0 0 0.0 0.0| ad8 0 0 0 0 0.0 0 0 0.0 0.0| ad10 0 0 0 0 0.0 0 0 0.0 0.0| ad12 And plenty of free mem: Mem: 400M Active, 3391M Inact, 128G Wired, 1935M Cache, 14G Buf, 6055M Free So, what's going on here? How does a busy pool with it's own set of drives (which operate off an HBA) affect the speed of operations involving the boot volume (a UFS-formatted SSD connected to the mobo)?