| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: rm -f * on large files very slow on XFS + MD RAID 6 volume of 15x 4TB of HDDs (52TB) |
| From: | Ivan Pantovic <gyro.ivan@xxxxxxxxx> |
| Date: | Wed, 23 Apr 2014 11:21:54 +0200 |
| Cc: | Speedy Milan <speedy.milan@xxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Luz99g+H7B4DhfbjyygVlsHrkzdAZ0Is1LHIhNtkezA=; b=YfV+5smtDJ3eCAvEsg2D5+aPFEZqNEM6iqYKkn+zy+CP3uqywvtbpkNnru6dOUEtuS AF7XixI568i3oEbiwF6V4FN5TR3KzvcxOM5PE78y8O9qnuysGSAFxc9K0+NswwfWnX8N rCh4MSNRnnumR2zH9zOfBU49GHdm6OpbIGk9VcKq5pTukAayhvgmYLVIEzyrZPS1lXtq Fw9LmygOeFAL1Ny9lHssRMjGew+ru/CE/r6uwx3JYvbFhSQ5sttbFrY0jbHkbBBrPQsl cqT1wNZtnY0E/vDUFercK8tVbADHzAaZJTgG7tmqklrGaYQv5TpY5HnyVD/OtBAlEzMl u9yQ== |
| In-reply-to: | <20140423082538.GR18672@dastard> |
| References: | <CAHuzUScfp19c_th_pfsZs05+yDz34MuEH-P1f+FF1dcivfH=5Q@xxxxxxxxxxxxxx> <20140423021835.GI15995@dastard> <53576A7D.9020303@xxxxxxxxx> <20140423082538.GR18672@dastard> |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 |
Hi Dave, well now it is quite obvious that file fragmentation was actually the issue. this is what munin has to say about that time frame when files were deleted. http://picpaste.com/df_inode-pinpoint_1397768678_1397876678-kpwd9loR.png http://picpaste.com/df-pinpoint_1397768678_1397876678-pQ7ZCTPu.png although the drives were "only" 50% busy while deleting all those inodes.it's quite interesting how we got there in the first place thanks to bacula backup and some other hardware failure not related to the backup server. On 04/23/2014 10:25 AM, Dave Chinner wrote: On Wed, Apr 23, 2014 at 09:23:41AM +0200, Ivan Pantovic wrote:[root@drive-b ~]# xfs_db -r /dev/md0 xfs_db> frag actual 11157932, ideal 11015175, fragmentation factor 1.28% xfs_db>this is current level of fragmentation ... is it bad?http://xfs.org/index.php/XFS_FAQ#Q:_The_xfs_db_.22frag.22_command_says_I.27m_over_50.25._Is_that_bad.3Fsome say over 1% is candidate for defrag? ...Some say that over 70% is usually not a problem: http://www.mythtv.org/wiki/XFS_Filesystem#Defragmenting_XFS_Partitions i.e. the level that becomes are problem is highly workload specific. So, you can't read *anything* in that number without know exactly what is in your filesystem, how the application(s) interact with it and so on. Besides, I was asking specifically about the files you removed, not the files that remain in the filesystem. Given that you have 11 million inodes in the filesystem, you probably removed the only significantly large files in the filesystem.... So, the files your removed are now free space, so free space fragmentation is what we need to look at. i.e. use the freesp command to dump the histogram and summary of the free space... Cheers, Dave. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: rm -f * on large files very slow on XFS + MD RAID 6 volume of 15x 4TB of HDDs (52TB), Dave Chinner |
|---|---|
| Next by Date: | Re: XFS fragmentation on file append, Stewart Smith |
| Previous by Thread: | Re: rm -f * on large files very slow on XFS + MD RAID 6 volume of 15x 4TB of HDDs (52TB), Dave Chinner |
| Next by Thread: | Re: rm -f * on large files very slow on XFS + MD RAID 6 volume of 15x 4TB of HDDs (52TB), Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |