Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Swap ON or OFF in PfSense

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JT40
      last edited by

      Hi, I'm performing a PfSense installation and I was wondering what could be the use of a SWAP partition, I have 16GB of Ram and I'm gonna use a little portion of it, probably 4GB with the plugins.

      But there is something important that comes up my mind, that is crash dump info, I don't care much on the installation process (if it doesn't fail :D), I care about future crashes.
      I have a few questions:

      1. How much space should I allocate? I have no disk space issues, so also 32GB is fine.
      2. Encryption? I assume yes, but does it handle it automatically? I mean the key etc
      3. The system should be able to perform a crash dump anyway before a crash, or before the kernel goes in panic, so, the SWAP is just an additional security to get these info? (assuming I don't have any othr needs for a SWAP partition)
      4. What is the swappiness level suggestion from PfSense?
      5. Can configure the crash dump in the PfSense UI? Or do I need to SSH into it?

      I'm not extremely familiar with BSD, hence I have few doubts and I need to stay away from crazy maintenances as I do with Linux :D

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Unless you have specific concerns about space or drive writes etc just accepting the defaults is fine.

        In general pfSense should never use SWAP and of you see it swapping it's usually because something is misconfigured.

        I still have some test systems that run from CF and on those I always disable SWAP because of the limited write cycles there.

        Steve

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.