From owner-freebsd-stable@freebsd.org Fri Oct 21 12:47:12 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 EFD94C1AAA1 for ; Fri, 21 Oct 2016 12:47:12 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from constantine.ingresso.co.uk (ingresso-1-pt.tunnel.tserv1.lon2.ipv6.he.net [IPv6:2001:470:1f1c:411::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C087AABF for ; Fri, 21 Oct 2016 12:47:12 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from dilbert.london-internal.ingresso.co.uk ([10.64.50.6] helo=dilbert.ingresso.co.uk) by constantine.ingresso.co.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87 (FreeBSD)) (envelope-from ) id 1bxZE4-000A3c-91; Fri, 21 Oct 2016 12:47:08 +0000 Received: from petefrench by dilbert.ingresso.co.uk with local (Exim 4.87 (FreeBSD)) (envelope-from ) id 1bxZE4-0003ja-7Y; Fri, 21 Oct 2016 13:47:08 +0100 To: emz@norma.perm.ru, slw@zxy.spb.ru Subject: Re: zfs, a directory that used to hold lot of files and listing pause Cc: freebsd-stable@freebsd.org In-Reply-To: <20161021120536.GI57876@zxy.spb.ru> Message-Id: From: Pete French Date: Fri, 21 Oct 2016 13:47:08 +0100 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: Fri, 21 Oct 2016 12:47:13 -0000 > In bad case metadata of every file will be placed in random place of disk. > ls need access to metadata of every file before start of output listing. Umm, are we not talkong abut an issue where the directoyr no longer contains any files. It used to have lots, now it has none. > I.e. in bad case you will be need tens of thousands seeks over disk > capable only 72 seeks per seconds. Why does it need to seek all over the disc if there are no files (and hence no metadata surely) ? I am not bothered if a hufge directoyr takes a while to list, thats something I am happy to deal with. What I dont like is when it is back down to zero that it still takes a long time to list. That doesnt make much sense. -pete.