Skip to content

Commit

Permalink
feat: service host splitting per service
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Oct 21, 2023
1 parent 431082b commit 7fb023d
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
---
title: Disable Service Host Splitting
description: Disables Service Host splitting [#491] for lower RAM usage and process count at a cost of reduced stability (if a service crashes)
description: Disables Service Host splitting much for lower RAM usage and process count, excluding XBOX services to fix issues with Game Bar
privilege: TrustedInstaller
actions:
- !registryValue:
path: 'HKLM\SYSTEM\CurrentControlSet\Control'
value: 'SvcHostSplitThresholdInKB'
data: '4294967295'
type: REG_DWORD
- !powerShell:
command: 'Get-ChildItem "HKLM:\SYSTEM\CurrentControlSet\Services" | ? { $_.Name -notmatch 'Xbl|Xbox' } | % { $a = Get-ItemProperty -Path "REGISTRY::$_" -EA SilentlyContinue; if ($null -ne $a.Start) { Set-ItemProperty -Path "Registry::$_" -Name "SvcHostSplitDisable" -Type DWORD -Value 1 -Force -EA SilentlyContinue } }'
wait: true

0 comments on commit 7fb023d

Please sign in to comment.