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

    SWAP fills up to 100%

    Scheduled Pinned Locked Moved Hardware
    7 Posts 3 Posters 840 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
      hebein
      last edited by

      On the dashboard my swap space fills up to 100%.
      I have a Netgate SG5100, SW 21.05.2-RELEASE (amd64)
      Can I disable the swap / do I need it and if yes, where can I disable?

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @hebein
        last edited by

        @hebein
        If the swap is full also the memory will already exhaust. So check what eats up all the memory.

        You can check the processes ordered by mem usage in the console by

        top -n -o res
        
        H 1 Reply Last reply Reply Quote 0
        • H
          hebein @viragomann
          last edited by stephenw10

          @viragomann I get

          last pid: 57940;  load averages:  1.05,  0.84,  0.76  up 10+16:45:18    15:03:07
          61 processes:  1 running, 60 sleeping
          CPU:  0.7% user,  2.1% nice,  1.4% system,  0.0% interrupt, 95.9% idle
          Mem: 414M Active, 1252M Inact, 175M Laundry, 653M Wired, 267M Buf, 1396M Free
          Swap: 373M Total, 95M Used, 278M Free, 25% Inuse
          
            PID USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
          32598 root          9  40   20   690M   612M nanslp   1  39:21   2.93% suricata
          31271 root          9  40   20   529M   430M nanslp   0  40:56   2.64% suricata
          20145 root          3  20    0   328M   265M select   2   4:05   0.00% pcscd
          77945 root          8  40   20   218M   170M nanslp   0  25:23   1.46% suricata
          79782 root          9  40   20   178M   132M nanslp   2  25:18   1.46% suricata
          15240 unbound       4  20    0    81M    31M kqread   1   4:58   0.00% unbound
            356 root          1  52    0   107M    28M piperd   1   0:24   1.17% php-fpm
            357 root          1  52    0   104M    26M accept   1   0:16   0.10% php-fpm
          67210 root          1  52    0   104M    25M accept   3   0:12   0.78% php-fpm
          51204 root          1  52    0   104M    25M accept   0   0:14   0.29% php-fpm
            355 root          1  20    0   102M    16M kqread   2   0:19   0.00% php-fpm
          28573 root          1  20    0    29M  5696K kqread   2   0:15   0.00% nginx
          36387 dhcpd         1  20    0    23M  5164K select   3   1:52   0.00% dhcpd
          28318 root          1  20    0    29M  4880K kqread   0   0:00   0.00% nginx
           7451 root          1  20    0    15M  4828K nanslp   2   2:11   0.00% vnstatd
          28103 root          1  52    0    28M  4764K pause    0   0:00   0.00% nginx
          81682 root         85  20    0    58M  4712K uwait    0   0:07   0.00% filterdns
          67572 root          2  20    0    17M  4612K select   0   0:06   0.00% openvpn
          
          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @hebein
            last edited by

            @hebein
            So your system has only 2 G RAM and you're running Suricata?

            What do you except of Suricata?

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

              The 5100 has 4G by default.

              I also see pcscg using RAM though which is a known bug: https://redmine.pfsense.org/issues/12095
              It's fixed in 22.01 or you can apply this patch to 21.05.2:
              https://redmine.pfsense.org/issues/11933#note-7

              Steve

              H 1 Reply Last reply Reply Quote 0
              • H
                hebein @stephenw10
                last edited by

                @stephenw10 When are release candidates usually released. I would like to wait for the official release if possible.

                Regards,
                Gunther

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

                  22.01 will be "real soon now".
                  I would probably keep an eye on the RAM usage and just wait for it.

                  Or you can apply the patch to 21.05.2 to prevent pcscd being started at boot.

                  Steve

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