Re: Balance taking a lot longer than before

2010-03-18 Thread Mark Rada
Hmm, there seems to be a very very long list of "btrfs: found 1 extents" messages and nothing else in between them. Why would deleting large files help? I don't want to delete files on my server unless I have no other option. — Mark Rada mar...@uwaterloo.ca On 2010-03-18, at 11:19 PM, Yan, Zh

Re: Balance taking a lot longer than before

2010-03-18 Thread Yan, Zheng
On Fri, Mar 19, 2010 at 9:44 AM, Mark Rada wrote: > Hi devs, > > I've been using btrfs on my file server since 2.6.32 and after upgrading to > .33 I noticed that rebalancing took way longer than before. > > I have a 5 disk array used for a btrfs md setup, different hard drive sizes, > brands, an

Re: [PATCH] Btrfs: fix ENOSPC accounting when max_extent is not maxed out V2

2010-03-18 Thread Yan, Zheng
On Thu, Mar 18, 2010 at 11:47 PM, Josef Bacik wrote: > A user reported a bug a few weeks back where if he set max_extent=1m and then > did a dd and then stopped it, we would panic.  This is because I miscalculated > how many extents would be needed for splits/merges.  Turns out I didn't > actuall

Re: btrfs: why default 4M readahead size?

2010-03-18 Thread Shaohua Li
On Fri, Mar 19, 2010 at 08:59:48AM +0800, Shaohua Li wrote: > On Thu, Mar 18, 2010 at 08:53:13PM +0800, Chris Mason wrote: > > On Thu, Mar 18, 2010 at 09:42:57AM +0800, Shaohua Li wrote: > > > Btrfs uses below equation to calculate ra_pages: > > > fs_info->bdi.ra_pages = max(fs_info->bdi.ra_pages

Balance taking a lot longer than before

2010-03-18 Thread Mark Rada
Hi devs, I've been using btrfs on my file server since 2.6.32 and after upgrading to .33 I noticed that rebalancing took way longer than before. I have a 5 disk array used for a btrfs md setup, different hard drive sizes, brands, and interfaces. The last time I rebalanced I was using about 800

Re: btrfs: why default 4M readahead size?

2010-03-18 Thread Shaohua Li
On Thu, Mar 18, 2010 at 08:53:13PM +0800, Chris Mason wrote: > On Thu, Mar 18, 2010 at 09:42:57AM +0800, Shaohua Li wrote: > > Btrfs uses below equation to calculate ra_pages: > > fs_info->bdi.ra_pages = max(fs_info->bdi.ra_pages, > > 4 * 1024 * 1024 / PAGE_CACHE_SIZ

create debian package of btrfs kernel from git tree

2010-03-18 Thread rk
Hello, would somebody please write down how to create deb kernel package with latest btrfs from the git tree -- that would be a big help. thanks, rk -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info

Re: Saving and restoring btrfs snapshots

2010-03-18 Thread Chris Mason
On Tue, Mar 16, 2010 at 07:17:12PM +0100, Goffredo Baroncelli wrote: > Hi Chris > > On Monday 15 March 2010, Chris Mason wrote: > > On Fri, Mar 12, 2010 at 07:30:01PM +0100, Goffredo Baroncelli wrote: > > > On Friday 12 March 2010, Pat Patterson wrote: > > > > Are there any plans to implement some

Re: [GIT PULL] Btrfs updates

2010-03-18 Thread Chris Mason
On Tue, Mar 16, 2010 at 05:01:50PM -0400, Chris Mason wrote: > On Mon, Mar 15, 2010 at 03:18:07PM -0400, Chris Mason wrote: > > Hello everyone, > > > > The master branch of the btrfs unstable tree has a collection of fixes > > and features: > > git://git.kernel.org/pub/scm/linux/kernel/git/mason

[PATCH] Btrfs: fix ENOSPC accounting when max_extent is not maxed out V2

2010-03-18 Thread Josef Bacik
A user reported a bug a few weeks back where if he set max_extent=1m and then did a dd and then stopped it, we would panic. This is because I miscalculated how many extents would be needed for splits/merges. Turns out I didn't actually take max_extent into account properly, since we only ever add

Re: btrfs: why default 4M readahead size?

2010-03-18 Thread Chris Mason
On Thu, Mar 18, 2010 at 09:42:57AM +0800, Shaohua Li wrote: > Btrfs uses below equation to calculate ra_pages: > fs_info->bdi.ra_pages = max(fs_info->bdi.ra_pages, > 4 * 1024 * 1024 / PAGE_CACHE_SIZE); > is the max() a typo of min()? This makes the readahead size