Navigation

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

    Swap Not Enabled on Boot

    Installation and Upgrades
    4
    10
    1200
    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.
    • V
      Venlaw last edited by

      cat /etc/fstab
      # Device                Mountpoint      FStype  Options         Dump    Pass#
      /dev/ada0s1a            /               ufs     rw              1       1
      /dev/ada0s1b            none            swap    sw              0       0
      
      

      fstab has it. System isn't loading it. Was there on clean install, gone after backup restore?

      "swapon /dev/ada0s1b" and swap is back.

      How can I make this load at boot?

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

        If you reboot, does "swapon -a" also start it up?

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

          Sorry for taking so long to reply.

          @jimp:

          If you reboot, does "swapon -a" also start it up?

          Yes.

          Rebooted. No swap.

          swapon -a
          swapon: adding /dev/ada0s1b as swap device
          
          
          1 Reply Last reply Reply Quote 0
          • P
            Paul47 last edited by

            You have 4GB of ram. Do you really need swap?

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

              No, not really. But that's not the issue.

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

                What is in /etc/platform on that box?

                Unless somehow it's set to something it shouldn't be (cdrom, nanobsd, jail) then it should be running swapon -a during boot, and if it works from the command line it should work from there.

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

                  cat /etc/platform
                  pfSense

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

                    Hmm, that's right as well. I don't see how it's not activating at boot time for you. There isn't anything to turn that off and all indications are that it should be on and running.

                    1 Reply Last reply Reply Quote 0
                    • K
                      kolpinkb last edited by

                      I'm having the same issue on pfSense 2.3.2p1 amd64.

                      I have 8 GB of RAM but for some reason the amount of "inactive" memory on my setup is really high.  The only package I have installed is squid.

                      I average about 30-40M of "free" memory which upon moments of additional load on my systems completely maxes out and causes kernel panics/reboots/lockups.

                      Disabling squid gets me about 200M more of free memory and these kernel panics do not happen.

                      Activating swap manually with swapon /dev/… works and allows some breathing room and no more kernel panics even with squid enabled.

                      I read that this inactive memory is another type of caching that gets flushed when memory is needed.  However, with my system this doesn't seem to get flushed fast enough.

                      Does anyone know how to "force" lower the amount of inactive memory allocated?

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

                        That is not the same issue. Start a new thread rather than reviving a nearly two-year-old thread that isn't related.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Products

                        • Platform Overview
                        • TNSR
                        • pfSense
                        • Appliances

                        Services

                        • Training
                        • Professional Services

                        Support

                        • Subscription Plans
                        • Contact Support
                        • Product Lifecycle
                        • Documentation

                        News

                        • Media Coverage
                        • Press
                        • Events

                        Resources

                        • Blog
                        • FAQ
                        • Find a Partner
                        • Resource Library
                        • Security Information

                        Company

                        • About Us
                        • Careers
                        • Partners
                        • Contact Us
                        • Legal
                        Our Mission

                        We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                        Subscribe to our Newsletter

                        Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                        © 2021 Rubicon Communications, LLC | Privacy Policy