Performance Test (Btrfs, ext4, f2fs and xfs) on Linux

Поделиться
HTML-код
  • Опубликовано: 7 ноя 2024

Комментарии • 72

  • @thoughtfulriderakj
    @thoughtfulriderakj 2 года назад +6

    This is hands down the best coverage of different file systems and their performance with utilities. Thank you for doing this 😊

  • @1234567zeek
    @1234567zeek 6 месяцев назад +1

    wow, thank you! This is exactly what I needed to know! Please keep up your good work.

  • @abobader
    @abobader 3 года назад +7

    Thanks DJ for this, was hoping you add as well zfs, again well done.

    • @CyberGizmo
      @CyberGizmo  3 года назад +5

      I should do ZFS on the same machine and will add it in a future re-visit to this topic, grate suggestion abobader

  • @securerandom5420
    @securerandom5420 3 года назад +5

    Thanks DJ. This lines up almost exactly with a similar benchmark I ran several years ago. I do tend to keep / on EXT4 and databases on XFS. I haven't personally come across a situation where that wasn't the best performance for the application.

    • @CyberGizmo
      @CyberGizmo  3 года назад +4

      I run almost the same combination ext4 and xfs...as they say it just works

  • @JD-im4wu
    @JD-im4wu 3 года назад +8

    nice, I use ext4 for my workstation, and exfat for my external. I encrypt the ext4 with luks and the other with veracrypt. Reason y i didnt put too much emphasis in benchmarking is due to the encryption which probably destroys the benchmarks anyway so i just went with compatibility and safety as my 1st priority of choosing my filesystems. i wonder how much of a difference choosing a filesystem makes benchmark wise when ur filesystem is encrypted.

  • @celonetvpn
    @celonetvpn Год назад +1

    Very good thank you!

  • @andreigiubleanu
    @andreigiubleanu 3 года назад +1

    DJ WARE is the man !

  • @pepek69andhalf
    @pepek69andhalf 2 года назад +1

    Thanks for the video!

  • @lsatenstein
    @lsatenstein 3 года назад +3

    Good morning from Canada.
    I have this thought and question. Did you run fstrim between different tests? I found, (1tb drive), that if fstrim was run before the first test, and not again, the first test would have an advantage. Later the same test done over would likely show to be less performing.
    fstrim experience: my 120 gig sata had a filefull error, and gparted showed lots of space). Running sudo fstrim -A returned a very substantial number of available blocks and I was able to nearly fill up the drive before it also balked at being full.

    • @CyberGizmo
      @CyberGizmo  3 года назад +1

      Opps forgot that will add it in the description

  • @luisortega8085
    @luisortega8085 3 года назад +5

    IO scheduler benchmarks would be nice too. Maybe also HDD benchmkars? :D

    • @CyberGizmo
      @CyberGizmo  3 года назад +3

      hahah sound like a good thing for you all to try, I want to stick with a set I can compare easily without spending 2 days to assemble the results, but who knows might add one or two more. Thanks for the suggestions Luis appreciate it

  • @hexearth8258
    @hexearth8258 3 года назад +3

    This is great work. It will be my reference for people who asks me about file systems and for myself too, as I've always prefered EXT4 or XFS. I will try F2FS just because you have shown it works well. And... Do you have a cold?

    • @CyberGizmo
      @CyberGizmo  3 года назад +2

      Yeah a bit of a cold. I have not put F2FS into production, I included it because of the Phoronix Benchmark, look for a video on that file system alone coming soon.

  • @manuelthallinger7297
    @manuelthallinger7297 2 года назад +2

    Using XFS for my System, got many improvements over the past and i really like that the cpu load for IO is much better than with ext4

    • @RogerioDuarte
      @RogerioDuarte 2 года назад

      Did you try xfs on ssd m.2?

    • @thoughtfulriderakj
      @thoughtfulriderakj 2 года назад

      @@RogerioDuarte yes using it on my samsung Evo 970 plus since 9 months on my laptop with EndeavoursOS. It will take time but you will slowly see the performance improvements over ext4 and btrfs.

    • @tombrown6363
      @tombrown6363 2 года назад

      @@thoughtfulriderakj same,EndeavoursOS with xfs

  • @adamu6941
    @adamu6941 3 года назад +4

    Logically, F2FS is the best choice for SSD and NVME drives, using NAND memories as it is developed by Samsung, I think they know their products very well ... but maybe I am wrong, I am not not an FS specialist ...

    • @HECKAKYH-ADEKBATEH
      @HECKAKYH-ADEKBATEH Год назад

      F2fs has zero security, it is similar like ext4 but with less checksums and it cheats on sync (fsync_mode) to achieve better speed - but this causes corruption risks on power outage. F2fs should only be used if filesystem is throwaway and can be verified by other means, like system partition of nixos or similar checksumming systems, and even then it needs either APS or be used with strict fsync mode to minimize corruption risk on power outage.

  • @msam300
    @msam300 10 месяцев назад

    thanks alot for this
    may i ask what is that "worker and concurrent workers" concept means?

    • @CyberGizmo
      @CyberGizmo  10 месяцев назад

      Welcome @msam300, to answer your question, the worker is a count of iozone test running at the same time, so worker 1 would be a single izone test running, worker 2 would be 2 iozone tests running...and so forth. Its designed to stress the storage device to see if latency is building up or not.

    • @msam300
      @msam300 10 месяцев назад

      @@CyberGizmo great! thank you sir so much for clarification, I really appreciate your work

  • @bertnijhof5413
    @bertnijhof5413 3 года назад +3

    I'm already for more than 2 years on ZFS for my desktop. It stopped my file corruption, caused by the frequent power breaks in my country of residence. I link to the zfs btrfs comparison would be usefull :)

    • @CyberGizmo
      @CyberGizmo  3 года назад +1

      Thanks Bert, I forgot to put that in the bench mark is about 31 minutes into the Fedora 33 Workstation review and I added the link to the description of this video. Cheers!

  • @CheapHomeTech
    @CheapHomeTech 3 года назад +1

    Watched until the end. Nicely done. I'd like to know a little more why some are best for SSDs despite their average speed in the tests. Then the elephant in the room was missing. How can ZFS be excluded? ZFS seems to be the up and coming replacement for ext4.

    • @CyberGizmo
      @CyberGizmo  3 года назад +1

      Hello Ivor, I have done ZFS benchmarks in the past, and for this test I wanted to repeat the same filesystems that were used in the Phoronix benchmarks, the SSD used was an older one as stated in the video and is a SATA SSD, again I have tested both harddrives and nVME drives in the past, but wanted to test my workstation which is an older build. Hope that helps. Watch down the road I am trying to gather enough benchmarks to make this a recurring theme when comparing file systems.

    • @CheapHomeTech
      @CheapHomeTech 3 года назад +1

      @@CyberGizmo thanks. It's probably from before I subscribed.

    • @CyberGizmo
      @CyberGizmo  3 года назад

      @@CheapHomeTech Thanks Ivor, and welcome to the channel :)

    • @HECKAKYH-ADEKBATEH
      @HECKAKYH-ADEKBATEH Год назад

      zfs is elephant, ext is fish...

  • @andrewpalm2103
    @andrewpalm2103 3 года назад +2

    Great. I converted my single user desktop machine to Fedora 33 with Btrfs. At least my backup laptop is still Ext4. I haven't noticed a practical difference, so maybe it's OK. But Fedora developers are currently not my favorite people, as I think I"ve been sold an experimental bill of goods I didn't really need. This Fedora change was touted as "for the desktop user," but my BS meter is pegged out.

    • @CyberGizmo
      @CyberGizmo  3 года назад +2

      Yeah its not a huge difference in performance with Btrfs. Is your root partition mounted on Btrfs, Andrew? The reason I ask is I thought I saw Btrfs being mounted on root when I first reviewed Fedora 33 Workstation, but when I went back to re-install it on my laptop, Btrfs was only being used on my /home

    • @lsatenstein
      @lsatenstein 3 года назад +3

      There is a trade off that was made by Fedora engineers. Recoverability versus some small loss of speed. Most of the time I use with Fedora 33 is with browsing youtube, responding to emails, and doing programming. I do not use Fedora 33 as a file server, where the benchmarks would be significant.
      Btrfs is mature and reliable and with compression=zstd, is not a space use hog. Future btrfs desktop improvements or tuning will likely be with caching so that repeated program loads will be from cache and veryt rapid.
      When I boot my system, I have a startup script that creates a directory on a tmpfs file system. In that directory I have the editor program and library files for the compiler. My favourite programs load in a flash. And by the way, if speed is your goal, you may want to change the sequence of directories listed in the PATH= statement.
      I will only replace btrfs with openzfs, when openzfs has a gpl2 / gpl3 license,

    • @andrewpalm2103
      @andrewpalm2103 3 года назад

      @@CyberGizmo I used the defaults on the v33 install, which has boot on ext4. Everything else (except efi) is btrfs.

  • @philipwalters3565
    @philipwalters3565 3 года назад +1

    I also have the 6700k on my main system - what processor are you looking to upgrade to going forward ?

    • @CyberGizmo
      @CyberGizmo  3 года назад +1

      Depends on availability but would like to replace it with an AMD Rysen 5800X (it might be awhile) :D

  • @zaheenjamil5990
    @zaheenjamil5990 3 года назад +1

    Do you think any of the results would be significantly different on nvme drives? Also how noticeable is file system performance in day-to-day usage? I currently use F2FS on my nvme drive just because its fast and I don't really need the extra features.

    • @CyberGizmo
      @CyberGizmo  3 года назад +1

      Hi Zaheen, great question, F2FS I have not used in production before so this would make a good follow up and see how it performs with nvme drives as well, I should work up some typical workloads too like startup times, application loads, maybe some browsing, a little database, for me I think I will had some video transcoding loads as well. Synthetic benchmarks can only show a range of performance using tightly controlled actions, what would be interesting would be a mixed workload. Thanks for the question, and sorry I don't have an answer, YET.

    • @one_flew_over_the_cuckoos_nest
      @one_flew_over_the_cuckoos_nest 3 года назад

      Works great on SSD also and in my case faster then the others.

    • @est1997-v8l
      @est1997-v8l 3 года назад

      @@one_flew_over_the_cuckoos_nest hello friend i want to install manjaro to nvme ssd. Can you help me which file system i should for partitions like /, /boot ,/home.

    • @one_flew_over_the_cuckoos_nest
      @one_flew_over_the_cuckoos_nest 3 года назад

      @@est1997-v8l Go for ext4, stable and fast overall the best!

  • @AgentX-dh3lf
    @AgentX-dh3lf Год назад +1

    You have a 1GB drive or 1TB drive??😀😀

  • @Comander311
    @Comander311 3 года назад

    Thank you :)

  • @diegonayalazo
    @diegonayalazo 3 года назад +1

    Thanks

  • @ForaDaBolha071
    @ForaDaBolha071 2 года назад

    nice!!

  • @JD-im4wu
    @JD-im4wu 3 года назад

    so to summarize ZFS is still the king of the hill!

  • @lsatenstein
    @lsatenstein 3 года назад +2

    Hi DJ,
    I am home waiting out the corona virus. While so doing, I watched your evalutation of the above file systems.
    If possible, could you do the same tests with zfs, and update your graphs?
    As I mentioned, RUclips and your videos and those of others help me in a few ways.
    a) Technology update,
    b) Do and dont do about Linux, bsd desktops and servers.
    c) FILE SYSTEMS
    Of the videos I watched pertaining to filesystems, my take away is
    btrfs should be avoided for desktop systems which have limited-size SSDs
    The f2fs file system, ranked below xfs, was designed for nand technology, which includes SSDs and M.2 drives.
    The xfs, ext4 and some others, with moderate to heavy use, will shorten SSD life.
    COW systems, such as btrfs, zfs, because rewrites are done to new flash-drive memory locations, go a long way to extending SSD life.
    The developers of f2fs have explicitly stated that the primary design goal of f2fs was to extend flash memory life, secondary,, to also be performant. From my youtube research, f2fs seems to solve both design requirements. I am wondering about this claim. I thought that the firmware within an SSD or M.2 drive did that for us.
    Following my superficial research, I found that f2fs is a great candidate for smartphones, as memory longevity is of primary concern.
    Back to your filesystem review. Have you any comments to make about zfs for the desktop? I am testing Ubuntu 2010 with zfs, That zfs version appears to be 8 releases behind openzfs. I did not find it very responsive. If it is the "miracle file system that it is claimed to be, I am hopeful that openzfs can be dual licensed to include gpl2. so that all Linux distros may include it as an installation option.
    Have a great day. I always look forward to your videos.
    Your Montreal Quebec fan.

    • @CyberGizmo
      @CyberGizmo  3 года назад +1

      I have been running xfs as the base file system on Samsung SSD's for my Glusterfs cluster for over 3 years, and they seem fine, its not a heavy use part of the system, I prefer to use larger drives for that work (ie. Spinning rust). I do not currently use F2FS, I included it in the review to match up with Phoronix's benchmarks. As for ZFS, that is the question isn't it, I compiled OpenZFS 2.0 and installed it on Ubuntu 20.10 Desktop, it has one glitch which is a packaging funtion, the ZFS pool does not automount after a reboot. I have looked into the problem and put in a "patch" to make it do so on my system. As for the licensing, CDDL is not compatible with the Linux kernel GPLv2, and I see an error message in the syslog files when the ZFS modules load "Linux kernel is tainted by CDDL". I wish and hope Oracle releases their source code for ZFS as GPLv2 or v3 that would solve the problem and make it less likely some company will get sued. As for me personally I am going to use it on Linux, I dont care if it "taints" the kernel or not it works well enough for my needs. Hope you have a swift recovery Leslie and a Happy Holidays to you!

  • @Sidicas
    @Sidicas Месяц назад

    If you do a test in such a way that it is disk hardware bottle necked, you should be including cou usage in every chart.

  • @RogerioDuarte
    @RogerioDuarte 2 года назад +1

    Using xfs on /home a very long time

  • @benjamindepaz8429
    @benjamindepaz8429 3 месяца назад

    1GB SSD or 1 Terabyte? 😊

  • @Idlecodex
    @Idlecodex 3 года назад +2

    Is that an U-87 mic? ...for a podcast like job?!??...
    I think what I’m feeling is jealousy! Lol

    • @CyberGizmo
      @CyberGizmo  3 года назад +2

      Hi Vinicius, no, its a Miktek Audio C7 microphone, trying to get a U-87, I'd have to sell both kidneys.

  • @robbs96
    @robbs96 2 года назад

    This is interesting. F2fs is said to have a massive improvement on ssd's but it looks like its not much different at all.

    • @CaptainDangeax
      @CaptainDangeax 2 года назад

      Trying F2FS on a mysql dedicated volume, I encountered performance issues with my database doing lots of inserts and updates, and very few reads. Moved the volume to XFS, performance are back again. So, I use F2FS for old SSD with not so important data storage (downloads, temporary data storage, personal projects backups...)

    • @HECKAKYH-ADEKBATEH
      @HECKAKYH-ADEKBATEH Год назад

      read f2fs paper first, it has challenges it addresses and is specific. Its for battery-backedup devices only which store irrelevant data (cache). It has no use on computers, because it trades slightly improved throughput (split log stream) for filesystem integrity (crap fsck, little checksumming).

    • @HECKAKYH-ADEKBATEH
      @HECKAKYH-ADEKBATEH Год назад

      Update: some of atomicity (crash security) of f2fs can be restored via fsync_mode strict option.

  • @franek4always
    @franek4always 3 года назад +1

    Where is ZFS v2 ?

    • @CyberGizmo
      @CyberGizmo  3 года назад +1

      Just now working on testing it, will be along soon

  • @hexearth8258
    @hexearth8258 3 года назад +1

    Next time you benchmark file systems, please include Stratis and yesterday Ermanno already made a video on how to use it ruclips.net/video/3XUxy1J5Gdc/видео.html because it's a Red Hat developed file system and it looks it can be fun to use.

    • @CyberGizmo
      @CyberGizmo  3 года назад

      I already did a video and benchmark of Stratis ruclips.net/video/faSh1ZuFlHM/видео.html

    • @hexearth8258
      @hexearth8258 3 года назад +2

      @@CyberGizmo oh ops and I did watch it. But well, Stratis is getting mature and it will reach production ready status soon, so maybe it will be good to include it also. Thanks

    • @CyberGizmo
      @CyberGizmo  3 года назад

      @@hexearth8258 I'll probably do another one after the first of the year.

  • @HECKAKYH-ADEKBATEH
    @HECKAKYH-ADEKBATEH Год назад

    f2fs is only suitable for mobile devices with backup power and for cached throwaway data. xfs is insecure. btrfs is great, but only at cost of 5x more write amplification and halved disk size (or two devices) - it can only selfheal in full dup. ext4 is best if data security is not very important. but so is reiserfs. Where are reiserfs tests, hmm? Controller sorts wear below anyway. Zfs is best for mass storage.

    • @HECKAKYH-ADEKBATEH
      @HECKAKYH-ADEKBATEH Год назад

      f2fs cheats on fsync, it saves sync calls by "posix" fsync mode, but this causes higher corruption chance.

  • @ForaDaBolha071
    @ForaDaBolha071 2 года назад

    nice!!

  • @kimsonvu
    @kimsonvu 3 года назад

    Thanks