Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New filesystem: Btrfs!
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3 ... 24, 25, 26  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Fri Jun 15, 2007 9:03 am    Post subject: New filesystem: Btrfs! Reply with quote

Hi,

Did anybody of you try Btrfs yet (it's still in early alpha stages, I know)? It's a filesystem that is being developed by Chris Mason, which has, or will have, about the same properties as ZFS (snapshots, checksums on data and metadata, fast filesystem checking, etc.)
I'm currently compiling kernel 2.6.21 (thats what it needs, 2.6.20 won't work), and will report back when I have it working.

See also:
http://oss.oracle.com/~mason/btrfs/
http://kerneltrap.org/node/8376
_________________
http://techfield.org


Last edited by frenkel on Sat May 16, 2009 10:59 am; edited 1 time in total
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Fri Jun 15, 2007 9:40 am    Post subject: Reply with quote

I have it working. Didn't have any OOPS yet :D
I put my portage tree on it, and it seems to work correctly. Performance isn't too bad either.
Let's hope this will develop into something like ZFS!
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Fri Jun 15, 2007 11:12 am    Post subject: Reply with quote

Keep us informed :)
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Jun 15, 2007 11:33 am    Post subject: Reply with quote

BlackEdder wrote:
Keep us informed :)


+1 :P
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Fri Jun 15, 2007 11:58 am    Post subject: Reply with quote

Ok, it's not as great yet as I thought. After an emerge --sync there appears to be some corruption (portage gives CacheCorruption errors.) Other than that, it works great, especially snapshotting is awesome to have at filesystem level :)
Back to top
View user's profile Send private message
alexandervdm
n00b
n00b


Joined: 04 Jan 2007
Posts: 72

PostPosted: Fri Jun 15, 2007 9:01 pm    Post subject: Reply with quote

Good thing data corruption is only a minor issue in filesystems.

J/k, keep up the good work ;)
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Sun Jun 17, 2007 8:49 am    Post subject: Reply with quote

Seems it was an mmap bug. The author is fixing it.
Back to top
View user's profile Send private message
sschlueter
Guru
Guru


Joined: 26 Jul 2002
Posts: 578
Location: Dortmund, Germany

PostPosted: Tue Jun 19, 2007 9:36 pm    Post subject: Reply with quote

AforAlexander wrote:
data corruption is only a minor issue in filesystems.


Hilarious :lol:

This definitely needs to become a famous signature quote :wink:
Back to top
View user's profile Send private message
mudrii
l33t
l33t


Joined: 26 Jun 2003
Posts: 789
Location: Singapore

PostPosted: Wed Jun 20, 2007 2:00 am    Post subject: Reply with quote

frenkel
you could try ZFS on FUSE ;)
_________________
www.gentoo.ro
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Wed Jun 20, 2007 7:10 am    Post subject: Reply with quote

I don't like FUSE, and the ZFS implementation is very limited and slow. Btrfs is much better and faster, plus it's developed by Oracle.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu Jun 21, 2007 9:40 am    Post subject: Reply with quote

how efficient in terms of harddisk space usage is it?

they wrote, that it's efficient with small-files packing, so results should be pretty similar to reiserfs (v3.6) and/or reiser4

could you post some details:

du -hs /usr/portage

df -h /usr/portage



thanks in advance
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Thu Jun 21, 2007 9:46 am    Post subject: Reply with quote

There is still some issue with corruption, so I can't look at that right now, we are first trying to find out where the corruption comes from.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Jun 22, 2007 10:12 am    Post subject: Reply with quote

didn't Chris Mason write the log for reiserfs ?

good boy ;)

I'll love to test that filesystem after it has advanced a little in development :)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Sat Jun 23, 2007 6:36 pm    Post subject: Reply with quote

The corruptions bug was fixed, apparently it only showed up on 32bit systems, thats why the dev didn't find it at first.
Give it a try! :)
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Mon Jun 25, 2007 7:59 pm    Post subject: Reply with quote

is this fs actually writable ?

