What filesystem will/should Pyra have for root FS?

Discussion in 'Pyra OS (Debian GNU/Linux)' started by Silent-Hunter, Jul 17, 2018.

  1. Silent-Hunter

    Silent-Hunter Advanced Member

    Joined:
    May 29, 2010
    Messages:
    2,792
    Apologies if I shouldn't be asking this, it was discussed in another thread but I thought it should have its own.

    What root filesystem should the Pyra use by default? Ext4 isn't very nice for flash memory, is it? I was thinking F2FS, but I dunno how mature it is.
     
    Tags:
    rygD likes this.
  2. levi

    levi Still fresh, damnit!

    Joined:
    Oct 6, 2008
    Messages:
    9,771
    Location:
    Somewhere off the coast of the EU
    The Pandora's seems to have been UBIFS. That still seems a reasonable choice for flash formatting, as far as I read it, but I don't know what debian's stance is on the various flash-optimised filesystems, which may have an influence.
     
  3. rygD

    rygD Nihilistic Mystic

    Joined:
    Feb 28, 2014
    Messages:
    7,266
    Location:
    Everywhere
    I learned something here today. Now I need to go look into things so I can have an opinion. Thanks for making my day, guys.
     
  4. Letalis Sonus

    Letalis Sonus Very Active Member

    Joined:
    Mar 5, 2009
    Messages:
    999
    Pandora -> raw flash, ext4 and F2FS are not an option
    Pyra -> HW FTL turns flash into a block based device, UBIFS is not an option
     
    _jr_ and levi like this.
  5. Silent-Hunter

    Silent-Hunter Advanced Member

    Joined:
    May 29, 2010
    Messages:
    2,792
    UBIFS only works on raw flash devices, without a flash transition layer. The eMMC in the Pyra is more like an SD card, so things like UBIFS won't work on it.
     
    levi likes this.
  6. ingoreis

    ingoreis Advanced Member

    Joined:
    Mar 7, 2012
    Messages:
    3,013
    Location:
    49.491276,8.423518
    ??
    I would prefer the fastest of these ;)
     
  7. Caine

    Caine Hardcore Member

    Joined:
    Jun 5, 2008
    Messages:
    4,081
    Location:
    Netherlands
    FAT32, what else :p

    [edit]This is not a serious proposal[/edit]
     
    Last edited: Jul 18, 2018
  8. levi

    levi Still fresh, damnit!

    Joined:
    Oct 6, 2008
    Messages:
    9,771
    Location:
    Somewhere off the coast of the EU
    exFAT is microsoft's filesystem for flash based block devices (SD cards, SSDs and so on). Now I don't know what the actual difference between exFAT and FAT32 is (linux seems to mount them both the same), but I understand in MS nomenclature you want exFAT, not FAT32.

    Ah, so we want something for block devices. I guess since we're no super-tight on space we want journalling and other stuff I don't really understand like extents, so something like btrFS would fit the bill, and maybe it being copy-on-write based would actually be helpful, if people want to extend it onto SD card or something.
     
  9. Letalis Sonus

    Letalis Sonus Very Active Member

    Joined:
    Mar 5, 2009
    Messages:
    999
    I've had enough issues with lost/emtpy files due to power loss and the filesystem driver going rampage after resuming from standby - you really don't want a beta file system on a device with increased exposure to such situations.

    ext4 is fine, fast and stable, the only missing feature that would be interesting is transparent compression, zstd would surely be able provide quite a boost in performance.
     
    cuantar and ible like this.
  10. levi

    levi Still fresh, damnit!

    Joined:
    Oct 6, 2008
    Messages:
    9,771
    Location:
    Somewhere off the coast of the EU
    Oh, is btrFS still in beta? Blimey, that feels like a long enough gestation. Not that I actually use it myself yet, but I was thinking for my next format I might give it a try. I'm everywhere ext4 now (apart from one stick I use to transfer stuff from windows, although these days I mostly transfer that stuff over a cifs mount).
     
  11. Silent-Hunter

    Silent-Hunter Advanced Member

    Joined:
    May 29, 2010
    Messages:
    2,792
    We don't want anything that will journal, it wears out flash devices quickly. The reason I suggested F2FS is it's specifically designed for flash based media.
     
  12. Letalis Sonus

    Letalis Sonus Very Active Member

    Joined:
    Mar 5, 2009
    Messages:
    999
    You may want to read Ted Ts'o's opinion on that matter. Additionally, most modern flash devices die due to their controller, not because they run out of write cycles.

    F2FS has a journal as well. Its optimizations primarily target the physical layout of flash memory and especially the typical behavior of FTLs, mostly to improve performance - actively minimizing meta-data write accesses was not a priority. You actually have to manually tailor its parameters to fit to the characteristics of your flash chips and FTL or you'll lose most of its flash-related benefits - which is a PITA because you usually do not get the information required to do so. This LWN article has some more detailed information about its inner workings.
     
    cuantar, _jr_ and FBnil like this.
  13. Silent-Hunter

    Silent-Hunter Advanced Member

    Joined:
    May 29, 2010
    Messages:
    2,792
    Ahh okay, so it doesn't really matter what we use then?
     
  14. Grench

    Grench Forum Addict!

    Joined:
    Oct 3, 2008
    Messages:
    5,761
    Personally I found that EXT2 performed the best on cards on the Pandora - so I plan to use it on the microSDXC in the Pyra. The eMMC will probably be left with whatever EvilDragon, hns, notaz & others (sorry mind blank on the rest of the development names) decide is best to format it to.
     
  15. Silent-Hunter

    Silent-Hunter Advanced Member

    Joined:
    May 29, 2010
    Messages:
    2,792
    That's why I made this thread, I wanted to ask what filesystem was best to use.
     
  16. ible

    ible Advanced Guard Tower

    Joined:
    Mar 24, 2014
    Messages:
    2,066
    Location:
    Thrice in CA, twice in ND, once in the NL
    i'll probably be boring and use ext4. fast (enough), stable, don't have to think about it.
     
    tarator and NetBLOKS like this.
  17. NetBLOKS

    NetBLOKS Finally on-board

    Joined:
    Nov 24, 2016
    Messages:
    134
    Location:
    Cologne
    Ext4 has my vote too.
    It's the de facto standard on debian or Linux local FS in general.
    The eMMC should be intelligent enough to expose the least used blocks to the FS for writing, so no harm there.
    And even if journaling would mean that my SD card dies faster, I don't want to miss a journal to safe my ass after power failure or system crashes (the Pyra software will be quite buggy at start I suppose).
     
    FBnil and cuantar like this.
  18. Silent-Hunter

    Silent-Hunter Advanced Member

    Joined:
    May 29, 2010
    Messages:
    2,792
    So will anyone know the FTL info for the eMMC we're using in the Pyra? If not, I suppose F2FS is out.
     

Share This Page

Loading...