From 6f1dfda75dcca3f5d95d6aea970fd611433aedeb Mon Sep 17 00:00:00 2001 From: Samuel Gräfenstein Date: Sat, 26 Jun 2021 23:07:10 +0200 Subject: linux_xanmod: match all features on homepage --- pkgs/os-specific/linux/kernel/linux-xanmod.nix | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'pkgs/os-specific/linux/kernel/linux-xanmod.nix') diff --git a/pkgs/os-specific/linux/kernel/linux-xanmod.nix b/pkgs/os-specific/linux/kernel/linux-xanmod.nix index 17e440f5bc6..b389532c01a 100644 --- a/pkgs/os-specific/linux/kernel/linux-xanmod.nix +++ b/pkgs/os-specific/linux/kernel/linux-xanmod.nix @@ -16,10 +16,34 @@ buildLinux (args // rec { }; structuredExtraConfig = with lib.kernel; { - PREEMPT = lib.mkForce yes; + + # Preemptive Full Tickless Kernel at 500Hz PREEMPT_VOLUNTARY = lib.mkForce no; + PREEMPT = lib.mkForce yes; NO_HZ_FULL = yes; HZ_500 = yes; + + # Google's Multigenerational LRU Framework + LRU_GEN = yes; + LRU_GEN_ENABLED = yes; + + # Google's BBRv2 TCP congestion Control + TCP_CONG_BBR2 = yes; + DEFAULT_BBR2 = yes; + + # FQ-PIE Packet Scheduling + NET_SCH_DEFAULT = yes; + DEFAULT_FQ_PIE = yes; + + # Graysky's additional CPU optimizations + CC_OPTIMIZE_FOR_PERFORMANCE_O3 = yes; + + # Android Ashmem and Binder IPC Driver as module for Anbox + ASHMEM = module; + ANDROID = yes; + ANDROID_BINDER_IPC = module; + ANDROID_BINDERFS = module; + ANDROID_BINDER_DEVICES = freeform "binder,hwbinder,vndbinder"; }; extraMeta = { -- cgit 1.4.1