recursive_recursion [they/them]

Hobbyist game dev, software student

help me help you (recursive recursion) ♻️ - is my shtick

  • 8 Posts
  • 55 Comments
Joined 1 year ago
cake
Cake day: July 15th, 2023

help-circle





  • Make a subvolume only for the swapfile.

    doesn't this kinda defeat the purpose/benefits of using a swapfile?

    This is true for all files. Is it a bigger problem for swap?

    specificly swapfiles yes, for swap partitions nope

    How long ago did you have these issues?

    Dec 2022, was still using and testing with swapfiles then and said fuck it as it caused too much problems.

    I can't rule out user error till I retest and strictly "follow the guide to the T" as I made modifications while following the same Arch guide for swapfile with BTRFS

    edit:
    also for clarification, I'm still not sure which one is optimal/best as I initially thought that using swapfile was forward thinking for the future, I'm using and recommending swap partitions as it seems to be the easiest to implement once and use continuously without any problems atm.



  • As swap is recommended just in case all RAM is maxed it's better to have a swap partition as swap files have certain limitations when in combined use with BTRFS:

    • "subvolume - cannot be snapshotted if it contains any active swapfiles"
    • has a chance to fragment
    • has issues with hibernation (that I've personally encountered multiple times)

    here's the link for more info: https://man.archlinux.org/man/btrfs.5#SWAPFILE_SUPPORT

    after switching to a swap partition with BTRFS I've experienced no issues for a user configuration