OPNsense Forum

English Forums => 25.7, 25.10 Series => Topic started by: gmartin on January 27, 2026, 01:48:50 AM

Title: RAM usage
Post by: gmartin on January 27, 2026, 01:48:50 AM
I'm running 25.11 as a vm under proxmox. Underlying CPU is a Intel N5105 and the only other VM is running pihole.  I'd appreciate any recommendations on how to configure RAM. I have a 400Mb internet connection.  Heaviest use is a torrent client with many active connections. I stream hulu and share plex with a couple folks but internet usage is generally sub 100Mb.

Currently I've assigned it 4GB and per top it is using 2GB of swap.  Here are the top stats:

last pid: 58271;  load averages:  0.15,  0.19,  0.21                                            up 0+02:59:52  19:33:53
65 processes:  1 running, 64 sleeping
CPU:  0.8% user,  0.0% nice,  0.1% system,  0.4% interrupt, 98.8% idle
Mem: 202M Active, 2333M Inact, 467M Laundry, 610M Wired, 393M Buf, 290M Free
ARC:
Swap: 9979M Total, 2063M Used, 7916M Free, 20% Inuse

is the 4GB adequate?  Could it be "too much"?
Could I assign it 2GB and baloonm to 4GB?

Appreciate any thoughts you have.

\\Greg

Title: Re: RAM usage
Post by: OPNenthu on January 27, 2026, 03:57:42 AM
Take a look at this thread for virtualization recommendations: https://forum.opnsense.org/index.php?topic=44159.0

Also, the hardware sizing guide (https://docs.opnsense.org/manual/hardware.html) gives some info on RAM needs for various scenarios.

My firewall has 8GB (also an N5105, but bare metal) and I'm not even using half of it currently.  Swap is not touched at all and I have /var/log and /tmp both on RAM disk to help preserve the SSD.  That's without IDS/IDP and with ~1700 policies across 8 groups, ~500k table entries, ~800k+ domains in Unbound block lists, a few WG tunnels and WAN shaping for anti-bufferbloat.  Only a few users though and normally fewer than 500 active f/w states.