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

    Swap on pfSense?

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 582 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.
    • T
      thearamadon
      last edited by

      I recently moved my pfSense install to another hard drive with new partition table, and I noticed that the swap usage on the dashboard was gone.

      I have a swap partition, and it's in the fstab as
      /dev/gptid/b47eb230-ee07-11ec-870e-6805ca08cf70 none swap sw 0 0

      but if I run swapctl -l, I get

      Device:       512-blocks      Used:
      

      If I run swapon -a, then swapctl -l, again, I get

      Device:       512-blocks      Used:
      /dev/gptid/b47eb230-ee07-11ec-870e-6805ca08cf70    8388608          0
      

      so obviously the fstab is fine...

      What gives? Am I just misremembering that swap was on before? Do I even really need a swap partition for pfSense? I've read that it's great for FreeBSD's memory allocator, but I'm not sure pfSense even has enough processes running for it to matter.

      Thanks!

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

        Generally you don't need swap and if you see pfSense using swap then it's usually a sign that something misconfigured.

        Steve

        T 1 Reply Last reply Reply Quote 0
        • T
          thearamadon @stephenw10
          last edited by

          @stephenw10 Thanks!

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