Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-15-2011, 10:57 PM
|
#1
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,563
|
EXT4 vs BTRFS
I know EXT4 has been a long recommended filesystem that is stable and safe, but how does it compare to BTRFS, and would anyone recommend BTRFS for everyday general usage?
|
|
|
08-15-2011, 11:31 PM
|
#2
|
Member
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 631
|
If you have a single disk system (like a laptop, or cut-down desktop), then there's nothing gained by going btrfs. btrfs is, besides being a file system, also a volume manager (like ZFS). That 'advantage' is cut right down with only 1 disk, and then the possible extra complexity may in fact weigh against it. Even with a few disks, the advantage may be moot, as the Linux mdadm utility will slice, dice, join, stripe and liquify (:-) the disks and ext4 is smart enough to be able to be extended over the underlying volumes. Conclusion - stick with ext4 until it becomes painful obvious that you're a fool not to use btrfs.
|
|
|
08-15-2011, 11:31 PM
|
#3
|
Member
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204
Rep:
|
BTRFS is mostly stable now (no fsck utility yet however). EXT4 is obviously the choice for production machines. I've used BTRFS for awhile now and have been satisfied. But if you do not plan on using its extra features like cloning, subvolumes, and snapshots, just use EXT4.
|
|
|
08-15-2011, 11:46 PM
|
#4
|
Member
Registered: Dec 2003
Posts: 97
Rep:
|
Watch for when the major distributions start to suggest BTRFS as the default file system. That will probably be happening within the next year or two for the like of Fedora or Ubuntu, for instance.
As for why use BTRFS, it supports features like snapshots, on the fly compression, and improvements in speed and space utilizations in many scenarios. There is a lot of information out there about the pros and cons on various tech sites that goes into depth- just do a bit of a search to find them.
|
|
|
08-16-2011, 12:34 AM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,237
|
And it is (still) certainly worth it even for one disk.
Snaps before an update are potential life-savers. Also handy for point-in-time backups - take a snap, backup at convenience.
Easy, (almost) zero cost, but you need to remember to delete old ones. Guess how I found out about that one ...
Not ready for production tho' IMHO.
|
|
|
08-16-2011, 12:52 AM
|
#6
|
Member
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Rep:
|
With the kernel that comes with Slackware, you can not use the seed feature on an LVM, Luks, or anything that gets a virtual mount through a loop device. This goes for 2.6.38 and 39. I do not know about 3.0.
That being said, it works great under all setups for general use in situations where you could deal with data loss. This includes using non seed file systems on LVM, Luks, or loop devices. I haven't personally lost data using it, but I don't trust it yet with my archives.
BTRFS can be really nice if you want to start developing your own OS as well. The snap shot feature can let you install a complete system then snap shot it to several other locations and make your modifications there. I suppose you could do the same thing with a virtual machine at the cost of the possible speed issues associated with virtual machines... additionally, I think the concept allows for an instant chroot environment. Any changes would go with in that snap shot without any additional space required for the original files unless modified. But I'm not an expert on the possibilities.
BE WARNED: you can not use it like a regular file system. It is not designed for partitions less than 1gig. Seriously... a partion of 1 gig will only store about 500MB without balancing and 700MB afterwards. This has to do with something of how it's storing its inodes and b-tree data. If you intend to use it for things like /var and /tmp, it's best to make them sub volumes of your root and hope that they will add quotas... there is conflicting information on the wiki and I don't think it's implemented in the 2.6.38 kernel
On that note, your OS should be installed on a subvolume of the root btrfs file system. This takes extra concideration for installing slackware.
Last edited by lumak; 08-16-2011 at 12:54 AM.
|
|
|
08-16-2011, 03:53 AM
|
#7
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,563
Original Poster
|
I think for now I'll stick to EXT4 until BTRFS becomes more tried and true.
I may test it virtualized to see how well it does though against EXT4 and ReiserFS.
Not to venture off topic but has any word come back on Reiser4's development after Hans' imprisonment?
|
|
|
08-16-2011, 05:08 AM
|
#8
|
Senior Member
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,225
|
Quote:
Originally Posted by ReaperX7
Not to venture off topic but has any word come back on Reiser4's development after Hans' imprisonment?
|
According to some sources Reiser4 was being considered finally for inclusion in the main kernel, but so far it hasn't made it in. I wouldn't hold my breath in it being included anytime soon.
Back on topic: I just use JFS .
|
|
|
08-16-2011, 05:26 AM
|
#9
|
LQ Veteran
Registered: May 2008
Posts: 7,004
|
I've also used JFS for many years without issue. At the moment I have an ext4 based install, but that was just as an experiment to get some familiarity with it.
Though interesting, btrfs is still way to new to trust my data to.
|
|
|
08-16-2011, 05:38 AM
|
#10
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,237
|
Filesystems don't lose data, users lose data.
If it's not worth backing up properly, don't complain about losing it.
|
|
0 members found this post helpful.
|
08-16-2011, 07:02 AM
|
#11
|
LQ Veteran
Registered: May 2008
Posts: 7,004
|
Quote:
Originally Posted by syg00
Filesystems don't lose data, users lose data.
If it's not worth backing up properly, don't complain about losing it.
|
Having a solid backup regime doesn't negate the need for reliable, proven filesystems.
Trust to your backups if you will, but I'll trust to a reliable and proven filesystem and my backups.
|
|
|
08-16-2011, 08:28 AM
|
#12
|
Member
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Rep:
|
Another note. You may have issues with it if you like to use grub. It's much easier to get it to work with lilo as long as you have a separate /boot partition that's ext234... I don't think this is required in the 38 or 39 kernel... but it's all around easier to deal with a /boot partition that's 'normal'
|
|
|
08-16-2011, 08:56 PM
|
#13
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,563
Original Poster
|
I refuse to use JFS after a few "incidents".
I've seen the benchmarks of Reiser4 at Phoronix and they did seem very promising in performance.
Hopefully one day we'll see it in the partitioning script and see how useful it really is.
|
|
|
11-29-2014, 02:59 PM
|
#14
|
Member
Registered: Apr 2011
Distribution: slackware64-current
Posts: 525
Rep:
|
I wonder if or when Slack will make btrfs the default fs?
Has Alien Bob opined on this?
|
|
|
11-29-2014, 03:19 PM
|
#15
|
Member
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528
|
Alien Bob has opined on dredging up 3+ year old threads.
|
|
|
All times are GMT -5. The time now is 07:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|