High RAM consumption
-
in top press o for sort, then res and you will get it sort it in order of used mem
example - here is mine
you can see that pcscd is using most at 696M, and then radiusd at 107, then they go down in order.. You can see from yours that they are not in any order.
yeah look at your graph.. you should be able to go way back and see, depending how long your pfsense has been installed, etc..
For example here is mine going back until 2017.. Even though I have done clean installed, when restored it put data back, etc. At some point I have cleared all this, etc. clearly back in 2017 sometime ;) And recently have done clean installs when going to + and changing to zfs vs ufs. But you should be able to using that graph and different time frames see if slow creep or drastic jump, etc. and take a screenshot of what is using most memory via sort, and then look at it again when you notice very high, etc..
-
@johnpoz Now it looks better friend
-
See my edit about the monitor graph.. I don't see anything really jumping out using a lot, etc.
did you just reboot?
mine has been up for 20+ days..
-
@johnpoz No, I have restarted , if I do it lowers the RAM, then after a few days it increases again, I really don't know what can be happening.
-
Well now we have a screenshot of your top user processes.. And I would take a look at your monitor graph.. And then in a few days if up again like it is.. Look at your top sorted for res and see what jumps out to using more than it is right now, etc..
I have been running pfsense for years and years - and have never notice any sort this issue. Normally my pfsense runs 24/7/365 and only time it reboots is I upgrade it to new version, or significant power outage that ups can't last through. Which rarely ever happens.. The latest few updates have rebooted my pfsense more than it has in long time, 21.02, 21.02.1 and then 21.05.. I dont' see having to restart it again until 21.09 comes out - or they release something like 21.05.x
-
@johnpoz Thanks for your answers friends, I will monitor it.
-
Let us know how it looks in a few days..
-
@johnpoz Surely yes
-
What version of pfsense are you running exactly? Also is there some specific reason you have Kernel PTI enabled? There really should be no case where that would really come into play with firewall.. While I would doubt it would cause what your seeing, I would next time your planning on rebooting that you disable it.. Unless you feel better with it enabled - but there will be some sort of performance impact with that enabled.. What that % is have no idea..
Personally I have mine disabled, as I don't see any point to it on my firewall box.
edit: Also a bit curious what is using up your disk space... You say you have no packages installed?
Your using 2% of 50G and and 10% of your var - Im at 3% of half your disk space, and 0% var..
-
@johnpoz I will disable it when I reboot, what was taking up space was the Snort log, which was installed but is no longer installed.
-
@netermin said in High RAM consumption:
Snort log, which was installed but is no longer installed.
Had you rebooted since uninstalling that? Maybe that was what was sucking up your ram? Wild ass guess on my part there ;)
-
@johnpoz I had not restarted it since I removed snort, I have other pfsense in other clients, it has lightsquid, bandwidthd, ntopng, netdata and the memory does not go above 18%, it is true that this one has 2.5.0-RELEASE (amd64 because I am using wireguard).
-
Wireguard was removed ;)
I have no experience with wireguard when it comes to memory usage.. And there were some issues with the wireguard - which is why it was removed.. I do believe there is some package to get it working on current 2.5.1 release? And sure at some point it will back as part of base install.
-
@johnpoz Yes I know, I tell you what I have installed and the version I'm using and pfsense does not consume memory, compared to the other that has nothing installed and the memory does not go below 78%.
-
@johnpoz Hi my friend, I have restarted pfsense and now the ram is at 7%, I will monitor it and let you know.
-
Thanks for your answers