From owner-freebsd-fs@freebsd.org Wed Sep 14 20:48:34 2016 Return-Path: Delivered-To: freebsd-fs@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 C66FDBDB477 for ; Wed, 14 Sep 2016 20:48:34 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (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 5730A16B4 for ; Wed, 14 Sep 2016 20:48:34 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x233.google.com with SMTP id 1so54491421wmz.1 for ; Wed, 14 Sep 2016 13:48:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=kmTlyYn/SeeVGVxbue1McvyykhtCSNlfRHNpqxt/hY0=; b=UKYVN6hA6t3vi/7WEQ2qBDjzbWqTVUZH/68HM2zBvdU+3abDJIveXERFo4ayW8uX+K jMXzmNoAEw8to8WiT6Z2O750N/Oz27jPSocQ6nHD3qny6vis9dxh/Faxdr3A68Tr+c/S D+K5OZ/GiUhriZbrSTkqDY5UzyB6CsoJyz47SPcLaJBhZ/YPrJ4CTm7BqY7QIjaHoIdV 0PUT1Q4LdDagQp22czkK6PkmkyqXYe0+R4a4OxkaBzZvrrTEqmARt1SEA6cktAUOJh5Q Y++XdQdGz1g3t7Jq0xYSR0Q46RlVYqiz1n21TXsAVuDBaBopfbfLhqmUq7cXTEu7avEa cPcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=kmTlyYn/SeeVGVxbue1McvyykhtCSNlfRHNpqxt/hY0=; b=mf15aokskw5/+00XBIuvqSw8LsXcIR8HdP3YFQD0xGiFf6E63SBxMTbqmcED+KqMcA M/b3NhV7GC8TYiMiZ2vdOzEBjvkATZkmBvJ7qLl/xYSc17DorOpmtwjEmMBfbAQrEUHA LvVTaokVxajextdPXRAtic8guqN3Ed3E6xSSdJz+fgOQYY+iWmD3rHA28HgKYyE3pwsA qJAmttGe25HcvMWAAYC/VcInHkxjY/J+CoKWqVfFbE3LSr3uGpCigsXX/ka7EQuCFiHW CorDmVimquXhVy4aAtD1jlVy5fT1XlNHXJXFMafQrFkk/efYCal0kuskR1blmEnFtPFl DkYw== X-Gm-Message-State: AE9vXwPeSfaCxrKSlwaJRgorFm2WjAkpixXzCiuH8MnS8tRg15MSjsFygBgkX6KBk8XRTg== X-Received: by 10.194.145.101 with SMTP id st5mr5292574wjb.94.1473886112318; Wed, 14 Sep 2016 13:48:32 -0700 (PDT) Received: from macbook-air-de-benjamin.home (ANice-651-1-366-153.w83-201.abo.wanadoo.fr. [83.201.114.153]) by smtp.gmail.com with ESMTPSA id v73sm12483874wmf.19.2016.09.14.13.48.31 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Sep 2016 13:48:31 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [ZFS] refquota is very slow ! From: Ben RUBSON In-Reply-To: <57CFE031.90308@quip.cz> Date: Wed, 14 Sep 2016 22:48:29 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1472914773423.63807@kuleuven.be> <0E828163-AEAB-4C8C-BFCF-93D42B3DB3B6@gmail.com> <1524067530.1937.a66cb17f-9141-4bef-b758-5bb129d16681.open-xchange@ox.internetx.com> <67B3E11E-22B7-4719-A7AF-B8479D35A6D2@gmail.com> <7df8b5ce-d9ae-5b05-0aa5-1de6b06fd29e@internetx.com> <5E3B106D-99CB-4F25-A363-6419C32FBF57@gmail.com> <57CFE031.90308@quip.cz> To: FreeBSD FS X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2016 20:48:34 -0000 > On 07 Sep 2016, at 11:38, Miroslav Lachman <000.fbsd@quip.cz> wrote: >=20 > Ben RUBSON wrote on 09/07/2016 10:44: >>=20 >> OK ! >> Well, Juergen you put me on the right way. >> I investigated further and further and found that refquota slowness = is not due to the number of files but to the remaining free space. >> Let me explain this. >=20 > I don't have a bookmark so I can't send you a direct link but it was = mentioned before. refquota is similar to full pool in this case, so if = you are close to or over 80% full, you will notice this slowdown. > You can try to search the web for details. I found this interesting post from Matthew Ahrens : http://marc.info/?l=3Dfreebsd-fs&m=3D137184901423584 However it does not explain the (huge) performance difference between = quota and refquota. I did not found many more interesting things. > On 03 Sep 2016, at 16:59, Bram Vandoren = wrote: >=20 > I think the userquota property works without any problem though. Yes you're right, Matthew Ahrens also indicates that userquota should = not impact performance : = http://www.archivum.info/zfs-discuss@opensolaris.org/2010-08/00218/Re-(zfs= -discuss)-ZFS-Group-Quotas.html (which I also tested and can confirm) Ben