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

    Out of swap space

    Scheduled Pinned Locked Moved Hardware
    11 Posts 6 Posters 7.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.
    • H
      hoba
      last edited by

      What services are you running on that box? 446 MB should be plenty of ram to not have problems. What size of swap partition did you create with the installer?

      1 Reply Last reply Reply Quote 0
      • V
        vd
        last edited by

        It's a fresh and basic install of pfsense with no extra packages.

        Concerning the size of swap partiotion, I left the default size which was 1024 Mo.

        Thanks for your help

        Vincent

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

          @vd:

          It's a fresh and basic install of pfsense with no extra packages.

          Concerning the size of swap partiotion, I left the default size which was 1024 Mo.

          Thanks for your help

          Vincent

          When this happens, please run top from a shell and post the complete output if possible.

          1 Reply Last reply Reply Quote 0
          • V
            vd
            last edited by

            Hi

            I've not been unable to reproduce these errors since the last time.
            Unfortunatly, this morning, I got these errors. I couldn't access the pfsense via ssh.
            I saw error messages at the boot time at the console :
            swap_pager_getswapspace(<random number="">): failed  - plenty of this message
            swap_pager: out of swap space - once or twice.

            These messages came when it was displaying :
            starting /usr/local/etc/rc.d/*.sh… done (twice)

            On the webconfigurator, i saw a message : pfsense requires at lesat 128 mb of ram.
            I don't understand why pfsense is displaying such a message because I've got 512 Mb of RAM.

            Thanks in advance for you help

            Vincent</random>

            1 Reply Last reply Reply Quote 0
            • B
              billm
              last edited by

              We need the dmesg output from your machine (/var/log/dmesg.boot) to see if FreeBSD saw all your memory - you may have a buggy BIOS that doesn't report all the RAM to FreeBSD.

              –Bill

              pfSense core developer
              blog - http://www.ucsecurity.com/
              twitter - billmarquette

              1 Reply Last reply Reply Quote 0
              • V
                vd
                last edited by

                Hi

                I finally manage to send a file from pfsense to my workstation (win xp).
                Please find enclosed the dmseg.boot file.

                I don't understand anything at all. This time, my quantity of memory seems to be fully recognised but I haven't changed anything and for about 10 reboot before, only 128 Mb were recognised.

                Have you any idea ?
                Should I change of computer ? memory ?

                Thanks for your help.

                Vincent

                dmesg.boot.txt

                1 Reply Last reply Reply Quote 0
                • B
                  billm
                  last edited by

                  Maybe some flaky memory that didn't get recognized by BIOS in the boot that pfSense also saw only 128M.  Not sure…I have seen wierd stuff like that on machines in the past (well before pfSense was born, so completely unrelated).

                  --Bill

                  pfSense core developer
                  blog - http://www.ucsecurity.com/
                  twitter - billmarquette

                  1 Reply Last reply Reply Quote 0
                  • G
                    ginosteel
                    last edited by

                    i had this problem too.Sometime when i reboot the machine i see a lot o lines like "get swap space" and nothing is not recognized as command.Icannot access via web interface or via ssh.I have reply from the machine but still nothing.The only way to turn up is to power off and power on again.I think that is something  that goes wrong at the boot start.

                    1 Reply Last reply Reply Quote 0
                    • G
                      gbelanger
                      last edited by

                      Swap with another RAM stick and check again.

                      Damaged RAM produces really crazy errors. It happens to me at least once a month. Its worth a try.

                      -G

                      1 Reply Last reply Reply Quote 0
                      • V
                        vd
                        last edited by

                        Thanks GBelanger.
                        I've tried to change the ram stick for one 512 Mb stick and now I don't get each time i reboot the box.

                        I've noticed something and I don't know if it can help.
                        I've noticed that when I reboot the box just at the time it's under heavy load (cpu usage about 90 to 100%), the reboot is quite longer : it's quite long at the time it should display :
                        starting /usr/local/etc/rc.d/*.sh… done (twice)

                        And often, I get messages about out of swap space just instead of the normal display.

                        Hope this can help.

                        Thanks

                        Vincent

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