From owner-freebsd-stable@freebsd.org Thu Sep 22 12:01:06 2016 Return-Path: Delivered-To: freebsd-stable@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 CFDB1BE4D39 for ; Thu, 22 Sep 2016 12:01:06 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (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 67B8E1AD9 for ; Thu, 22 Sep 2016 12:01:06 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: by mail-wm0-x22d.google.com with SMTP id l132so323610499wmf.0 for ; Thu, 22 Sep 2016 05:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=multiplay-co-uk.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=AfK6KS3C0KGXqgRs3JIxXHMrsWgrEjsK7hvM2qdH+DU=; b=HscqE/Wi94Ta2IYz6EzCs2hl8VXIBgXbg4moShNxOI3O246ohn1JJ6U2SqwD11VNR6 CxwJpLW/TkxZ02gBqhPtOYjcb7LZrJEQgDQTsEDhQVk5c1A+3CordtZpXwL2MxHcWnGK 28aaZYJpPjlrJBJNCguKn+oT4ExwjXfyUZHE9CLdslAnzS5oWJU2hEflDkiGQFlEnvRQ tZSUDJ6FcMWWOXLndYRtdesEQVGTG5FgRsspVCU6lBAMY6whO1/IXHwI5lPU1tm/z6cA ECm1yBKukbxLqnZ4jTtoUCmbqqT9lM2qRBlqAWf/x/J6SH/TL2vCF5tOcDyD6r02Vi9f L9VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=AfK6KS3C0KGXqgRs3JIxXHMrsWgrEjsK7hvM2qdH+DU=; b=BsS6/A5n6hee3mkM2I0Qx4MK8lORHuha58WaYCya8UxBjvkJLi7I2st0bNe0m4N16u zlffZ0QluDTqs+WfpWbM39VuiVI2k9o/wnD6Q21vPyjfPphBngT4FR5H9DMv3njx4iHq 2MkLcq0cusrTsV6GKtswFnH0xAtPOnkSNghe7Laymv8iQ4acOnZe22IRKIOu7d8d1SvA lNi76UxtOSBtQoEpayOT97ca88PqlwpDfXPAST1HcjI+vzelslGQb/Upg4JgXd3CbZA7 DBu6ge5d5kD/LNVjCWfmanQ4BPWN2gGJI/PciSmAMu4JT09CiF0GHICmw2b1z4up/twz 6n6Q== X-Gm-Message-State: AE9vXwPomnMoPi1voZX/fXdX6wUYkZe0DQJfTekKbMi+SF1WdtdAfRc7oSSdfupxnQmpduIO X-Received: by 10.28.131.199 with SMTP id f190mr8615104wmd.30.1474545664321; Thu, 22 Sep 2016 05:01:04 -0700 (PDT) Received: from [10.10.1.58] (liv3d.labs.multiplay.co.uk. [82.69.141.171]) by smtp.gmail.com with ESMTPSA id r9sm1783225wjp.15.2016.09.22.05.01.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Sep 2016 05:01:03 -0700 (PDT) Subject: Re: zfs/raidz and creation pause/blocking To: freebsd-stable@freebsd.org References: <57E3C68C.8060200@norma.perm.ru> From: Steven Hartland Message-ID: Date: Thu, 22 Sep 2016 13:01:02 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <57E3C68C.8060200@norma.perm.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2016 12:01:06 -0000 Almost certainly its TRIMing the drives try setting the sysctl vfs.zfs.vdev.trim_on_init=0 On 22/09/2016 12:54, Eugene M. Zheganin wrote: > Hi. > > Recently I spent a lot of time setting up various zfs installations, and > I got a question. > Often when creating a raidz on disks considerably big (>~ 1T) I'm seeing > a weird stuff: "zpool create" blocks, and waits for several minutes. In > the same time system is fully responsive and I can see in gstat that the > kernel starts to tamper all the pool candidates sequentially at 100% > busy with iops around zero (in the example below, taken from a live > system, it's doing something with da11): > > (zpool create gamestop raidz da5 da7 da8 da9 da10 da11) > > dT: 1.064s w: 1.000s > 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| da0 > 0 0 0 0 0.0 0 0 0.0 0.0| da1 > 0 0 0 0 0.0 0 0 0.0 0.0| da2 > 0 0 0 0 0.0 0 0 0.0 0.0| da3 > 0 0 0 0 0.0 0 0 0.0 0.0| da4 > 0 0 0 0 0.0 0 0 0.0 0.0| da5 > 0 0 0 0 0.0 0 0 0.0 0.0| da6 > 0 0 0 0 0.0 0 0 0.0 0.0| da7 > 0 0 0 0 0.0 0 0 0.0 0.0| da8 > 0 0 0 0 0.0 0 0 0.0 0.0| da9 > 0 0 0 0 0.0 0 0 0.0 0.0| da10 > 150 3 0 0 0.0 0 0 0.0 112.6| da11 > 0 0 0 0 0.0 0 0 0.0 0.0| da0p1 > 0 0 0 0 0.0 0 0 0.0 0.0| da0p2 > 0 0 0 0 0.0 0 0 0.0 0.0| da0p3 > 0 0 0 0 0.0 0 0 0.0 0.0| da1p1 > 0 0 0 0 0.0 0 0 0.0 0.0| da1p2 > 0 0 0 0 0.0 0 0 0.0 0.0| da1p3 > 0 0 0 0 0.0 0 0 0.0 0.0| da0p4 > 0 0 0 0 0.0 0 0 0.0 0.0| gpt/boot0 > 0 0 0 0 0.0 0 0 0.0 0.0| > gptid/22659641-7ee6-11e6-9b56-0cc47aa41194 > 0 0 0 0 0.0 0 0 0.0 0.0| gpt/zroot0 > 0 0 0 0 0.0 0 0 0.0 0.0| gpt/esx0 > 0 0 0 0 0.0 0 0 0.0 0.0| gpt/boot1 > 0 0 0 0 0.0 0 0 0.0 0.0| > gptid/23c1fbec-7ee6-11e6-9b56-0cc47aa41194 > 0 0 0 0 0.0 0 0 0.0 0.0| gpt/zroot1 > 0 0 0 0 0.0 0 0 0.0 0.0| mirror/mirror > 0 0 0 0 0.0 0 0 0.0 0.0| da1p4 > 0 0 0 0 0.0 0 0 0.0 0.0| gpt/esx1 > > The most funny thing is that da5,7-11 are SSD, with a capability of like > 30K iops at their least. > So I wonder what is happening during this and why does it take that > long. Because usually pools are creating very fast. > > Thanks. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"