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

    100% Swap

    Scheduled Pinned Locked Moved General pfSense Questions
    26 Posts 8 Posters 2.0k 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.
    • GertjanG
      Gertjan @johnpoz
      last edited by

      Same thing here on a ZFS 22.05 :

      a01b0153-8480-45b4-9ea4-ab878b059af7-image.png

      no swap.

      I didn't install, Netgate did that for me ;)

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

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @Gertjan
        last edited by johnpoz

        @gertjan yeah that is what I am running 22.05 zfs.. Im going to fire up my vms and check them they are running 2.6 and 2.7

        edit: ok that is odd, my 2.6 vm which is running zfs does show swap.. None of it being used, but it has a 2G swap.. swapinfo shows it..

        So why does my 22.05 not have one?

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        GertjanG 1 Reply Last reply Reply Quote 0
        • GertjanG
          Gertjan @johnpoz
          last edited by Gertjan

          @johnpoz said in 100% Swap:

          So why does my 22.05 not have one?

          You installed yours from scratch ?
          Mine is a SG4100 and when I opened it, it had still Texan air in it.

          No, wait, it was 22.02 and I upgraded straight to 22.05.

          @johnpoz said in 100% Swap:

          why does my 22.05 not have one?

          Because you're not needing it ? ;)

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

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @Gertjan
            last edited by

            @gertjan said in 100% Swap:

            Because you're not needing it ? ;)

            hehehe - that is true.. But still curious, I doubt I would of clicked on no swap in setup. I don't recall if this was clean install of 22.05 or upgrade from 22.02...

            Not something I am worried about, just more curious is all. I don't recall ever seeing swap ever be used in pfsense, as far back as I can remember even when I do recall swap being listed on the system widget, etc..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            GertjanG ? 2 Replies Last reply Reply Quote 0
            • GertjanG
              Gertjan @johnpoz
              last edited by Gertjan

              @johnpoz

              This intrigues me :

              @stephenw10 said in 100% Swap:

              However the SWAP is also used for dumping crash reports.

              and this is nice to know : swap is a scratch pad for crash dumps !
              If the drive went bad, and the OS crashes, it will dumping the crash dump not on the head of a sick drive / root partition.

              Not that I can not recall that the pfSense OS ( FreeBSD) crashed on me ...
              I do see a lot of PHP errors, nearly daily these days.

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

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

                Possibly because it's running from eMMC? The installer chooses different defaults depending on what it's installing to, the size of the install target.
                Everything I've checked here has swap expect where I disabled it. Or on ARM devices where the image is written out directly.

                Yes, not being able to retain crash dumps is a serious consideration when disabling SWAP:
                https://docs.netgate.com/pfsense/en/latest/development/panic-information.html#install-without-swap-space

                Steve

                GertjanG 1 Reply Last reply Reply Quote 0
                • ?
                  A Former User @johnpoz
                  last edited by

                  @johnpoz said in 100% Swap:

                  as far back as I can remember even when I do recall swap being listed on the system widget, etc..

                  22.05 Swap.jpg

                  This is right but also if you need really much ram, it is not fully filled automatically.

                  1 Reply Last reply Reply Quote 0
                  • S
                    scorpoin
                    last edited by scorpoin

                    swapinfo
                    Device 1K-blocks Used Avail Capacity
                    /dev/label/swap0 4194300 4194120 180 100%

                    top-info.png

                    Well it does create swap on installation it does not ask me how much space do you need during pfsense installtion.

                    1 Reply Last reply Reply Quote 0
                    • S
                      scorpoin
                      last edited by

                      well I did swapoff -a and then swapon -a

                      Swap become 0 :) .

                      Hope this will help some one else as well.

                      1 Reply Last reply Reply Quote 0
                      • GertjanG
                        Gertjan @stephenw10
                        last edited by

                        @stephenw10

                        For info : I've received my 4100 from .... not Netgate directly - from here, a reseller.
                        That is, from a reseller in France. It had 22.02 ( ? ) which I upgraded to 22.05 30 seconds after unwrapping it using the GUI.

                        It has an "128 GB NVMe M.2 SSD".
                        I have to try to re install from scratch, see what the "22.05" installer proposes me.
                        Maybe it was a 22.02 installer issue.

                        Or a plain human error, as these things can happen also ;)
                        Anyway, I real don't mind right now.

                        Anyway, @scorpoin :

                        fe1172fe-5120-4eb2-b8e6-8290755c10d9-image.png

                        with 25 Gb of memory .....

                        IMHO : when swap gets used, something must show up in the logs, with something called a 'reason'.

                        If no one comes up with some explanation , get ready to re install the system and ditch the config ...

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

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

                          Mmm, Unbound is using a HUGE amount of memory there.

                          1 Reply Last reply Reply Quote 0
                          • S
                            serbus
                            last edited by

                            Hello!

                            Try try the pcscd patch...?

                            John

                            Lex parsimoniae

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

                              That's not required in 22.05 and you should be able to see the pcscd process using the RAM if you hit that issue. But in versions before 22.01/2.6 you should certainly check that. Or upgrade! 😉

                              Steve

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