X-Spam-Checker-Version: SpamAssassin 3.4.0-r929098 (2010-03-30) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.4.0-r929098 Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q1DHFxjq026850 for ; Mon, 13 Feb 2012 11:15:59 -0600 X-ASG-Debug-ID: 1329153357-04bdf07516a611a0001-NocioJ Received: from bombadil.infradead.org (173-166-109-252-newengland.hfc.comcastbusiness.net [173.166.109.252]) by cuda.sgi.com with ESMTP id dRcMGvgmBgQhIEQK (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 13 Feb 2012 09:15:58 -0800 (PST) X-Barracuda-Envelope-From: BATV+a6e2b0efa0efdca2062d+3095+infradead.org+hch@bombadil.srs.infradead.org X-Barracuda-Apparent-Source-IP: 173.166.109.252 Received: from hch by bombadil.infradead.org with local (Exim 4.76 #1 (Red Hat Linux)) id 1RwzVM-0004U6-8G; Mon, 13 Feb 2012 17:15:56 +0000 Date: Mon, 13 Feb 2012 12:15:56 -0500 From: Christoph Hellwig To: Richard Ems Cc: Christoph Hellwig , xfs@oss.sgi.com Subject: Re: XFS unlink still slow on 3.1.9 kernel ? Message-ID: <20120213171556.GA13449@infradead.org> X-ASG-Orig-Subj: Re: XFS unlink still slow on 3.1.9 kernel ? References: <4F394116.8080200@cape-horn-eng.com> <20120213170825.GA7197@infradead.org> <4F394442.9020307@cape-horn-eng.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F394442.9020307@cape-horn-eng.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html X-Barracuda-Connect: 173-166-109-252-newengland.hfc.comcastbusiness.net[173.166.109.252] X-Barracuda-Start-Time: 1329153358 X-Barracuda-Encrypted: AES256-SHA X-Barracuda-URL: http://192.48.157.11:80/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at sgi.com X-Barracuda-Spam-Score: 0.10 X-Barracuda-Spam-Status: No, SCORE=0.10 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1.3 tests=RDNS_DYNAMIC X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.88445 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.10 RDNS_DYNAMIC Delivered to trusted network by host with dynamic-looking rDNS On Mon, Feb 13, 2012 at 06:11:30PM +0100, Richard Ems wrote: > On 02/13/2012 06:08 PM, Christoph Hellwig wrote: > > On Mon, Feb 13, 2012 at 05:57:58PM +0100, Richard Ems wrote: > >> This is a backup system running dirvish, so most files in the dirs I am > >> removing are hard links. Almost all of the files do have ACLs set. > > > > How many ACLs do you usually have set? If they aren't stored inline > > but need to go out of the inode unlinks will be extremly slow for > > kernels before v3.2. > > > > Almost all dirs and files there do have ACLs set. > Each of them do have about 10 user ACLs and 10 default ACls. > Is that too many? > Is this then the reason for being that slow? That doesn't sound like a lot to me, but instead of guessing around, let's just check the actual facts. Does "xfs_bmap -a" for the kind of files you are deleting show any extents? If it doesn't the output will look like: # xfs_bmap -a internal internal: no extents if it has any it will look like: # xfs_bmap -a external external: 0: [0..7]: 8557712..8557719