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

    Memory Spike Reason Unknown

    Scheduled Pinned Locked Moved General pfSense Questions
    17 Posts 4 Posters 1.5k 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.
    • R
      RJP1267
      last edited by

      It spiked back up to 33% and am looking for the culprit, I think it may be squid related.

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

        Squid can use a lot of RAM especially if you have non-default local cache settings. How much RAM do you have on that box?

        R 1 Reply Last reply Reply Quote 0
        • R
          RJP1267 @stephenw10
          last edited by

          @stephenw10 4gb...what do you suggest to ensure not over using resources when not needed? Thank you.

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @RJP1267
            last edited by

            @rjp1267

            Try this one :

            pkg install htop
            

            Now you have htop at your dispossal ;)

            And a question : when I sort on memory usage :
            Who is this :

            6cd9fb3e-8528-4042-873b-05cb0055978e-image.png

            It's also rather new here :

            939f7a8d-4d3a-4ea6-aa02-4d898ffcbd32-image.png

            ( I know, Google shuld be my friend .... )

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

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

              See: https://redmine.pfsense.org/issues/12095

              S 1 Reply Last reply Reply Quote 0
              • S
                SteveITS Galactic Empire @stephenw10
                last edited by

                Interesting, on a 3100 it shows as:

                Mem: 31M Active, 1156M Inact, 199M Wired, 83M Buf, 594M Free

                PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND
                13149 root 20 0 960M 950M nanslp 1 32:47 0.06% /usr/local/sbin/pcscd{pcscd}
                13149 root 20 0 960M 950M select 1 1:19 0.00% /usr/local/sbin/pcscd{pcscd}
                13149 root 52 0 960M 950M piperd 1 0:00 0.00% /usr/local/sbin/pcscd{pcscd}

                Yet the dashboard shows "Memory usage 12% of 2017 MiB" (242 MB).

                On a PC with 2.5.2 it shows as:
                Mem: 87M Active, 2768M Inact, 972M Wired, 592M Buf, 3296M Free
                Swap: 3852M Total, 3852M Free

                PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND
                7457 root 20 0 1946M 1928M nanslp 3 21:30 0.08% /usr/local/sbin/pcscd{pcscd}
                7457 root 20 0 1946M 1928M select 2 0:30 0.00% /usr/local/sbin/pcscd{pcscd}
                7457 root 52 0 1946M 1928M piperd 1 0:00 0.00% /usr/local/sbin/pcscd{pcscd}

                and the dashboard memory usage "15% of 7314 MiB" (1097.1).

                The dashboard must not be counting it?

                Pre-2.7.2/23.09: 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 restart, or more depending on packages and device speed.
                Upvote 👍 helpful posts!

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

                  Yeah, in most cases it doesn't actually seem to cause a problem. But it shouldn't behave like that and it will not be enabled by default in the next release.
                  https://redmine.pfsense.org/issues/11933

                  Steve

                  1 Reply Last reply Reply Quote 0
                  • R
                    RJP1267 @Gertjan
                    last edited by

                    @gertjan Now that htop is the bomb, great call. Now if I can find info packed dashboard alternatives I will be on my way.

                    1 Reply Last reply Reply Quote 0
                    • R
                      RJP1267
                      last edited by RJP1267

                      Using htop I was able to see that 5+% of the 33% mem being used was in use by squid...Is that normal in a basic out of the box config (1 wan IF and 1 Lan IF <12 internal ip addresses)?

                      aa680ca1-ed33-4dcb-a7e0-7e990dba027d-image.png

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

                        Too many variables to say what's 'normal' there really. But unused RAM is pointless so something using 5% of 4GB would not concern me.

                        Steve

                        R 1 Reply Last reply Reply Quote 1
                        • R
                          RJP1267 @stephenw10
                          last edited by

                          @stephenw10 Yeah makes sense, what caught my attention was the % used in the dashboard, I used to run at 18% then saw 33 made me wonder. I can really do with a new dashboard, I saw some discussions on other boards about them but they seem time consuming to build but they looked sweet and you can really get creative with what is displayed.

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