Announcement

Collapse
No announcement yet.

Linux 5.7 Will Let You Setup A Swap File Over A Network With SMB3/Samba

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Linux 5.7 Will Let You Setup A Swap File Over A Network With SMB3/Samba

    Phoronix: Linux 5.7 Will Let You Setup A Swap File Over A Network With SMB3/Samba

    A last minute feature coming into the Linux 5.7 kernel on its last day of the merge window is experimental support for allowing a remote swap setup over a network using SMB3...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    Page fault, please reboot your router!

    Comment


    • #3
      I'm trying to imagine a use case for this, and I'm coming up blank. Anyone has any suggestions?

      Comment


      • #4
        This headline is exactly what I expected eventually would happen, when I started using Linux in 1996.

        Comment


        • #5
          So when does one need to enable swap over a network filesystem in 2020? Just curious.

          Comment


          • #6
            Originally posted by caligula View Post
            So when does one need to enable swap over a network filesystem in 2020? Just curious.
            In this case it's when you have access to an SMB3 fs, but no access to a local block device.v We all know linux is totally broken in out of memory situations. Sometimes you need swap space and if the only option is SMB3, that's what this is for.

            Comment


            • #7
              This makes sense being that Linux supports multi-level paging and setting priorities on each level.

              Setting a tiered page set on a 800Gbs Ethernet or a future Terabit+ backbone to some large fault tolerant flash array.

              The only concern would be where the CPU is significantly tasked, NFS and SMB tend to delay their responses to status which could break the page and cause a fault.

              Comment


              • #8
                Originally posted by caligula View Post
                So when does one need to enable swap over a network filesystem in 2020? Just curious.
                when you want to hibernate your office PC but don't want to waste 32GB of precious SSD space for the swap!

                Comment


                • #9
                  Originally posted by cynic View Post

                  when you want to hibernate your office PC but don't want to waste 32GB of precious SSD space for the swap!
                  That's what swap files are for.

                  Comment


                  • #10
                    The problem, traditionally, with these swap-over-network schemes (NFS, NBD, whatever) is that the network stack frequently needs to allocate memory for buffers etc. So if the swapping is triggered by the kernel failing to allocate memory, then you can have a deadlock.

                    Yes, it's possible to work around this, but, again, that's tedious work. Hopefully somebody's done it.

                    Comment

                    Working...
                    X