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

    swap not listed? [solved]

    Scheduled Pinned Locked Moved General pfSense Questions
    solved
    41 Posts 9 Posters 8.6k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Not by default. And it would be complex to add it.

      The aarch64 installs are created by imaging the target device directly, there is no installer like there is for amd64. The images used there do not have swap.

      Steve

      1 Reply Last reply Reply Quote 1
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Since you are running from an SSD you could partition the MMC and drop a swap slice on there if you really want swap but I wouldn't recommend doing that long term unless you're just wanting it for crash dumps.

        We're considering making it an option to disable swap memory usage while keeping swap for crash dumps but we don't have an option in for that yet.

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        JonathanLeeJ 1 Reply Last reply Reply Quote 2
        • GertjanG Gertjan referenced this topic on
        • JonathanLeeJ
          JonathanLee @jimp
          last edited by JonathanLee

          @jimp Is there a way to enable swap on the 2100?

          Make sure to upvote

          jimpJ 1 Reply Last reply Reply Quote 0
          • T
            The Party of Hell No @johnpoz
            last edited by

            @johnpoz When I ran the gpart show -p:

            => 40 234441568 ada0 GPT (112G)
            40 409600 ada0p1 efi (200M)
            409640 1024 ada0p2 freebsd-boot (512K)
            410664 984 - free - (492K)
            411648 2097152 ada0p3 freebsd-swap (1.0G)
            2508800 231931904 ada0p4 freebsd-zfs (111G)
            234440704 904 - free - (452K)my
            Swap file is ada0s3,

            I went to cat/etc/fstab:
            /dev/ada2p3 none swap sw 0 0

            So is the point at which I can edit fstab and change the ada2p3 to ada0p3? Then reboot pfsense?

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

              Yes you could just edit he fstab if you have only one drive now and it has a SWAP partition.

              T 2 Replies Last reply Reply Quote 1
              • T
                The Party of Hell No @stephenw10
                last edited by

                @stephenw10 yes that is the case. I have migrated through several computers and I am thinking the incorrect location for the swap file is a remnant of past configurations - dual boot with windows and separate storage drives pre-zfs to store partition images using third party imaging program. When I clean installed 23 pfsense+? and moved to zfs, I pulled in my confiig file off a USB drive on reboot.

                T 1 Reply Last reply Reply Quote 0
                • T
                  The Party of Hell No @The Party of Hell No
                  last edited by

                  @The-Party-of-Hell-No

                  Worked like a charm - now the swap partition shows up in the System Information widget.

                  GertjanG 1 Reply Last reply Reply Quote 1
                  • T
                    The Party of Hell No @stephenw10
                    last edited by

                    @stephenw10
                    Thank you again sir.

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate @JonathanLee
                      last edited by

                      @JonathanLee said in swap not listed? [solved]:

                      @jimp Is there a way to enable swap on the 2100?

                      Other than what's already been mentioned, if you use the new net installer to (re)install 24.03 on a 2100 you can specify the amount of swap space it will define (or disable by setting it to 0). The net installer does not use the old method of writing out disk images, it works similar to the full installation experience on amd64, even on aarch64/arm64.

                      I would only recommend choosing to enable swap on a 2100 if you have an SSD in there, though.

                      Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply Reply Quote 2
                      • GertjanG
                        Gertjan @The Party of Hell No
                        last edited by

                        @The-Party-of-Hell-No said in swap not listed? [solved]:

                        now the swap partition shows up in the System Information widget.

                        Now swap is working, you have to observe that is never - yeap, never, gets used.
                        Afaik, its useful to store crash dumps, so you an do some post mortem, after reboot, analyses.
                        If pfSense start to actively use the swap, let this be a sign to you to take of load of the system immediately.

                        This, the "Swp" line, should stay at "zero" always.

                        1ad5051c-a127-4a08-a96f-b1508c5a262d-image.png

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

                        T 1 Reply Last reply Reply Quote 1
                        • JonathanLeeJ
                          JonathanLee
                          last edited by

                          Can I in theory utilize the mmc as the 2100 max has a ssd after the fact just format that mmc and configure it for use with 23.05? I only want it for this system panic with use of the compex pcie card, it crashes when it goes full tilt but I canโ€™t get the info without the swap, I donโ€™t want to reinstall I just a temp accessible swap for use with the current issue.

                          Make sure to upvote

                          1 Reply Last reply Reply Quote 0
                          • jimpJ
                            jimp Rebel Alliance Developer Netgate
                            last edited by

                            While you could do that with the MMC, I wouldn't. If you have a cheap sacrificial USB thumb drive you could do it to that without worrying about potential harm to the MMC. I don't have the commands handy but you'd format the drive with gpart, add a freebsd-swap partition, then reference that partition in /etc/fstab as the swap parition. Then when you're done, remove the fstab entry, reboot and remove the thumb drive.

                            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

                            JonathanLeeJ 1 Reply Last reply Reply Quote 2
                            • JonathanLeeJ
                              JonathanLee @jimp
                              last edited by

                              @jimp thanks that is the info I need

                              Make sure to upvote

                              1 Reply Last reply Reply Quote 0
                              • T
                                The Party of Hell No @Gertjan
                                last edited by

                                @Gertjan
                                For sure. I have 16 gb of memory and pfsense+ rarely pushes past 40% (Usually with a pfBlockerNG update or snort update there will be a rise in memory usage.) so I assume I will never need the swap. It made more sense to accept the default settings when installing than trying to resize or remove the swap file especially since I am using a 120 gb ssd. When you have that much space, who cares about waste.

                                The point of the exercise was not to get the swap file to work, It was to get it to show up in the System Information widget in the GUI.

                                1 Reply Last reply Reply Quote 0
                                • JonathanLeeJ
                                  JonathanLee
                                  last edited by

                                  Whoohooo!!

                                  Screenshot 2024-05-07 at 07.47.35.png

                                  My swap is bigger than my ram

                                  ๐Ÿ˜

                                  Make sure to upvote

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

                                    It's common to have the SWAP as double the RAM size. That way you can dump the full ram to it if required. pfSense doesn't do that though.

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