xfs
[Top] [All Lists]

Re: xfs_fsr, sunit, and swidth

To: Dave Hall <kdhall@xxxxxxxxxxxxxx>
Subject: Re: xfs_fsr, sunit, and swidth
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Sun, 31 Mar 2013 12:22:31 +1100
Cc: stan@xxxxxxxxxxxxxxxxx, "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <5155F2B2.1010308@xxxxxxxxxxxxxx>
References: <5141C1FC.4060209@xxxxxxxxxxxxxxxxx> <5141C8C1.2080903@xxxxxxxxxxxxxxxxx> <5141E5CF.10101@xxxxxxxxxxxxxx> <5142AE40.6040408@xxxxxxxxxxxxxxxxx> <20130315114538.GF6369@dastard> <5143F94C.1020708@xxxxxxxxxxxxxxxxx> <20130316072126.GG6369@dastard> <515082C3.2000006@xxxxxxxxxxxxxx> <515361B5.8050603@xxxxxxxxxxxxxxxxx> <5155F2B2.1010308@xxxxxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Fri, Mar 29, 2013 at 03:59:46PM -0400, Dave Hall wrote:
> Dave, Stan,
> 
> Here is the link for perf top -U:  http://pastebin.com/JYLXYWki.
> The ag report is at http://pastebin.com/VzziSa4L.  Interestingly,
> the backups ran fast a couple times this week.  Once under 9 hours.
> Today it looks like it's running long again.

    12.38%  [xfs]     [k] xfs_btree_get_rec
    11.65%  [xfs]     [k] _xfs_buf_find
    11.29%  [xfs]     [k] xfs_btree_increment
     7.88%  [xfs]     [k] xfs_inobt_get_rec
     5.40%  [kernel]  [k] intel_idle
     4.13%  [xfs]     [k] xfs_btree_get_block
     4.09%  [xfs]     [k] xfs_dialloc
     3.21%  [xfs]     [k] xfs_btree_readahead
     2.00%  [xfs]     [k] xfs_btree_rec_offset
     1.50%  [xfs]     [k] xfs_btree_rec_addr

Inode allocation searches, looking for an inode near to the parent
directory.

Whatthis indicates is that you have lots of sparsely allocated inode
chunks on disk. i.e. each 64 indoe chunk has some free inodes in it,
and some used inodes. This is Likely due to random removal of inodes
as you delete old backups and link counts drop to zero. Because we
only index inodes on "allocated chunks", finding a chunk that has a
free inode can be like finding a needle in a haystack. There are
heuristics used to stop searches from consuming too much CPU, but it
still can be quite slow when you repeatedly hit those paths....

I don't have an answer that will magically speed things up for
you right now...

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>