Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
Swap issue completely blocks OPNsense
« previous
next »
Print
Pages: [
1
]
Author
Topic: Swap issue completely blocks OPNsense (Read 1867 times)
bongo
Jr. Member
Posts: 96
Karma: 3
Swap issue completely blocks OPNsense
«
on:
April 05, 2022, 02:38:22 pm »
about 2 weeks ago, i updated from 21.7 to 22.1.
i actually run the latest version, i.e. all updates are installed.
so far, everything worked fine, but this morning, i was no longer able to reach the internet from the local lan.
i was also not able to login to the OPNsense, i.e. the ip address of the OPNsense router did not answer.
when looking at the screen attached to OPNsense (it's running on PC hardware), i've seen lots things that got killed because of a swap issue (i unfortunately did not take a picture).
i tried to do a controlled reboot, but was not able to shut down the machine. so all that helped was to press the reset button.
anyone else having such problems?
any idea how to avoid this?
thanx for your help!
Logged
gleepwurp
Newbie
Posts: 2
Karma: 0
Re: Swap issue completely blocks OPNsense
«
Reply #1 on:
April 05, 2022, 03:43:00 pm »
Hi,
Same issue here. Although system has 12GB of RAM, the swap starts getting filled up around 8h am, and grows so much that opnsense becomes unavailable. traffic does keep on trucking through for a certain time, although unbound stop resolving DNS entries before opnsense become totally unresponsive. Tries logging in through SSH, and doing the top command doesn't show any processes hogging the ram, even though the System RAM utilisation graph shows Swap full, but interestingly enough shows over 60% Free RAM.
I'm trying to uninstall any addons and disabling services individually to see which one is causing it.
Logged
gleepwurp
Newbie
Posts: 2
Karma: 0
Re: Swap issue completely blocks OPNsense
«
Reply #2 on:
April 05, 2022, 03:45:17 pm »
Forgot to says that this happened on 2 different systems, one with 8GB Ram, and currently on my poweredge 1950 with 12GB RAM. So, doesn't seem like a driver/system issues, but a config one.
Logged
HerrDevilmann
Newbie
Posts: 1
Karma: 0
Re: Swap issue completely blocks OPNsense
«
Reply #3 on:
June 24, 2022, 08:31:23 pm »
I'm affected by the same phenomenon, I think. Prior to system failure, everything appears normal. CPU, memory, swap, and disk usage all within normal parameters. Four minutes later, without any indication of increased resource usage, the console is flooded with system messages of the form
pid xxxx (yyyy), jid 0, uid zzz, was killed: out of swap space
. System becomes completely unresponsive, necessitating hard reset.
Logged
Patrick M. Hausen
Hero Member
Posts: 6812
Karma: 572
Re: Swap issue completely blocks OPNsense
«
Reply #4 on:
June 24, 2022, 10:38:41 pm »
Let "top -o res" run in an ssh session until the system crashes again to find, which process is using all the memory.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
ATL
Newbie
Posts: 2
Karma: 1
Re: Swap issue completely blocks OPNsense
«
Reply #5 on:
June 28, 2022, 01:59:17 pm »
Do you have
/var RAM disk
and
/tmp RAM disk
settings active? If yes, all files below this directories fillup the memory including swap. I had the same issue after switch from 21.7 to 22.1: Over time the memory fills up until the OPNsense doesn't react on anything and had to be hard reseted.
My investigations showed, that many log files were stored und this the memory filled up. I reconfigured
System -> Settings -> Logging -> Preserve logs (Days)
to
3
and changed the
Log level verbosity
of Unbound to
1
. Now the memory usage keeps below 50% and OPNsense is working without any problem over weeks.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
Swap issue completely blocks OPNsense