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

    SG 1100 runaway memory usage

    Scheduled Pinned Locked Moved General pfSense Questions
    21 Posts 4 Posters 1.9k Views 5 Watching
    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.
    • S Offline
      SteveITS Rebel Alliance @csfshore
      last edited by

      @csfshore pscsd will be disabled by default in 21.09 which should be out shortly since they have published the release notes. If you don't use IPSec you can just stop the service for now, or there's a patch to disable it properly.

      Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
      When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
      Upvote ๐Ÿ‘ helpful posts!

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        csfshore @SteveITS
        last edited by

        @steveits Thanks for reply.

        No pscsd process. php-fpm is "top" with 104M

        (Also I wouldn't expect IPSec to be running as
        I am all "vanilla"? Plugged it it, it worked. Whew.)

        However, it is the memory racing that prohibits
        me from experimenting with more functionality.

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          SteveITS Rebel Alliance @csfshore
          last edited by

          @csfshore I typo'd it... it's the pcscd Gertjan mentioned. Status/Services:
          pcscd PC/SC Smart Card Daemon

          That's a known gradual memory leak. If it's something else you'll have to spot it I'm afraid, since that behavior isn't normal.

          Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
          When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
          Upvote ๐Ÿ‘ helpful posts!

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            csfshore @SteveITS
            last edited by

            @steveits OK thanks.

            Any idea how I would go about tracking it down?

            Just continue to monitor via top?

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

              If it is the pcscd issue you will see it in the top output.

              I would just apply the patch to disable it though. You do not need that running anyway.
              https://redmine.pfsense.org/issues/11933#note-7

              Steve

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                csfshore @stephenw10
                last edited by

                @stephenw10 Thanks but no pcscd visible.

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

                  But RAM usage is visibly increasing somewhere?

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    csfshore @stephenw10
                    last edited by

                    @stephenw10 Yes. Over a period of a week? or so it
                    goes from usual 21-23% to 93%. The first time it
                    happened I thought it was something I did, but again
                    "vanilla" install with to packages installed.

                    It's a residential install with about 400 MB of traffic a day

                    C 1 Reply Last reply Reply Quote 0
                    • C Offline
                      csfshore @csfshore
                      last edited by

                      @csfshore NO packages installed

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

                        So it spikes suddenly from 25% to 93%?

                        Check the Status > Monitorng Graphs.

                        Steve

                        C 1 Reply Last reply Reply Quote 0
                        • C Offline
                          csfshore @stephenw10
                          last edited by

                          @stephenw10 Processes 131

                          (But I must confess, I don't know what I'm looking at)

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

                            Change that graph to System > Memory. Like:

                            Screenshot from 2021-09-17 19-39-12.png

                            If you have a leak it will be ramping up slowly.

                            Steve

                            C 1 Reply Last reply Reply Quote 0
                            • C Offline
                              csfshore @stephenw10
                              last edited by

                              @stephenw10 Ah brilliant! Got it, thanks

                              C 1 Reply Last reply Reply Quote 0
                              • C Offline
                                csfshore @csfshore
                                last edited by

                                @csfshore This is what I look like, and it was around 9am when I had to reboot as I was at 93% utilized

                                Screen Shot 2021-09-17 at 3.04.26 PM.png

                                I'll keep watching this

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

                                  Hmm, not ideal!
                                  So free memory just drops slowly over some days? You can change the time base to see it more clearly.
                                  And services actually fail when it gets that low? Anything logged?

                                  Steve

                                  C 1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    csfshore @stephenw10
                                    last edited by

                                    @stephenw10 I don't know what to look for in the logs.
                                    Since my posted graph, free memory is (gently)
                                    trending downward.

                                    I'm not sure if any services actually fail. However, once
                                    memory usage gets to 93%, I can't access the network.

                                    I will keep an eye on the graph, and as a rough estimate
                                    in about a week, system will be unusable without a reboot.

                                    Any guidance as to what to look for most appreciated.
                                    Appreciate your responses. Thanks

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

                                      If things stop responding I would expect some pretty obvious errors in the logs.

                                      It could be that it stops logging entirely however.

                                      Steve

                                      C 1 Reply Last reply Reply Quote 0
                                      • C Offline
                                        csfshore @stephenw10
                                        last edited by

                                        @stephenw10 OK, I'll look there, thanks

                                        C 1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          csfshore @csfshore
                                          last edited by

                                          @csfshore As this doesn't appear pervasive, it must be something in my config. (Which is vanilla, honest ๐Ÿ˜Š )

                                          When new release 21.09 is out, I will take it down to the bare metal and reinstall, unless I can figure out anything from the logs.

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