Quote:
rsync -azurP --delete /usr/portage/ /test/
building file list ...
160400 files to consider
rsync: delete_file: rmdir "/test/default" failed: Operation not permitted (1)
./
.ebuild.x
1045133 100% 11.10MB/s 0:00:00 (xfer#1, to-check=160398/160400)
rsync: mkstemp "/test/..ebuild.x.fIoAHy" failed: Permission denied (13)
rsync: symlink "/test/distfiles" -> "/data/distfiles/" failed: Operation not permitted (1)
header.txt
121 100% 1.33kB/s 0:00:00 (xfer#2, to-check=160396/160400)
skel.ChangeLog
3666 100% 37.69kB/s 0:00:00 (xfer#3, to-check=160395/160400)
skel.ebuild
7176 100% 70.79kB/s 0:00:00 (xfer#4, to-check=160394/160400)
skel.metadata.xml
881 100% 8.69kB/s 0:00:00 (xfer#5, to-check=160393/160400)
.cache/
rsync: recv_generator: mkdir "/test/.cache" failed: Operation not permitted (1)
*** Skipping everything below this failed directory ***
app-accessibility/
rsync: recv_generator: mkdir "/test/app-accessibility" failed: Operation not permitted (1)
*** Skipping everything below this failed directory ***
app-admin/
rsync: recv_generator: mkdir "/test/app-admin" failed: Operation not permitted (1)
*** Skipping everything below this failed directory ***


Quote:
/dev/sdd6 on /test type btrfs (rw)


using v0.4

thanks in advance

- this was just a small peak, I unforunately don't have the time to test it any deeper (but would like to, due to limited time)

keep on the good work :!:

this fs has potential :D
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Tue Jun 26, 2007 8:12 am    Post subject: Reply with quote

kernelOfTruth wrote:
is this fs actually writable ?

Quote:
rsync -azurP --delete /usr/portage/ /test/
building file list ...
160400 files to consider
rsync: delete_file: rmdir "/test/default" failed: Operation not permitted (1)
./
.ebuild.x
1045133 100% 11.10MB/s 0:00:00 (xfer#1, to-check=160398/160400)
rsync: mkstemp "/test/..ebuild.x.fIoAHy" failed: Permission denied (13)
rsync: symlink "/test/distfiles" -> "/data/distfiles/" failed: Operation not permitted (1)
header.txt
121 100% 1.33kB/s 0:00:00 (xfer#2, to-check=160396/160400)
skel.ChangeLog
3666 100% 37.69kB/s 0:00:00 (xfer#3, to-check=160395/160400)
skel.ebuild
7176 100% 70.79kB/s 0:00:00 (xfer#4, to-check=160394/160400)
skel.metadata.xml
881 100% 8.69kB/s 0:00:00 (xfer#5, to-check=160393/160400)
.cache/
rsync: recv_generator: mkdir "/test/.cache" failed: Operation not permitted (1)
*** Skipping everything below this failed directory ***
app-accessibility/
rsync: recv_generator: mkdir "/test/app-accessibility" failed: Operation not permitted (1)
*** Skipping everything below this failed directory ***
app-admin/
rsync: recv_generator: mkdir "/test/app-admin" failed: Operation not permitted (1)
*** Skipping everything below this failed directory ***


Quote:
/dev/sdd6 on /test type btrfs (rw)


using v0.4

thanks in advance

- this was just a small peak, I unforunately don't have the time to test it any deeper (but would like to, due to limited time)

keep on the good work :!:

this fs has potential :D


Direct in the root, you can create "sub file systems". By default there is only 1, named "default". Snapshots are also saved in this place. You should create a subfilesystem like this: btrfsctl -s portage /test. Then you can sync to /test/portage/
I don't know if the developer want's to keep it like this, I thought he was considering make a .snaps dir with the snapshots, and make the root normally writable, so you can use it as your / also.

Frank
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Tue Jun 26, 2007 8:32 am    Post subject: Reply with quote

Thanks, Frank,

now it finally worked :D

it seems to be pretty fast & efficient with space usage too:

Quote:
/dev/sdd6 btrfs 4,7G 281M 4,4G 6% /test
/dev/sdc8 reiser4 152G 42G 111G 28% /data
/dev/sdc7 reiser4 4,5G 144M 4,3G 4% /usr/portage


that reiser4 partition on /usr/portage uses lzo1 compression, so the result should be just fine

this is the result with a normal formatted reiser4-partition:

Quote:
/dev/sdd6 reiser4 4,5G 215M 4,3G 5% /test


ok, some other results:

reiserfs with -o noatime,nodiratime,data=writeback,commit=120
Quote:
sent 83604570 bytes received 3137684 bytes 2040994.21 bytes/sec
total size is 173726829 speedup is 2.00

real 0m43.363s
user 0m21.172s
sys 0m23.407s
lexa-x86 bin # time sync

real 0m4.077s
user 0m0.001s
sys 0m0.356s


reiser4 with -o noatime,nodiratime

Quote:
sent 83604570 bytes received 3137684 bytes 2668992.43 bytes/sec
total size is 173726829 speedup is 2.00

real 0m32.423s
user 0m21.371s
sys 0m21.048s
lexa-x86 bin # time sync

real 0m5.703s
user 0m0.000s
sys 0m0.090s


btrfs with -o noatime,nodiratime

Quote:
83604570 bytes received 3137684 bytes 2844008.33 bytes/sec
total size is 173726829 speedup is 2.00

real 0m30.625s
user 0m20.915s
sys 0m19.073s
lexa-x86 bin # time sync

real 0m1.883s
user 0m0.000s
sys 0m0.236s


pretty impressive for it's state, I'm pretty sure it will get faster :!:
- so it's already now faster than a default reiser4 partition (all data was in cache, so a pretty subjective test :roll: )

given it's integrity checks & features it could develop into a strong competition of zfs ...
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Tue Jun 26, 2007 8:36 am    Post subject: Reply with quote

And don't forget the snapshots! They work already, and it takes less than a second to create one :)
(Only problem there still is now, is that you can't remove subfilesystems and snapshots.... :lol:, you can, however delete everything from a snapshot or subfilesystem)
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Tue Jun 26, 2007 9:19 am    Post subject: Reply with quote

just noticed that data corruption somehow still exist:

Quote:
[ 1385.605496] btrfs: sdd6 checksum verify failed on 4
[ 1385.605682] btrfs: sdd6 checksum verify failed on 12
[ 1385.605874] btrfs: sdd6 checksum verify failed on 11
[ 1395.229653] btrfs: sdd6 checksum verify failed on 10


one "wish":
it should be at least as efficient with space usage like jfs & reiserfs (space usage: jfs ~ reiserfsv3.6)

then this will be my filesystem of choice (since reiser4 unfortunately still has some little glitches, which should hopefully be fixed soon)

will test that out later ...
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Tue Jun 26, 2007 9:24 am    Post subject: Reply with quote

kernelOfTruth wrote:
just noticed that data corruption somehow still exist:

Quote:
[ 1385.605496] btrfs: sdd6 checksum verify failed on 4
[ 1385.605682] btrfs: sdd6 checksum verify failed on 12
[ 1385.605874] btrfs: sdd6 checksum verify failed on 11
[ 1395.229653] btrfs: sdd6 checksum verify failed on 10


one "wish":
it should be at least as efficient with space usage like jfs & reiserfs (space usage: jfs ~ reiserfsv3.6)

then this will be my filesystem of choice (since reiser4 unfortunately still has some little glitches, which should hopefully be fixed soon)

will test that out later ...

Those are checksums of some metadata (for the root), which aren't checksummed yet. Somebody created a patch for this, so that mkfs does this checksums. It will be in the next release I think.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Jun 29, 2007 8:31 am    Post subject: Reply with quote

is filesystem compression an option for this fs ?

(similar to reiser4) or will this be handled via kernel ?
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Fri Jun 29, 2007 8:55 am    Post subject: Reply with quote

kernelOfTruth wrote:
is filesystem compression an option for this fs ?

(similar to reiser4) or will this be handled via kernel ?

This isn't an option (yet?). What do you mean with "will this be handled via kernel?"?
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Jun 29, 2007 10:03 am    Post subject: Reply with quote

I refer to dm-crypt & cryptsetup-luks, device-mapper
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Fri Jun 29, 2007 10:05 am    Post subject: Reply with quote

kernelOfTruth wrote:
I refer to dm-crypt & cryptsetup-luks, device-mapper

That's encryption, not compression...
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Jun 29, 2007 10:07 am    Post subject: Reply with quote

frenkel wrote:
kernelOfTruth wrote:
I refer to dm-crypt & cryptsetup-luks, device-mapper

That's encryption, not compression...


oops, got me :lol: (sleeping not much is no good)

I actually meant:

* Ext2 Compression Extension
* compFUSEd: transparent compression filesystem for Linux

so this isn't really handled by kernel, rather by userspace utils & fuse

just found this:

http://blog.pebcak.de/archives/492-ZFS-compression-and-filesystem-cache.html

so btrfs definitely needs compression for good competition against zfs :idea:

(ok, ok just some theoretical stuff, but nevetheless impressive)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D


Last edited by kernelOfTruth on Fri Jun 29, 2007 10:11 am; edited 2 times in total
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2, 3 ... 24, 25, 26  Next
Page 1 of 26

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum