Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions godbrain_core/reclaim11/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ Does **not** delete `xboxgip`. Does **not** remove
start=disabled. Restore:
`pwsh -File telemetry_cleanse.ps1 -Restore restore.json`.

**Tune NIC** (Ethernet only): EEE/interrupt moderation/flow/WoL off, RSS on,
Rx/Tx **256–512**. Skips VMware host VMnet / Tailscale / Wi-Fi.
**Tune NIC** (Ethernet only): EEE/interrupt moderation/flow/WoL off,
checksum/LSO/VLAN-priority off, RSS on, Rx/Tx **256–512**. Does not
force Speed/Duplex. Skips VMware host VMnet / Tailscale / Wi-Fi.
`pwsh -File nic_tune.ps1 -T`.

**Latency bake** (Expert, in-Windows): flags are under
Expand Down
23 changes: 19 additions & 4 deletions godbrain_core/reclaim11/ps1/nic_tune.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Gaming NIC tune: disable power-saving / EEE / interrupt moderation,
# set RSS on, bump Rx/Tx buffers. Keyword map, not per-vendor scripts.
# Gaming NIC tune: disable power-saving / EEE / interrupt moderation /
# checksum / LSO / VLAN tags, set RSS on, bump Rx/Tx buffers.
# Keyword map, not per-vendor scripts. Do not force Speed/Duplex.
# Physical Ethernet only (skip Wi-Fi, VMware, Tailscale, Bluetooth).
# restore.json first. -T is DeviceCleanupCmd-t. Never BFE.

Expand All @@ -24,22 +25,36 @@ $script:NicSkipDesc = @(
"*Kernel Debug*", "*Npcap*", "*TAP-*"
)

# Disable = power / latency junk. Not checksum/LSO (CPU vs packets).
# Disable = power / latency / offload junk. VLAN/priority off (n00b kit;
# anyone on tagged LAN knows how to turn it back). Not Speed/Duplex.
$script:NicDisable = @(
@{ Keyword = "*EEE"; Display = @("Energy Efficient Ethernet", "EEE") },
@{ Keyword = "*EEELinkAdvertisement"; Display = @("EEE Link Advertisement") },
@{ Keyword = "*InterruptModeration"; Display = @("Interrupt Moderation") },
@{ Keyword = "ITR"; Display = @("Interrupt Moderation Rate") },
@{ Keyword = "*FlowControl"; Display = @("Flow Control") },
@{ Keyword = "*TCPChecksumOffloadIPv4"; Display = @("TCP Checksum Offload (IPv4)") },
@{ Keyword = "*TCPChecksumOffloadIPv6"; Display = @("TCP Checksum Offload (IPv6)") },
@{ Keyword = "*UDPChecksumOffloadIPv4"; Display = @("UDP Checksum Offload (IPv4)") },
@{ Keyword = "*UDPChecksumOffloadIPv6"; Display = @("UDP Checksum Offload (IPv6)") },
@{ Keyword = "*IPChecksumOffloadIPv4"; Display = @("IPv4 Checksum Offload") },
@{ Keyword = "*IPChecksumOffloadIPv6"; Display = @("IPv6 Checksum Offload") },
@{ Keyword = "*LsoV2IPv4"; Display = @("Large Send Offload V2 (IPv4)") },
@{ Keyword = "*LsoV2IPv6"; Display = @("Large Send Offload V2 (IPv6)") },
@{ Keyword = "*LsoV1IPv4"; Display = @("Large Send Offload (IPv4)") },
@{ Keyword = "*PriorityVLANTag"; Display = @("Packet Priority & VLAN", "Priority & VLAN") },
@{ Keyword = "*PMARPOffload"; Display = @("ARP Offload") },
@{ Keyword = "*PMNSOffload"; Display = @("NS Offload") },
@{ Keyword = "*WakeOnMagicPacket"; Display = @("Wake on Magic Packet", "Wake on magic packet") },
@{ Keyword = "*WakeOnPattern"; Display = @("Wake on Pattern Match", "Wake on pattern match") },
@{ Keyword = "WakeOnMagicPacketFromS5"; Display = @("Wake On Magic Packet From S5") },
@{ Keyword = "*PacketCoalescing"; Display = @("Packet Coalescing") },
@{ Keyword = "EnableWakeOnLan"; Display = @("Wake on LAN", "Wake On LAN") },
@{ Keyword = "GreenEthernet"; Display = @("Green Ethernet", "GreenEthernet") },
@{ Keyword = "PowerSavingMode"; Display = @("Power Saving Mode", "Ultra Low Power Mode") },
@{ Keyword = "*IdlePowerDown"; Display = @("Reduce Speed On Power Down", "Auto Disable Gigabit") }
@{ Keyword = "*IdlePowerDown"; Display = @("Reduce Speed On Power Down", "Auto Disable Gigabit") },
@{ Keyword = "*IdleRestriction"; Display = @("Idle power down restriction") },
@{ Keyword = "AdaptiveIFS"; Display = @("Adaptive Inter-Frame Spacing") }
)

