OPNsense Forum

English Forums => Hardware and Performance => Topic started by: BrandyWine on July 27, 2025, 07:20:27 AM

Title: Built on N150
Post by: BrandyWine on July 27, 2025, 07:20:27 AM
Built my OPNsense on this N150 device (US amazon item B0F4WXKZRB bare bones)
16GB ram, 256GB NVMe drive
A little tunables tuning and it does excellent job for home 1.3Gb copper service. Maybe some day I get docsis4, then I switch the fw WAN over to a 10G gbic.
Temps stay between 46-50C.
Odd though, the bottom cover has tapped holes (possibly for mounting, not sure), but I plan to install another micro fan there.
So far so good.

Here's a set of tuning which yields decent performance with a balance between idle state and max processing (heat). Most of these tunables were not in the system, but still try and find each before adding it.

# this removes some time consuming resources from entropy for random
kern.random.harvest.mask: 65887

# lower means leans towards higher performance. setting 0 seems to peg cpu at max freq
# if you want to unbalance them for power savings, set 0 around 10 and the others at 50 or 75, etc
dev.hwpstate_intel.0.epp = 25
dev.hwpstate_intel.1.epp = 25
dev.hwpstate_intel.2.epp = 25
dev.hwpstate_intel.3.epp = 25

# leave 0 alone at C1 (default C1, so no need to set it)
dev.cpu.1.cx_lowest = C2
dev.cpu.2.cx_lowest = C2
dev.cpu.3.cx_lowest = C2

# place this KLM load in about middle of the '/usr/local/etc/rc' script
kldload cc_htcp

net.link.ifqmaxlen=2048
net.inet.tcp.cc.algorithm=htcp
net.inet.tcp.cc.htcp.adaptive_backoff=1
net.inet.tcp.cc.htcp.rtt_scaling=1
net.inet.tcp.rfc6675_pipe=1
net.inet.tcp.syncache.rexmtlimit=0
net.inet.tcp.syncookies=0
net.inet.tcp.isn_reseed_interval=4500
kern.random.fortuna.minpoolsize=2048
machdep.hyperthreading_allowed=0
Title: Re: Built on N150
Post by: tn881023 on August 02, 2025, 09:45:29 AM
Thanks Brandywine, I'm interested to try these as I'm running an N150 box myself but could you please provide a little more context on what they do?

Thank you!