OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of arkanoid »
  • Show Posts »
  • Messages
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

  • Messages
  • Topics
  • Attachments

Messages - arkanoid

Pages: 1 [2] 3
16
22.1 Legacy Series / Re: Wired memory ramps up until OOM Killer kicks in every 7 days. Reboot. Repeat.
« on: May 17, 2022, 01:16:25 pm »
top -o size after 3 days 6 hours

17
22.1 Legacy Series / Re: Wired memory ramps up until OOM Killer kicks in every 7 days. Reboot. Repeat.
« on: May 16, 2022, 10:51:48 pm »
Edit

18
22.1 Legacy Series / Re: Wired memory ramps up until OOM Killer kicks in every 7 days. Reboot. Repeat.
« on: May 16, 2022, 02:24:33 pm »
output of

pkg info

19
22.1 Legacy Series / Re: Wired memory ramps up until OOM Killer kicks in every 7 days. Reboot. Repeat.
« on: May 16, 2022, 02:20:19 pm »
Yes, wireguard-kmod   0.0.20211105 installed. But I hardly believe it is the cause of the problem.

I've been facing this problem since early 2021.

Latest change I made to the system is switching from userland wireguard-go implementation to the kernel driver, and this happened at the beginning of march.

While this greatly improved CPU usage, it didn't solve the problem. I used to have OOM and I still have OOM problems.

Please find attached a zabbix graph before and after switching the wireguard implementation.

G.C.


steady rise continues
Code: [Select]
last pid: 42872;  load averages:  0.59,  0.46,  0.45 up 2+07:23:49  14:19:29
54 processes:  1 running, 53 sleeping
CPU:  0.2% user,  0.0% nice, 10.1% system,  0.0% interrupt, 89.7% idle
Mem: 49M Active, 992M Inact, 476M Wired, 263M Buf, 2432M Free

20
22.1 Legacy Series / Re: Wired memory ramps up until OOM Killer kicks in every 7 days. Reboot. Repeat.
« on: May 16, 2022, 01:19:03 pm »
Firewall is used just as Wireguard VPN concentrator, so:

OpenVPN: No

IPsec: No

Intrusion Detection (without or without IPS?): No and no

Unbound blocklists: No

Web Proxy running: No

additional plugins...

os-dyndns (installed)   1.27_3   179KiB   OPNsense   Dynamic DNS Support   
os-iperf (installed)   1.0_1   24.6KiB   OPNsense   Connection speed tester   
os-vmware (installed)   1.5_1   610B   OPNsense   VMware tools   
os-wireguard (installed)   1.10   47.1KiB   OPNsense   WireGuard VPN service   
os-zabbix-agent (installed)   1.11   50.1KiB   OPNsense   Zabbix monitoring agent

only os-wireguard is truly essential, in order from top to least important:
wireguard
zabbix-agent
dyndns
iperf3
vmware


top after ~54h
Code: [Select]
last pid: 35841;  load averages:  0.31,  0.47,  0.41                                                                                                                                       up 2+06:21:38  13:17:18
54 processes:  1 running, 53 sleeping
CPU:  0.0% user,  0.0% nice, 15.8% system,  0.0% interrupt, 84.2% idle
Mem: 80M Active, 998M Inact, 466M Wired, 256M Buf, 2406M Free

21
22.1 Legacy Series / Re: Wired memory ramps up until OOM Killer kicks in every 7 days. Reboot. Repeat.
« on: May 16, 2022, 11:50:51 am »
here's the memory load after 53h uptime

Code: [Select]
last pid: 63460;  load averages:  0.28,  0.39,  0.44  up 2+04:54:04    11:49:44
53 processes:  1 running, 52 sleeping
CPU:  1.1% user,  0.0% nice, 16.3% system,  0.0% interrupt, 82.6% idle
Mem: 39M Active, 989M Inact, 458M Wired, 249M Buf, 2465M Free

22
22.1 Legacy Series / Re: Wired memory ramps up until OOM Killer kicks in every 7 days. Reboot. Repeat.
« on: May 16, 2022, 11:48:38 am »
I already posted the result of `df -h`

as second confirmation, please find attached a screenshot of the webgui

here's the output of `mount`

Code: [Select]
/dev/gpt/rootfs on / (ufs, local, noatime, soft-updates)
devfs on /dev (devfs)
devfs on /var/dhcpd/dev (devfs)
devfs on /var/unbound/dev (devfs)

23
22.1 Legacy Series / Re: Wired memory ramps up until OOM Killer kicks in every 7 days. Reboot. Repeat.
« on: May 15, 2022, 12:40:38 pm »
more top

24
22.1 Legacy Series / Re: Wired memory ramps up until OOM Killer kicks in every 7 days. Reboot. Repeat.
« on: May 15, 2022, 12:40:20 pm »
more top

25
22.1 Legacy Series / Re: Wired memory ramps up until OOM Killer kicks in every 7 days. Reboot. Repeat.
« on: May 15, 2022, 12:40:02 pm »
more top

26
22.1 Legacy Series / Re: Wired memory ramps up until OOM Killer kicks in every 7 days. Reboot. Repeat.
« on: May 15, 2022, 12:37:53 pm »
Some screenshots over time of

Code: [Select]
top -o size

first one is just after boot

27
22.1 Legacy Series / Re: Wired memory ramps up until OOM Killer kicks in every 7 days. Reboot. Repeat.
« on: May 15, 2022, 12:36:40 pm »
Code: [Select]
df -h

28
22.1 Legacy Series / Re: Wired memory ramps up until OOM Killer kicks in every 7 days. Reboot. Repeat.
« on: May 15, 2022, 12:36:15 pm »
Code: [Select]
vmstat -z | tail +3 | awk -F '[:,] *' 'BEGIN { total=0; cache=0; used=0 } {u = $2 * $4; c = $2 * $5; t = u + c; cache += c; used += u; total += t; name=$1; gsub(" ", "_", name); print t, name, u, c} END { print total, "TOTAL", used, cache } ' | sort -n | perl -a -p -e 'while (($j, $_) = each(@F)) { 1 while s/^(-?\d+)(\d{3})/$1,$2/; print $_, " "} print "\n"' | column -t

29
22.1 Legacy Series / Re: Wired memory ramps up until OOM Killer kicks in every 7 days. Reboot. Repeat.
« on: May 15, 2022, 12:35:50 pm »
Code: [Select]
vmstat -o | sort -nr | head -n 3000

30
22.1 Legacy Series / Wired memory ramps up until OOM Killer kicks in every 7 days. Reboot. Repeat.
« on: May 15, 2022, 12:25:59 pm »
As title says, I have to reboot my firewall every ~7 days as the OOM Killer kicks in and kills all processes, leaving only kernel and nothing else (ssh and web interface are killed too)

OPNsense 22.1.2_1-amd64
FreeBSD 13.0-STABLE
OpenSSL 1.1.1m 14 Dec 2021

Please find attached the result of these commands executed with an uptime of 30h

Code: [Select]
df -h

vmstat -z | tail +3 | awk -F '[:,] *' 'BEGIN { total=0; cache=0; used=0 } {u = $2 * $4; c = $2 * $5; t = u + c; cache += c; used += u; total += t; name=$1; gsub(" ", "_", name); print t, name, u, c} END { print total, "TOTAL", used, cache } ' | sort -n | perl -a -p -e 'while (($j, $_) = each(@F)) { 1 while s/^(-?\d+)(\d{3})/$1,$2/; print $_, " "} print "\n"' | column -t

vmstat -o | sort -nr | head -n 3000

vmstat -m | sort -rk3

more attachments in the next posts

Pages: 1 [2] 3
OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2