Design documents and specification of Ext4 ?

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Design documents and specification of Ext4 ?

Post by quanganht »

Do u think Btrfs is better than ext4 in term of speed and stability? The two file system seems to have the same amount of documents anyway. So I'm looking for faster design, the faster is the better.
"Programmers are tools for converting caffeine into code."
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Design documents and specification of Ext4 ?

Post by Love4Boobies »

The two file systems struggle to achieve different goals. ext4 is probably more suitable for home systems while Btrfs for servers and perhaps even more distributed environments. If it's speed rather than features you're looking for, they are both in the wrong direction.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
NickJohnson
Member
Member
Posts: 1249
Joined: Tue Mar 24, 2009 8:11 pm
Location: Sunnyvale, California

Re: Design documents and specification of Ext4 ?

Post by NickJohnson »

For a first (or probably up to third) filesystem, I doubt ext4 is the best way to go - ext2 is much simpler. Afaik, the Linux folks didn't even have a stable implementation of ext4 until a few months ago. If you're not GPLed, and you want speed through complexity anyway, you might as well go with ZFS, which iirc is much better documented.
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Design documents and specification of Ext4 ?

Post by quanganht »

Is ZFS the fastest one?
"Programmers are tools for converting caffeine into code."
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Design documents and specification of Ext4 ?

Post by Combuster »

Google?


Still, if you want an established, used, fast (not fastest), and documented FS, you might want to check out XFS. But starting simple might be, especially considering your reputation in this thread, a much better idea.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Design documents and specification of Ext4 ?

Post by Love4Boobies »

quanganht wrote:Is ZFS the fastest one?
Haha, did you google for the slowest ones around or are you trying all the ones you know on us?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Design documents and specification of Ext4 ?

Post by quanganht »

I will not try something like ext or FAT16. Actually I (we) have a long term plan so I think it's better to choose a good FS and stick with it until the OS become mature.
"Programmers are tools for converting caffeine into code."
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Design documents and specification of Ext4 ?

Post by Love4Boobies »

Then try ext2 and/or FAT32. I don't even know any OS that implements ext support.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
jvff
Member
Member
Posts: 46
Joined: Sun Oct 24, 2004 11:00 pm

Re: Design documents and specification of Ext4 ?

Post by jvff »

Hi,

I would suggest ext2. It's not the fastest, but it's relatively fast and it's an easier start for ext3/4. Plus, there are lot's of documentation about ext2. As for ext3, I've only found one useful explanation of the journal implementation, but the Linux code is readable, as long as you know the basics of how file systems are implemented in Linux. I haven't read anything about ext4 yet so I can't help you there... Some books were helpful for me: Unix Filesystems - Evolution, Design and Implementation; and also the VFS, Cache and ext2 chapters of Understanding the Linux Kernel.

If you want the fastest file system, you must first consider where it's going to run. Either way, there is always a tradeoff. Consider Log file-systems, they provide probably the fastest write speeds for HDs (no seeking), however for reading it might be an entirely different story. If you want fast read speeds, tree organization certainly helps a lot (like Btrfs), however write speeds might suffer a little. If you truly want the fastest, you'll probably have to waste some space anyway...

Hope this helps, and good luck!

JVFF
Post Reply