No Btrfs by default in Fedora 16
From: | Josef Bacik <josef-AT-toxicpanda.com> | |
To: | Development discussions related to Fedora <devel-AT-lists.fedoraproject.org> | |
Subject: | Btrfs status for F16 | |
Date: | Mon, 8 Aug 2011 08:44:44 -0400 | |
Message-ID: | <CAEzrpqesaT7PTvCy4=NP+RP4qMef8W0AY=3wWZ_24rNP+Vj_2w@mail.gmail.com> | |
Archive‑link: | Article |
Hello, In order to hopefully (and I understand this is a unrealistically big hope) stem the amount of hostile comments and random remarks about Btrfs not being ready for F16 that I get with _every_ bz that get's filed against it, let me announce this as clearly as possible BTRFS WILL NOT BE THE DEFAULT FILE SYSTEM FOR F16 Fesco outlined basic requirements that needed to be met by Alpha for the switch to be allowed to happen and we have not met those requirements so it won't be happening for F16. I appreciate those who will continue to use it and report bugs, we are working very hard on trying to get everything more stable and it is a slow going process. With your help we will be in a better situation for F17. Thanks, Josef -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Posted Aug 8, 2011 15:21 UTC (Mon)
by and (guest, #2883)
[Link] (13 responses)
Wasn't fsck.btrfs anounced to be released RSN back in february? I wonder what keeps it back for so long...
Posted Aug 8, 2011 15:25 UTC (Mon)
by rahulsundaram (subscriber, #21946)
[Link] (1 responses)
It can report errors but not correct them yet. Should be there soon, I hope
https://lists.fedoraproject.org/pipermail/devel/2011-Augu...
Posted Aug 8, 2011 15:58 UTC (Mon)
by trey (guest, #37500)
[Link]
http://marc.info/?l=linux-btrfs&m=131235467525138&...
Posted Aug 8, 2011 15:48 UTC (Mon)
by brunock (guest, #76114)
[Link] (9 responses)
http://free.linux.hp.com/~enw/ext4/3.0/large_file_creates...
Posted Aug 8, 2011 18:46 UTC (Mon)
by butlerm (subscriber, #13312)
[Link] (5 responses)
Posted Aug 8, 2011 19:15 UTC (Mon)
by brunock (guest, #76114)
[Link] (3 responses)
Posted Aug 8, 2011 23:06 UTC (Mon)
by butlerm (subscriber, #13312)
[Link] (2 responses)
It seems to me that what BTRFS needs for something like Firefox is the ability to disable copy-on-write for individual files, except when a user takes a volume snapshot. Alternatively, applications like Firefox could keep a backup database file, and only fsync the primary database file every ten minutes or so, and check on startup to see if the primary database file needs to be recovered from the backup.
Posted Aug 8, 2011 23:58 UTC (Mon)
by dlang (guest, #313)
[Link]
Posted Aug 9, 2011 17:36 UTC (Tue)
by iabervon (subscriber, #722)
[Link]
Posted Aug 11, 2011 15:27 UTC (Thu)
by anton (subscriber, #25547)
[Link]
Posted Aug 8, 2011 20:11 UTC (Mon)
by rodgerd (guest, #58896)
[Link] (2 responses)
2/ Some of the performance is just inherent to COW filesystems. If you look at benchmarketing exercises between ZFS/OpenSolaris and btrfs/Linux with something like a Postgresql load you'll see quite comparable performance.
3/ I would expect btrfs, long term, to shine in the same places ZFS does, which is with many spindles, and using all the features (data integrity, snapshots, and so on).
It feels kind of odd sticking up for btrfs.
Posted Aug 9, 2011 6:02 UTC (Tue)
by butlerm (subscriber, #13312)
[Link] (1 responses)
Posted Aug 9, 2011 22:20 UTC (Tue)
by gmatht (guest, #58961)
[Link]
Fixing on disk format is clearly a priority, but that is orthogonal to performance vs. features. For example, checksumming, and the "feature" of allowing hundreds of hardlinks per directory, requires format changes. On the other hand adding a heuristic to toggle datacow probably wouldn't.
Posted Aug 8, 2011 16:08 UTC (Mon)
by masoncl (subscriber, #47138)
[Link]
We have a lot of very active development work going on, and while my all of my R&D time on is fsck, I still need to patch and test the kernel parts too. I did let a few distractions creep in, such as redoing the metadata locking in 3.1-rc1, but that was a major performance bottleneck.
I think f17 is a better choice for Fedora. We're working in parallel on the fsck and closing off the few remaining performance issues.
Posted Aug 8, 2011 16:35 UTC (Mon)
by dcg (subscriber, #9198)
[Link] (1 responses)
It would be nice if in F16 could at least add subvolume support in Anaconda...
Posted Aug 8, 2011 16:39 UTC (Mon)
by rahulsundaram (subscriber, #21946)
[Link]
Posted Aug 9, 2011 7:36 UTC (Tue)
by SLi (subscriber, #53131)
[Link] (20 responses)
Posted Aug 9, 2011 7:49 UTC (Tue)
by SLi (subscriber, #53131)
[Link] (7 responses)
Seriously I have tried many other filesystems with several real-world benchmarks. In nearly all benchmarks ext4 is among the best performers, not always stellar but really good anyway. All other filesystems I have tested (xfs, jfs, btrfs) seem to perform *really* poorly in some rather pathological but realistic and real-world cases.
For some filesystems the pathological case could be deleting huge directory structures, for others creating a lot of small files, and for many of them mass symlinking.
The one filesystem that generally performed even better than ext* (I think ext3 at the time, which did have some performance problems) was reiser4. However on three separate occasions of mere testing use I experienced massive corruption with reiser4 when the developers had already declared it stable (Some bug was always fixed after I reported that...), so while it seemed promising at the time, I would never use it in production use without a lot of further testing.
But then I think such performance tuning with btrfs would be premature at this point where such basic features as symlinks are not supported well enough.
Posted Aug 9, 2011 18:41 UTC (Tue)
by bcopeland (subscriber, #51750)
[Link] (4 responses)
I don't know if any changes in ext4 specifically addressed that, so perhaps it is still the case. But then all the tools starting doing sort-by-inode to sidestep the problem so it's less of a problem today.
Posted Aug 9, 2011 20:12 UTC (Tue)
by cmccabe (guest, #60281)
[Link] (3 responses)
I think the ext4 multiblock allocator probably also helps the situation with directories with many small files.
A lot of these optimizations will be less important once the world moves to SSD. On hard drives, though, keeping related stuff close together is the name of the game.
Posted Aug 9, 2011 20:38 UTC (Tue)
by etrusco (guest, #4227)
[Link]
Posted Aug 9, 2011 20:47 UTC (Tue)
by Lennie (subscriber, #49641)
[Link] (1 responses)
Posted Aug 12, 2011 3:24 UTC (Fri)
by rodgerd (guest, #58896)
[Link]
Posted Aug 11, 2011 11:56 UTC (Thu)
by smurf (subscriber, #17840)
[Link] (1 responses)
I do hope that btrfsck will do better.
Posted Aug 11, 2011 12:35 UTC (Thu)
by nye (subscriber, #51576)
[Link]
Only if you use the --rebuild-tree option to reiserfsck which is explicitly designed to trawl over a partition looking for anything which might be reiserfs structures as a last resort for recovering a badly wrecked filesystem which would otherwise be a write-off.
'Doctor, it hurts when I do this'.
Posted Aug 9, 2011 8:29 UTC (Tue)
by SLi (subscriber, #53131)
[Link] (11 responses)
Posted Aug 9, 2011 21:43 UTC (Tue)
by mrons (subscriber, #1751)
[Link] (10 responses)
I have a filesystem (ext4) that has has over 8 million hard links.
What are they thinking here? Surely this is a mistake.
Posted Aug 9, 2011 22:01 UTC (Tue)
by raven667 (subscriber, #5198)
[Link] (9 responses)
Posted Aug 9, 2011 22:13 UTC (Tue)
by mrons (subscriber, #1751)
[Link] (1 responses)
Yes.
After following the threads in the above bugzilla, I see that the problem is not as severe as I thought. To quote Chis Mason:
> Please keep in mind this is only a limit on the number of links to a single file where the links and the file are all in the same directory
So with that limit I would likely be able to re-create my filesystem on btfs, but only just.
Posted Aug 10, 2011 12:03 UTC (Wed)
by SLi (subscriber, #53131)
[Link]
What does it mean for "the file" to be in one directory and a hard link in another? For example in my backuppc setup there's a pool of files indexed and named by (basically) their SHA1 sums, and multiple hardlinked copies of the backed up filesystem state. Now as far as I can tell, if you just happen to have lots of files with the same content in one directory, you are going to hit this bug, right? As the hard link is only a reference count, it doesn't make sense to say that the file "is" in the pool directory, does it?
Posted Aug 10, 2011 12:07 UTC (Wed)
by SLi (subscriber, #53131)
[Link] (6 responses)
Posted Aug 11, 2011 0:33 UTC (Thu)
by cmccabe (guest, #60281)
[Link] (5 responses)
Basically, you don't need a clever and feature-rich backup system in userspace if you have a filesystem that provides snapshots that work well.
Of course, neither one of these things can replace a real backup to a separate physical computer or to tapes that are stored in a different place.
Posted Aug 11, 2011 12:00 UTC (Thu)
by SLi (subscriber, #53131)
[Link] (2 responses)
Posted Aug 11, 2011 15:13 UTC (Thu)
by raven667 (subscriber, #5198)
[Link]
Posted Aug 11, 2011 18:22 UTC (Thu)
by cmccabe (guest, #60281)
[Link]
Another thing you can't do is copy-on-write within files. Let's say your filesystem contains a bunch of 20 gigabyte virtual machine images. Between snapshot A and snapshot B, I modify 1 megabyte of data inside one of these giant images. Your hardlink script needs to copy the whole 20 gigabyte virtual machine image, since it has changed. But btrfs' copy-on-write only needs to copy the part that has changed.
btrfs isn't the right filesystem for every application. But you should at least give it a chance.
Posted Aug 11, 2011 12:03 UTC (Thu)
by smurf (subscriber, #17840)
[Link] (1 responses)
They also have the less-than-intriguing disadvantage that writing to the middle of a file can result in running out of disk space. Databases typically don't cope with that at all well. (Running out while extending a file, OTOH, is a well-understood problem.)
Posted Aug 11, 2011 14:30 UTC (Thu)
by nix (subscriber, #2304)
[Link]
No Btrfs by default in Fedora 16
> checker, and that is not yet on offer.
No Btrfs by default in Fedora 16
btrfs-progs-0.19-13.fc15.x86_64
No Btrfs by default in Fedora 16
http://marc.info/?l=linux-btrfs&m=131240481916170&...
No Btrfs by default in Fedora 16
http://free.linux.hp.com/~enw/ext4/3.0/random_writes.html
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
And busy relational databases aren't a server only feature.
Think of your spam filter or about what Firefox does in the
background all the time.
So I guess normal users will get hit by this problem, too.
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
isn't a copy on write approach the opposite of what one
would normally choose to get high random write
performance?
No, if you read the position
paper on log--structured file systems, of which COW file systems
are a generalization, write performance was the main argument for this
style of file system. In particular, random writes are very slow on
an in-place-updating file system, because they require many seeks.
In contrast a copy-on-write file system can just write them (and their
meta-data) sequentially, i.e., quickly, requiring just one seek (and
maybe another one to update the root block). Of course, if you want
to read the resulting files sequentially, this strategy loses; you
cannot have it all.
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
On disk format vs. mount options.
No Btrfs by default in Fedora 16
What about subvolume support in Anaconda?
What about subvolume support in Anaconda?
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16
No Btrfs by default in Fedora 16