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

    Remove or Decrease Swap Space?

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 3 Posters 2.1k 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.
    • M
      mevans336
      last edited by

      Hi Guys,

      I have 20GB SSDs in my pfSense boxes and I noticed that disk space was being sucked up quickly. I installed the phpSysInfo package and it revealed that the "quick install" option allocated 16GB of that 20GB to swap space, I'm assuming since my boxes have 16GB of RAM in them.

      Is there any way to reclaim this space without reinstalling the whole machine?

      1 Reply Last reply Reply Quote 0
      • W
        webdawg
        last edited by

        Swap uses FreeBSD's default, 2xRAM.  You should be able to change it.  Do not know how.  I know after you do it you would have to resize the root partition.

        1 Reply Last reply Reply Quote 0
        • M
          mevans336
          last edited by

          @webdawg:

          Swap uses FreeBSD's default, 2xRAM.  You should be able to change it.  Do not know how.  I know after you do it you would have to resize the root partition.

          Thank you for your reply.

          I am wondering if anyone knows how to decrease the swap partition and add the reclaimed space to the root.

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by

            The base OS version we use doesn't support resizing partitions, you'd have to reinstall and restore.

            1 Reply Last reply Reply Quote 0
            • M
              mevans336
              last edited by

              @cmb:

              The base OS version we use doesn't support resizing partitions, you'd have to reinstall and restore.

              Thanks CMB. Luckily the backup and restore process is pretty much seamless.

              1 Reply Last reply Reply Quote 0
              • W
                webdawg
                last edited by

                @cmb:

                The base OS version we use doesn't support resizing partitions, you'd have to reinstall and restore.

                Could you not resize it with gparted?

                1 Reply Last reply Reply Quote 0
                • C
                  cmb
                  last edited by

                  @webdawg:

                  Could you not resize it with gparted?

                  with tools along those lines it may be possible, I've never tried that with UFS file systems. May be faster to reinstall and restore.

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