$script:NicEnable = @(
Expand Down
2 changes: 1 addition & 1 deletion godbrain_core/reclaim11/ui/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
<CheckBox x:Name="BtnSafe" Content="Safe cleanse (move + restore.json)" IsEnabled="False"/>
<CheckBox x:Name="BtnXbox" Content="Hide Xbox + Appx bloat (restore.json)"/>
<CheckBox x:Name="BtnTelemetry" Content="Disable telemetry (restore.json)"/>
<CheckBox x:Name="BtnNic" Content="Tune NIC (RSS + buffers, no EEE)"/>
<CheckBox x:Name="BtnNic" Content="Tune NIC (offloads off, RSS on)"/>
<CheckBox x:Name="BtnLatency" Content="Latency bake (BCD + timer + USB/ASPM, restore.json)"/>
<CheckBox x:Name="BtnKill" Content="Killing blows (YOLO delete, after PE)" IsEnabled="False"/>
<CheckBox x:Name="BtnReaper" Content="Send Grim Reaper (remainder + WU lock + hide WU in Settings, after PE)" IsEnabled="False"/>
Expand Down
16 changes: 15 additions & 1 deletion scripts/Test-Reclaim11.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1218,13 +1218,27 @@ $intelProps = @(
[pscustomobject]@{ DisplayName = "Energy Efficient Ethernet"; RegistryKeyword = "*EEE"; RegistryValue = @("1"); ValidRegistryValues = @("0", "1") },
[pscustomobject]@{ DisplayName = "Receive Side Scaling"; RegistryKeyword = "*RSS"; RegistryValue = @("0"); ValidRegistryValues = @("0", "1") },
[pscustomobject]@{ DisplayName = "Receive Buffers"; RegistryKeyword = "*ReceiveBuffers"; RegistryValue = @("256"); ValidRegistryValues = @("128", "256", "512", "1024", "2048", "4096") },
[pscustomobject]@{ DisplayName = "Transmit Buffers"; RegistryKeyword = "*TransmitBuffers"; RegistryValue = @("256"); ValidRegistryValues = @("128", "256", "512", "1024", "2048") }
[pscustomobject]@{ DisplayName = "Transmit Buffers"; RegistryKeyword = "*TransmitBuffers"; RegistryValue = @("256"); ValidRegistryValues = @("128", "256", "512", "1024", "2048") },
[pscustomobject]@{ DisplayName = "TCP Checksum Offload (IPv4)"; RegistryKeyword = "*TCPChecksumOffloadIPv4"; RegistryValue = @("3"); ValidRegistryValues = @("0", "1", "2", "3") },
[pscustomobject]@{ DisplayName = "Large Send Offload V2 (IPv4)"; RegistryKeyword = "*LsoV2IPv4"; RegistryValue = @("1"); ValidRegistryValues = @("0", "1") },
[pscustomobject]@{ DisplayName = "Packet Priority & VLAN"; RegistryKeyword = "*PriorityVLANTag"; RegistryValue = @("3"); ValidRegistryValues = @("0", "1", "2", "3") },
[pscustomobject]@{ DisplayName = "Speed & Duplex"; RegistryKeyword = "*SpeedDuplex"; RegistryValue = @("0"); ValidRegistryValues = @("0", "6") }
)
$nicPlan = Resolve-Reclaim11NicPlan -AdapterName "Ethernet" -Props $intelProps
$eee = @($nicPlan | Where-Object { $_.keyword -eq "*EEE" } | Select-Object -First 1)
if (-not $eee -or $eee.wanted -ne "0") { throw "Test-Reclaim11: NIC map must disable *EEE" }
$rss = @($nicPlan | Where-Object { $_.keyword -eq "*RSS" } | Select-Object -First 1)
if (-not $rss -or $rss.wanted -ne "1") { throw "Test-Reclaim11: NIC map must enable *RSS" }
$csum = @($nicPlan | Where-Object { $_.keyword -eq "*TCPChecksumOffloadIPv4" } | Select-Object -First 1)
if (-not $csum -or $csum.wanted -ne "0") { throw "Test-Reclaim11: NIC map must disable TCP checksum offload" }
$lso = @($nicPlan | Where-Object { $_.keyword -eq "*LsoV2IPv4" } | Select-Object -First 1)
if (-not $lso -or $lso.wanted -ne "0") { throw "Test-Reclaim11: NIC map must disable LSO" }
$vlan = @($nicPlan | Where-Object { $_.keyword -eq "*PriorityVLANTag" } | Select-Object -First 1)
if (-not $vlan -or $vlan.wanted -ne "0") { throw "Test-Reclaim11: NIC map must disable Priority/VLAN" }
$spd = @($nicPlan | Where-Object { $_.keyword -eq "*SpeedDuplex" } | Select-Object -First 1)
if ($spd) { throw "Test-Reclaim11: NIC map must not force Speed/Duplex" }
$nicSrcEarly = Get-Content -LiteralPath (Join-Path $ps1 "nic_tune.ps1") -Raw -Encoding UTF8
if ($nicSrcEarly -match '\*SpeedDuplex') { throw "Test-Reclaim11: nic_tune must not set SpeedDuplex" }
$rx = @($nicPlan | Where-Object { $_.keyword -eq "*ReceiveBuffers" } | Select-Object -First 1)
if (-not $rx -or $rx.wanted -ne "256") { throw "Test-Reclaim11: NIC Rx already 256 stays in CS2 band" }
$fatProps = @(
Expand Down