Navigation

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

    Увеличить swap

    Russian
    3
    5
    108
    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.
    • R
      randreevich last edited by

      Всем привет.
      В логах ошибка:
      swap_pager_getswapspace: failed
      Подскажите, как увеличить swap?
      Если он не нужен, то как отключить.

      Наверное из-за этого периодически останавливаются службы squid и squidGuard.

      werter 1 Reply Last reply Reply Quote 0
      • werter
        werter @randreevich last edited by werter

        @randreevich

        Место свободное гляньте: df -hT
        Почистите логи сквида.
        Гуглите 'swap_pager_getswapspace failed pfsense'

        R 1 Reply Last reply Reply Quote 1
        • R
          randreevich @werter last edited by

          @werter
          логи почистил, на SWAP usage 40% стало меньше.
          на диске место достаточно.

          squid и squidGuard из-за заполненного SWAP могут останавливаться?

          werter 1 Reply Last reply Reply Quote 0
          • werter
            werter @randreevich last edited by werter

            @randreevich
            swap - последний рубеж перед падением.
            Если он забит, то система или kick-ет особо резвых (если успевает) или падает.
            ОЗУ хватает?

            Если у вас пф на UFS - resize swap ufs в гугле

            Зы. https://forums.freebsd.org/threads/swap-resizing-help.73836/
            И лучше, если бы свап был в виде ФАЙЛА, а не партиции https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swap-space.html#create-swapfile

            Т.е. :
            останавливаем все службы на пф, кроме жизненно важных
            отключаем своп
            удаляем своп-файл
            создаем новый своп-файл с тем же именем
            подключаем своп
            проверяем корректность записей в fstab (или что там во фряхе)
            перезагружаемся

            L 1 Reply Last reply Reply Quote 1
            • L
              luha @werter last edited by

              @werter Пффф... что за проблема. Злой админ не дал доступа к конфигам что-ли? (шучу)

              Всё это дело регулируется в файлике /etc/fstab

              • Хотите... создайте файл на диске и в fstab укажите его.
              • Хотите... подключите ещё один диск, хоть на 10Tb и укажите его в качестве свапа.
                ... дальше продолжать?
              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              Products

              • Platform Overview
              • TNSR
              • pfSense Plus
              • 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