Re: btrfs_tree_lock trylock

2008-09-08 Thread Andi Kleen
On Mon, Sep 08, 2008 at 10:02:30AM -0400, Chris Mason wrote: On Mon, 2008-09-08 at 15:54 +0200, Andi Kleen wrote: The idea is to try to spin for a bit to avoid scheduling away, which is especially important for the high levels. Most holders of the mutex let it go very quickly. Ok

Re: parity data

2008-09-08 Thread Chris Mason
On Sat, 2008-09-06 at 23:43 -0600, Eric Anopolsky wrote: Hi, A couple of questions. 1. Does btrfs currently have anything like raid 5 or 6? Not yet, it might one day. 2. One guy on my LUG's mailing list is really excited about the potential for setting redundancy on a per-file basis.

Re: btrfs_tree_lock trylock

2008-09-08 Thread Chris Mason
On Mon, 2008-09-08 at 12:13 -0400, jim owens wrote: Chris Mason wrote: My guess is that the improvement happens mostly from the first couple of tries, not from repeated spinning. And since it is a mutex, you could even do: I started with lower spin counts, I really didn't want to spin

Re: btrfs_tree_lock trylock

2008-09-08 Thread Stephen Hemminger
On Mon, 08 Sep 2008 12:20:32 -0400 Chris Mason [EMAIL PROTECTED] wrote: On Mon, 2008-09-08 at 12:13 -0400, jim owens wrote: Chris Mason wrote: My guess is that the improvement happens mostly from the first couple of tries, not from repeated spinning. And since it is a mutex, you

Re: btrfs_tree_lock trylock

2008-09-08 Thread Christoph Hellwig
On Mon, Sep 08, 2008 at 09:49:42AM -0700, Stephen Hemminger wrote: Not to mention the problem that developers seem to have faster machines than average user, but slower than the enterprise and future generation CPU's. So any tuning value seems to get out of date fast. So where do my fellow

[PATCH 1/4] update space balancing code for the new backref format

2008-09-08 Thread Zheng Yan
Hello, This patch updates the space balancing code to utilize the new backref format. By using the new format, we can walk up the reference chain and find all references to a given extent quickly. This patch improves the space balancing for data extents. To relocate a data block group, there