ext4 file fragmentation / defragmentation (really) - performance impact?

  • My 3 NAS drives show this level of fragmentation with


    sudo fsck.ext2 -fn /dev/sd_1


    2.8%

    7.7%

    17.0%


    ext4 is believed to be unfragmentable, but I'm wondering if 17% frag is why that disk is showing slow performance.



    One 25 GB file shows 51 extants which supposedly isn't supposed to have perf impact:


    My NAS is mostly a media server with typical single files running 10-70 GB. I either write the files from Windows with SMB or write them with nzbget. the system is an ARM odroid hc4.


    I know I am on omv 5.x but I intend to upgrade very soon. While I'm upgrading I'd like to see if I can prevent this level of fragmentation, possibly by tuning ext4 parameters. Or am I totally barking up the wrong tree? Web sources on ext4 fragmentation say it doesn't even exist, so I can't trust them to be authoritative on its impact (especially on an rpi-3 equivalent arm box).


    I did find some interesting links:

    ext4 options for a media drive
    2016 update: I’ve published a new article about setting up a new drive on my NAS. If you are doing this now I’d highly recommend you use a filesystem that has…
    www.stackednotion.com


    How can I completely defragment ext4 filesystem
    I want all my files in an ext4 filesystem not fragmented because of reasons. Sadly e4defrag (advised here: How to defrag an ext4 filesystem) fails to…
    askubuntu.com


    Aus der Community DataHoarder auf Reddit
    Entdecke diesen Beitrag und mehr aus der Community DataHoarder
    www.reddit.com


    Ext4 - ArchWiki

  • RidgeRacer

    Hat den Titel des Themas von „ext4 file fragmentation / defragmentation (really) -“ zu „ext4 file fragmentation / defragmentation (really) - performance impact?“ geändert.
  • chente

    Hat das Thema freigeschaltet.
  • With iotop i was able to determine that fragmentation probably isn't the problem.


    same drive, NAS to windows: 80 MBps

    to android tablet SD card: 8-10 MBps

    in VLC on android tablet (samba network streaming, guest/anonymous mode): 2-3 MBps


    Conclusion: VLC samba streaming is slow.

  • RidgeRacer

    Hat das Label gelöst hinzugefügt.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!