From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 p5JMOpmi076999 for ; Sun, 19 Jun 2011 17:24:51 -0500 Received: from ipmail07.adl2.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 350A8DDCD0E for ; Sun, 19 Jun 2011 15:24:49 -0700 (PDT) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [150.101.137.131]) by cuda.sgi.com with ESMTP id aOLhgX7MmNG22LWX for ; Sun, 19 Jun 2011 15:24:49 -0700 (PDT) Date: Mon, 20 Jun 2011 08:24:47 +1000 From: Dave Chinner Subject: Re: long hangs when deleting large directories (3.0-rc3) Message-ID: <20110619222447.GI561@dastard> References: <20110618141950.GA1685@x4.trippels.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20110618141950.GA1685@x4.trippels.de> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Markus Trippelsdorf Cc: xfs@oss.sgi.com On Sat, Jun 18, 2011 at 04:19:50PM +0200, Markus Trippelsdorf wrote: > Running the latest git kernel (3.0-rc3) my machine hangs for long > periods (1-2 sec) whenever I delete a large directory recursively on my > xfs partition. During the hang I cannot move the mouse pointer or use > the keyboard (but the music keeps playing without stuttering). A quick > way to reproduce is to "rm -fr" a kernel tree. So what is the system doing when it "hangs"? Is it CPU bound (e.g. cpu scheduler issue)? Is the system running out of memory and stalling everything in memory reclaim? What IO is occurring? > This happens on a 4kb SATA hard drive: How does this appear to the OS? as a 512/512, 512/4k or 4k/4k logical/physical sector size drive? > xfs_info /var > meta-data=/dev/sda1 isize=256 agcount=4, agsize=12800000 blks > = sectsz=4096 attr=2 > data = bsize=4096 blocks=51200000, imaxpct=25 > = sunit=0 swidth=0 blks > naming =version 2 bsize=4096 ascii-ci=0 > log =internal bsize=4096 blocks=25000, version=2 > = sectsz=4096 sunit=1 blks, lazy-count=1 > realtime =none extsz=4096 blocks=0, rtextents=0 > > /dev/sda1 on /var type xfs (rw,noatime,attr2,delaylog,logbsize=256k,noquota) Is your partition correctly sector aligned for however your drive maps it's 4k sectors? Cheers, Dave. -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs