Results 1 to 4 of 4

Thread: Swap file second harddrive ubuntu server

  1. #1
    Join Date
    Oct 2020
    Beans
    3

    Swap file second harddrive ubuntu server

    Hi!


    We are in the process of starting to set up a filcoin server with Ubuntu 18.04 server.
    We are a little hesitant about what is best.
    To install Ubuntu Server 18.04 on an SSD disk and Swapfile on a separate 2TB M.2 NVMe disk.
    Or it does not matter purely performance-wise to have the OS and the Swap file on the same disk and then, as a suggestion, on a 2TB M.2 NVMe.
    In addition, the spec looks like this.
    AMD Threadripper 3960x
    Asus Prime TRX40-Pro
    Corsair Vengeance LPX Black DDR4 4x32 = 128GB
    Seagate IronWolf Pro 2x10TB
    Puts great value in tips and help.


    // Michael

  2. #2
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Swap file second harddrive ubuntu server

    Thread moved to Server Platforms.

  3. #3
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    22,093
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Swap file second harddrive ubuntu server

    There was a thread here about swap 3-6 months ago. Seek it out. It has lots of good information.

    Basically, it is a way for 1 party to pay another party to hold their data securely. There is a middleman, certainly taking a cut. There have been many solutions for this over the decades, but this adds in a block chain aspect and should, in theory, provide infinite storage, for a price, though much of it will likely be slow.

    Seems like typical desktop systems need not apply. This all needs to be on redundant storage able to handle 100TB in a way that no loss of data can happen. That means ZFS and ECC RAM.

    The 20TB listed above doesn't come close to their required 100TB minimum.
    Rethink your RAM. It isn't ECC. When it comes to not screwing 1-bit up, you need ECC RAM. The motherboard listed supports ECC, so that's fine.

    IMHO, I don't use a swapfile. Use a swap partition or swap LV or whatever ZFS calls "swap" devices. Avoid the overhead of a file system for swap or other issues in using a file for a critical OS and security aspect to the system.

    https://filecoin.io/blog/filecoin-gu...torage-mining/ For people unfamiliar with filecoin, like me. That link has an overview of what filecoin is.

  4. #4
    Join Date
    Sep 2011
    Location
    Behind you!
    Beans
    1,440
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Swap file second harddrive ubuntu server

    Quote Originally Posted by sharkey97 View Post
    To install Ubuntu Server 18.04 on an SSD disk and Swapfile on a separate 2TB M.2 NVMe disk.
    Or it does not matter purely performance-wise to have the OS and the Swap file on the same disk and then, as a suggestion, on a 2TB M.2 NVMe.
    As a server admin, I try my best to ensure my servers are NEVER touching swap. Once it needs to swap out of RAM and into swap space...it won't matter much if it is ssd or nvme. Best performance means running out of RAM, not swap.

    EDIT: Starting with Ubuntu Server 18.04 and higher, I now use swap files rather than swap partitions.

    LHammonds
    Last edited by LHammonds; November 20th, 2020 at 02:40 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •