| To: | Timothy Shimmin <tes@xxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] (and bad attr2 bug) - pack xfs_sb_t for 64-bit arches |
| From: | Russell Cattelan <cattelan@xxxxxxxxxxx> |
| Date: | Thu, 23 Nov 2006 11:37:46 -0600 |
| Cc: | Eric Sandeen <sandeen@xxxxxxxxxxx>, xfs@xxxxxxxxxxx |
| In-reply-to: | <26F2AE58A7D40E5170649BC2@timothy-shimmins-power-mac-g5.local> |
| References: | <455CB54F.8080901@sandeen.net> <455CE1E3.7020703@sandeen.net> <45612621.5010404@sandeen.net> <45627A4D.3020502@sandeen.net> <1164157336.19915.43.camel@xenon.msp.redhat.com> <5A1AC29043EE33BEB778198A@timothy-shimmins-power-mac-g5.local> <45647042.2040604@sandeen.net> <1164212695.19915.65.camel@xenon.msp.redhat.com> <45647CF8.8020104@sandeen.net> <26F2AE58A7D40E5170649BC2@timothy-shimmins-power-mac-g5.local> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla Thunderbird 1.0.7 (Macintosh/20050923) |
Timothy Shimmin wrote: Hi Guys, Yes I agree worst cast scenario is that the inode has reverted to an attr1 split and that space is being wasted in the attr portion. By the time an inode has flipped to btree mode for di_u how much of a performance hit is really going to be noticed? mapping the blocks for that inode is going to take multiple reads. Attr2 seems most effective at space optimization for the local and extent versions of di_u and probably not so much for btree. At least by fixing the size calculation the shortforms that do fit into di_a will now be added inline. What is happening now the btree is being re factored which is probably expensive and the attr is being added as extents since the original size used for the btree refactoring wasn't enough. So the change to add in the header size will at least make single case attrs more efficient since they will now be inline. If the attr does not fit inline then worst case the forkoff flips to attr1 default or a half and half split. Given the cost of refactoring a btree it might be better to have attr1 behavior? Since di_a will have extra space additional attr adds won't cause forkoff to move and thus won't cause a rebalance of di_u. So in thinking about this more does it make sense to actually not try to optimize the space needed for di_u when it is a btree? Maybe the first time an attr is added simply split the inode space doing the rebalance once? That would allow for more attrs to be added without rebalancing the data btree. The other scheme of space optimzation if the root btree node is sparse would say sure give more space to di_a but at the expense of a reblanace. So ya it's a bit of a guessing game.
|
| Previous by Date: | Re: XFS CORRUPTION 2.6.17.13?, Justin Piszcz |
|---|---|
| Next by Date: | Re: [xfs-masters] Re: 2.6.19-rc6 : Spontaneous reboots, stack overflows - seems to implicate xfs, scsi, networking, SMP, Nathan Scott |
| Previous by Thread: | Re: [PATCH] (and bad attr2 bug) - pack xfs_sb_t for 64-bit arches, Timothy Shimmin |
| Next by Thread: | Re: [PATCH] (and bad attr2 bug) - pack xfs_sb_t for 64-bit arches, Timothy Shimmin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |