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

    Memory usuage after reboot

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    33 Posts 8 Posters 3.2k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Mmm, I think the memory usage you are seeing there is probably not directly related to any slowness you're seeing.

      2000ms ping spike are obviously an issue. If that's actually caused by the firewall I would expect to see a big CPU spike recorded at that time. I have seen systems present like that if they get stuck in a filter-reload loop on occasion. You would see that in the system log though.
      If it's something else upstream it might cleared by re-connecting the WAN or rebooting your modem maybe.

      Steve

      1 Reply Last reply Reply Quote 0
      • A
        abailey10
        last edited by

        pfsense seems to have memory issues, i tired 3 other firewalls including opensense , they all work without this issue.

        provelsP GertjanG JeGrJ 3 Replies Last reply Reply Quote 0
        • provelsP
          provels @abailey10
          last edited by

          @abailey10 I would just use something else then.

          Peder

          MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
          BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

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

            pfSense is the factor that we all have in common : version 2.4.4-p3.
            Believe me, it's all identical code for all of us.

            Difference are :
            Hardware - and thus (FreeBSD) drivers used.
            Installed packages ...
            An last but not least : settings.

            Yet, you draw this conclusion :

            @abailey10 said in Memory usuage after reboot:

            pfsense seems to have memory issues,

            Let say you ommitted two words :

            ... for me

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

            1 Reply Last reply Reply Quote 0
            • JeGrJ
              JeGr LAYER 8 Moderator @abailey10
              last edited by

              @abailey10 said in Memory usuage after reboot:

              pfsense seems to have memory issues, i tired 3 other firewalls including opensense , they all work without this issue.

              Yeah... right... not. Besides every freaking web service out there being lower on memory after a restart, your conclusions with 1 (your) testcase is simple lopsided. If the software stack itself had memory problems that would have rang alarm bells all over the place for a multitude of people. Don't you think? So it's down to the list @Gertjan wrote: HW, installed packages and mostly your configuration (base & packages). Simple as that.

              Also if you want to get to the bottom of your usage, try top with shift+m to sort for processes that have the most memory allocated or do some ps axwww etc. output before and after your "too much memory in use" condition to check who the culprit eating your RAM may be.

              But with years almost two decades of web application hosting knowledge I have to say that everything that either doesn't run into a memory leak draining memory until swap (would be seen eating your memory until 100% in use) or is a wrong configured host/services that simply allocates far too much memory is simply normal. Anything being it the OS, webserver, services etc. may reserve some memory if it is readily available. So pages like https://www.linuxatemyram.com/ don't come from nowhere. We always have people asking where their RAM went and always have to make them acknowledge, that it isn't something bad. OK we're using BSD here, but never mind that :)

              Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

              If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

              1 Reply Last reply Reply Quote 0
              • kiokomanK
                kiokoman LAYER 8
                last edited by

                watching the top the first thing that come to my mind... could be related to unbound that restart with dhcp registration if you see mem go up and down ?

                ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                Please do not use chat/PM to ask for help
                we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                1 Reply Last reply Reply Quote 0
                • JeGrJ
                  JeGr LAYER 8 Moderator
                  last edited by

                  Perhaps. As we don't have a complete psoutput and don't know which packets are in play, something like pfB-NG could very well add a big dent into unbounds RAM usage. But that's all speculation until a much more in depth look can be done with more intel about the system and installation as well as additional packages.

                  Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                  If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                  1 Reply Last reply Reply Quote 0
                  • provelsP
                    provels
                    last edited by

                    From my understanding, he's complaining that it's not using enough RAM. Says it's slow after reboot until the system gets cached. Whatever, I think it's a non-issue. DSLReports speedtest issues can be anything from ISP to modem.

                    Peder

                    MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
                    BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

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

                      Yeah the memory usage might possibly be a related symptom but it's not a cause here.

                      It's almost certainly CPU usage causing those ping spikes. Check the system log like I suggested earlier. If some process is triggering it you should be able to see that firing when you see the ping issues.

                      Steve

                      1 Reply Last reply Reply Quote 0
                      • A
                        abailey10
                        last edited by

                        I thought pfsense ran from ramdisk once loaded from ssd. If so then why would 50 percent lower memory usage not be a red flag. Its not cpu spikes as it has never been past 20 percent during high load and gui with monitors usually never see more than 1 to 6 percent. This could be hardware related, except if i get an update and it reboots memory usage will be 18 percent which is normal not 7 percent. My internet is 100 down 10 up, no way its stress a quad core at 3.8ghz without power savings of any kind or turbo , this cpu is not power or heat throttling. Its like pfsense cant load all of itself into the ramdisk after reboot

                        JeGrJ 1 Reply Last reply Reply Quote 0
                        • DerelictD
                          Derelict LAYER 8 Netgate
                          last edited by

                          Please understand that this is a problem you and you alone are experiencing. It might take some time to determine what is peculiar in your environment. Especially on an internet forum from remote locations given little information.

                          It might just be that pfSense doesn't run well on your specific hardware.

                          Chattanooga, Tennessee, USA
                          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                          Do Not Chat For Help! NO_WAN_EGRESS(TM)

                          1 Reply Last reply Reply Quote 0
                          • JeGrJ
                            JeGr LAYER 8 Moderator @abailey10
                            last edited by

                            @abailey10 said in Memory usuage after reboot:

                            I thought pfsense ran from ramdisk once loaded from ssd. If so then why would 50 percent lower memory usage not be a red flag.

                            No it won't if you haven't told it so. There was the old nanoBSD version, that was pre-configured to run with ramdisk support but that is old news and if you didn't set up the ramdisk under System > Adv. Settings it will not run on any kind of ramdisk at all.

                            Its like pfsense cant load all of itself into the ramdisk after reboot

                            Again, no ramdisk if not told so! Don't jump to conclusions that you haven't configured.

                            @abailey10 said in Memory usuage after reboot:

                            This could be hardware related, except if i get an update and it reboots memory usage will be 18 percent which is normal not 7 percent

                            Now I'm confused. You told us above that after a reboot it only uses 7%, not 18% and that this is (in your opinion) the point why it runs "flaky" somehow. Now you say it reboots and is 18% not 7%? Huh?

                            In the end you have to give us much more to "debug" that non-problem if you want to have a conclusion or explanation. But without ANY data at all - that you were told to please post here - there's not much to say other than: it's your isolated case so please show us more details, logs etc. or live with it. Explanations for ups and downs of memory were already given in spades.

                            Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                            If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                            A 1 Reply Last reply Reply Quote 1
                            • A
                              abailey10 @JeGr
                              last edited by

                              @JeGr Only time it uses 18 percent memory is when first install with no reboots, or after update. All reboots result in drop in memory to 7 percent. Yes I set up /var /tmp ramdisk also for 250mb each which equals 500mb yet memory usage is still 8 percent. Although /var default 3.4mb on install uses only 5 percent, just increasing the space /var grows to 8 percent of 250mb which is alot more considering no changes made to the install, no packages added, no tweaks, no qos , just default install. So if it set up a ram disk, why dont i see 500mb being used or reserved? And Im looking for help, not a forum that just looks to defend pfsense blindly. I like pfsense but it has issues also.

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

                                The RAM usage is almost certainly either unrelated or some side effect of whatever is actually causing the latency you're seeing IMO.
                                However to track down what is using it we need to see what's actually changing so maybe the first 20 lines or so from top aS sorted by RES in each condition.

                                Steve

                                1 Reply Last reply Reply Quote 1
                                • JeGrJ
                                  JeGr LAYER 8 Moderator @abailey10
                                  last edited by

                                  @abailey10 said in Memory usuage after reboot:

                                  not a forum that just looks to defend pfsense blindly

                                  It has nothing to do with "defending" blindly. It just isn't an issue as you try to make it one. I don't see a problem with RAM going up and down. You do. And you try to construct a generic pfsense software problem from it besides Netgate staff telling you, it is not.

                                  So if you have a problem with it besides the RAM up/down in your setup and installation - e.g. your point with pfsense being slow/laggy after reboot and not really responsive - then I'd describe and submit logs to that so we can try and help fixing that.

                                  I like pfsense but it has issues also.

                                  No one said otherwise or told you "the product is flawless". If it were, we'd not have patches and updates. But ranting on about a non issue (e.g. RAM) is pretty much useless if all you do is give an opinion about it but NO logs whatsoever so we could actually have a look at it. @Gertjan @stephenw10 and @Derelict already posted multiple hypothesis about the problem with the plea to give us something to work with. Yet all you do is rant on about memory issues instead of showing outputs from top, ps, etc. How about some help?

                                  Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                                  If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

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

                                    It is possible that this is some entirely new issue and this is first time we are seeing it reported.

                                    However the memory usage or lack of it is only an indication of some change, it's not itself a problem. And it might be a completely unrelated change.

                                    @abailey10 Do you know a specific build that was not affected by this? Can you test the RAM usage in that? Can you test a 2.5 snapshot?

                                    Steve

                                    1 Reply Last reply Reply Quote 1
                                    • JeGrJ
                                      JeGr LAYER 8 Moderator
                                      last edited by

                                      @stephenw10 said in Memory usuage after reboot:

                                      It is possible that this is some entirely new issue and this is first time we are seeing it reported.

                                      Not to be misunderstood: I'm totally for debugging that. But then I'd like to see some actual data, logs and readings instead of accusations and ramblings and textblocks ;) As I said, give us some data to work with :)

                                      Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                                      If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        JohnnieHauser Banned
                                        last edited by stephenw10

                                        Spam was here.

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

                                          What has fixed it?

                                          What are you running that only uses 50MB? That seems unlikely!

                                          Steve

                                          kiokomanK provelsP 2 Replies Last reply Reply Quote 0
                                          • kiokomanK
                                            kiokoman LAYER 8 @stephenw10
                                            last edited by

                                            @stephenw10
                                            uhm .. probably
                                            prima-email-spam.jpg

                                            one of his post is a copy/paste from reddit with a link to a blog

                                            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                            Please do not use chat/PM to ask for help
                                            we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                                            Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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