Skip to content

Commit b874532

Browse files
add some more patches for v0.1.1
1 parent 7bf3f03 commit b874532

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

hyperion.config

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ CONFIG_SCHED_SMT=y
260260
CONFIG_SCHED_MC=y
261261
CONFIG_SCHED_MC_PRIO=y
262262
CONFIG_SCHED_CLUSTER=y
263+
# SCHED_CORE: Prevents SMT sibling starvation — measurable win on HyperThreaded CPUs
264+
CONFIG_SCHED_CORE=y
263265

264266
# SCHED_AUTOGROUP: Groups interactive tasks by session
265267
# Shell/GUI feel much more responsive under compilation load
@@ -403,6 +405,9 @@ CONFIG_CPU_IDLE_GOV_MENU=y
403405
CONFIG_CPU_IDLE_GOV_TEO=y
404406
CONFIG_CPU_IDLE_GOV_HALTPOLL=y
405407
CONFIG_HALTPOLL_CPUIDLE=y
408+
# INTEL_IDLE: Native Intel C-state driver — required for C6/C8/C10 states
409+
# Without this Intel CPUs fall back to ACPI idle, missing deep sleep states
410+
CONFIG_INTEL_IDLE=y
406411

407412
# ==============================================================
408413
# CPU FREQUENCY SCALING
@@ -524,6 +529,9 @@ CONFIG_ZSWAP_DEFAULT_ON=y
524529
CONFIG_ZSWAP_ZPOOL_DEFAULT_ZSMALLOC=y
525530
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4 is not set
526531
CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD=y
532+
# ZSWAP_SHRINKER: Evicts cold zswap entries back to disk before pool saturates
533+
# Without this zswap silently fills up and stops accepting pages — causes stalls
534+
CONFIG_ZSWAP_SHRINKER_DEFAULT_ON=y
527535

528536
# ZRAM: Compressed block device in RAM for swap
529537
CONFIG_ZRAM=m
@@ -533,6 +541,9 @@ CONFIG_ZRAM_DEF_COMP_ZSTD=y
533541

534542
CONFIG_MEM_SOFT_DIRTY=y
535543
CONFIG_USERFAULTFD=y
544+
# PER_VMA_LOCK: Per-VMA mmap locking — reduces contention on multi-threaded workloads
545+
# Significant win for games, browsers, JVMs. Merged 6.7, well-tested.
546+
CONFIG_PER_VMA_LOCK=y
536547

537548
# MGLRU: Multi-Generational LRU — Google's page reclaim algorithm
538549
# Merged in Linux 6.1; default in Android, ChromeOS, CachyOS
@@ -620,7 +631,8 @@ CONFIG_INET_AH=m
620631
CONFIG_INET_ESP=m
621632
CONFIG_INET_IPCOMP=m
622633
CONFIG_INET_TUNNEL=m
623-
CONFIG_INET_DIAG=m
634+
# Built-in (not module) — ss, nethogs, systemd-networkd call this constantly
635+
CONFIG_INET_DIAG=y
624636
CONFIG_INET_TCP_DIAG=m
625637
CONFIG_TCP_CONG_ADVANCED=y
626638
CONFIG_TCP_CONG_BIC=m
@@ -1240,6 +1252,8 @@ CONFIG_SATA_SIL=m
12401252
CONFIG_BLK_DEV_NVME=y
12411253
CONFIG_NVME_MULTIPATH=y
12421254
CONFIG_NVME_HWMON=y
1255+
# NVME_AUTH: NVMe in-band authentication — zero runtime cost when unused
1256+
CONFIG_NVME_AUTH=y
12431257
CONFIG_NVME_TCP=m
12441258
CONFIG_NVME_TARGET=m
12451259
CONFIG_NVME_TARGET_LOOP=m
@@ -1396,6 +1410,9 @@ CONFIG_SECURITY_NETWORK=y
13961410
CONFIG_SECURITY_NETWORK_XFRM=y
13971411
CONFIG_SECURITY_PATH=y
13981412
CONFIG_HARDENED_USERCOPY=y
1413+
# RANDOM_KMALLOC_CACHES: Randomises slab caches to defeat heap spray exploits
1414+
# Zero runtime overhead. Merged 6.6.
1415+
CONFIG_RANDOM_KMALLOC_CACHES=y
13991416
CONFIG_FORTIFY_SOURCE=y
14001417
CONFIG_SECURITY_APPARMOR=y
14011418
CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1
@@ -1809,4 +1826,7 @@ CONFIG_PANIC_TIMEOUT=0
18091826
# END — HYPERION KERNEL v0.1.1
18101827
# Build: make -j$(nproc) LOCALVERSION="-Hyperion-0.1.1"
18111828
# Author: Soumalya Das (2026)
1829+
# Tweaks applied: SCHED_CORE, INTEL_IDLE, ZSWAP_SHRINKER,
1830+
# PER_VMA_LOCK, INET_DIAG=y, NVME_AUTH,
1831+
# RANDOM_KMALLOC_CACHES
18121832
# ==============================================================

0 commit comments

Comments
 (0)