Opnsense 23.1 is finally running after a longer fight:
Setup of 23.1 failed, I got constant errors about msdos_fs not accessible after the partition creation. According to google a common "feature" of FreeBSD13. So I started with 22.7 and went along the full upgrade road to 23.1_5
If you fail to install opnsense often enough, even 22.7 reacts with file copy problems/ partistion errors. Solution is to fire up a Gnome GPartd iso and remove all existing partitions and then start from scratch.
If you encounter read/write issues/crashes during installation, use default settings for PL1/PL2 CPU and package. No idea why this happens, maybe some heat spikes in the core leading to this. Have to monitor this a bit and see if it also happens during runtime.
Bios settings (at the moment):
PCIe Configuration: Port 1: ASPM auto L1 Substate: disabled L1 low disabled
PCIe Configuration: Port 7,9: ASPM auto, L1 Substate: disabled L1 low enabled
Port 10,11,12: disabled
-> don't enable L1 Sub or L1 low on port 1, it leads to drive read errors
-> don't enable L1 Substae on port 7,9 - the NIC become invisible/unusable
-> leave port 10,11 enabled if NIC #3,#4 are needed
SATA diasbled, USB HSII on xHCI disabled, HD audio disabled, Serial I2C5 controller disabled, eMMC 5.1 Controller disabled, Sensor Hub type None
CPU Config: Intel VMX disabled, PECI enabled
GT - Power Management: Maximum GT freq 100MHz
CPU Power management: Platform PL1: disable, PL2 disable
CPU Power management -> Turbo options -> Package Power PL1 = 6000, PL2 = 20000
-> need to run some more stability tests on the PL settings. They have no influence on the idle power consumption but define the upper limits of the CPU
unplug monitor after changing primary display in opnsense to serial. the system otherwise hangs during boot. Unplug the keyboard.
Tunables in opnsense:
hw.acpi.cpu.cx_lowest = C3
hw.ibrs_disable = 1
vm.pmap.pti = 0
dev.hwpstate_intel.0.epp = 99, dev.hwpstate_intel.1.epp =99, dev.hwpstate_intel.2.epp =99, dev.hwpstate_intel.3.epp = 99
-> hw.acpi.cpu.cx_lowest can be set down to C8, however I haven't seen any relevant power reduction below C3 and it takes longer to wake up a cpu from C8 than from C3, so setting C8 might result in some data transfer delays
-> dev.cpu.3.cx_lowest changes the same flag like hw.acpi.cpu.cx_lowest, so only one needs to be set
Power consumption, 1 NIC connected, opnsense idle and not filtering anything: 7W at the all
Setup of 23.1 failed, I got constant errors about msdos_fs not accessible after the partition creation. According to google a common "feature" of FreeBSD13. So I started with 22.7 and went along the full upgrade road to 23.1_5
If you fail to install opnsense often enough, even 22.7 reacts with file copy problems/ partistion errors. Solution is to fire up a Gnome GPartd iso and remove all existing partitions and then start from scratch.
If you encounter read/write issues/crashes during installation, use default settings for PL1/PL2 CPU and package. No idea why this happens, maybe some heat spikes in the core leading to this. Have to monitor this a bit and see if it also happens during runtime.
Bios settings (at the moment):
PCIe Configuration: Port 1: ASPM auto L1 Substate: disabled L1 low disabled
PCIe Configuration: Port 7,9: ASPM auto, L1 Substate: disabled L1 low enabled
Port 10,11,12: disabled
-> don't enable L1 Sub or L1 low on port 1, it leads to drive read errors
-> don't enable L1 Substae on port 7,9 - the NIC become invisible/unusable
-> leave port 10,11 enabled if NIC #3,#4 are needed
SATA diasbled, USB HSII on xHCI disabled, HD audio disabled, Serial I2C5 controller disabled, eMMC 5.1 Controller disabled, Sensor Hub type None
CPU Config: Intel VMX disabled, PECI enabled
GT - Power Management: Maximum GT freq 100MHz
CPU Power management: Platform PL1: disable, PL2 disable
CPU Power management -> Turbo options -> Package Power PL1 = 6000, PL2 = 20000
-> need to run some more stability tests on the PL settings. They have no influence on the idle power consumption but define the upper limits of the CPU
unplug monitor after changing primary display in opnsense to serial. the system otherwise hangs during boot. Unplug the keyboard.
Tunables in opnsense:
hw.acpi.cpu.cx_lowest = C3
hw.ibrs_disable = 1
vm.pmap.pti = 0
dev.hwpstate_intel.0.epp = 99, dev.hwpstate_intel.1.epp =99, dev.hwpstate_intel.2.epp =99, dev.hwpstate_intel.3.epp = 99
-> hw.acpi.cpu.cx_lowest can be set down to C8, however I haven't seen any relevant power reduction below C3 and it takes longer to wake up a cpu from C8 than from C3, so setting C8 might result in some data transfer delays
-> dev.cpu.3.cx_lowest changes the same flag like hw.acpi.cpu.cx_lowest, so only one needs to be set
Power consumption, 1 NIC connected, opnsense idle and not filtering anything: 7W at the all