ReiserFS notail question - relevant on reading or writing?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
ReiserFS notail question - relevant on reading or writing?
So I moved a filesystem over to ReiserFS (yes, version 3, yes, the one people say isn't maintained) just now. However, after doing more research, I found out that I want to use the notail option. I've added it in fstab now, but my question is... do I need to re-move the data to the partition to take advantage of the notail option, or is it used when reading only? Or both?
So, yeah, in short: I moved the data there WITHOUT notail. I now use notail. Will I gain anything from re-moving the data there WITH notail enabled?
I don't understand why you want notail. Reiserfs can store tiny files into the directory tree, so both reading and writing is faster. The problem was that old versions of LILO and GRUB could not read such files, so all the files in /boot failed to load and you could not boot. The notail option prevents writing file data into the directory tree.
Some installers still adds the notail option to fstab on /boot or / if you have no /boot partition. It slows things down and is not necessary unless you use an old version of GRUB/LILO.
Ok. I thought having the file in the directory tree would prevent a separate disk read/write, at the cost of some CPU time. I never tested it though. Those benchmarks are very old, and both the filesystem and the computers have changed a lot since then, so you should probably test it yourself.
Anyway, as I understand it, the option only matters when writing small files. If a file is written without the notail option, it still can be read with the option on, but then the file is already stored in the directory tree, so there should be no speed difference.
It's been years since the last time I used reiserfs. But yes, performance has always been tipically a reason to disable tail packing (which by the way also affects the "tails" of the big files, and not just the small files). Tail packing used to incur in a more than noticeable performance hit, hence most people just disabled it because of that, and not because of lilo or whatever (I've never experienced that lilo problem myself).
Note also that tail packing also packs the tails of different files together. I haven't done any test in that regard, but with that in mind, I can only guess that the writing operations must be much slower, because to store two tails from two different files they need to be somewhat repacked together, which will undoubtedly take some time.
Another things to consider is how bad reiserfs is when it comes to dealing with fragmentation, overall when tail packing is on. We can also imagine why. Reiserfs is hard in cpu terms, not strange considering all of this.
exscape, tail packing is used when writing to pack together tails of big files and to store the data of small files. You can then mount with notail but then only newer files will be stored without tail packing. So, yes. if tail paking is enabled by default (and I think it is), then tails will remain packed unless you move the files out and in again once the drive is mounted with notail.
Thanks, I figured as much. Doesn't matter too much though, as it's only on my /home partition (a small one, with bigger ones mounted inside for storage). One, it might not matter, and two, it's easy (like literally 5-10 minutes) to re-format. The root FS is notail from the start, and that's more work to change (more data, livecd needed to sync the last files, etc.).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.