Re: Mass-Hardlinking Oops

2009-10-12 Thread Tomasz Chmielewski
Yan, Zheng wrote: What is the reason for the limit, and is there any chance of increasing it to something more reasonable as Mikhail suggested? The limit is imposed by the format of inode back references. We can get rid of the limit, but it requires a disk format change. Please do get rid

soft lockup when leaf and node bigger than 4KB

2009-10-12 Thread Zhang Jingwang
I make a btrfs use 'mkfs.btrfs -m single -l 16384 -n 16384 /dev/xxx'. After mount it, I run a test script to create lots of files, then soft lockup occurs. After digging into the source code, I think there is a problem with bio-bi_end_io. when a bio is done, end_io function is called, it does

Re: Mass-Hardlinking Oops

2009-10-12 Thread Chris Mason
On Mon, Oct 12, 2009 at 10:07:43AM +0200, Tomasz Chmielewski wrote: Yan, Zheng wrote: What is the reason for the limit, and is there any chance of increasing it to something more reasonable as Mikhail suggested? The limit is imposed by the format of inode back references. We can get rid

Re: ENOSPC at 94% full -- and causing BUGs elsewhere?

2009-10-12 Thread Hugo Mills
On Sun, Oct 04, 2009 at 08:06:30AM -0400, Chris Mason wrote: On Sat, Oct 03, 2009 at 05:55:32PM -0400, Josef Bacik wrote: On Sat, Oct 03, 2009 at 01:21:09PM +0100, Hugo Mills wrote: I've just had the following on my home server. I believe that it's btrfs that's responsible, as the

Re: Mass-Hardlinking Oops

2009-10-12 Thread Goffredo Baroncelli
On Monday 12 October 2009, jim owens wrote: Pär Andersson wrote: I just ran into the max hard link per directory limit, and remembered this thread. I get EMLINK when trying to create more than 311 (not 272) links in a directory, so at least the BUG() is fixed. What is the reason for

Re: Mass-Hardlinking Oops

2009-10-12 Thread John Dong
On Oct 12, 2009, at 12:16 PM, jim owens wrote: Pär Andersson wrote: I just ran into the max hard link per directory limit, and remembered this thread. I get EMLINK when trying to create more than 311 (not 272) links in a directory, so at least the BUG() is fixed. What is the reason for the

Re: Mass-Hardlinking Oops

2009-10-12 Thread jim owens
Goffredo Baroncelli wrote: I don't know a software which need so many hard links. But it easy to find some similar cases. For example under my /usr/bin I have 478 _soft links_ to _different_ files. Hard link is not used in place of soft link... soft link is a different and preferred

Re: Mass-Hardlinking Oops

2009-10-12 Thread Tomasz Chmielewski
jim owens wrote: Pär Andersson wrote: I just ran into the max hard link per directory limit, and remembered this thread. I get EMLINK when trying to create more than 311 (not 272) links in a directory, so at least the BUG() is fixed. What is the reason for the limit, and is there any chance of

Re: Mass-Hardlinking Oops

2009-10-12 Thread berk walker
I believe one hard-link should be the maximum. berk -- 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 at http://vger.kernel.org/majordomo-info.html