From 423ab20f430635ed03d56141262c34cb0a08f37a Mon Sep 17 00:00:00 2001 From: edef Date: Sun, 12 Nov 2023 15:08:23 +0000 Subject: feat(users/flokli/archeology): turn on task_delayacct More ClickHouse perf stats ^_^ Change-Id: I4f6882b1a6c1ebfed9a430e62ca634a141cd1cf1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9998 Reviewed-by: flokli Tested-by: BuildkiteCI --- users/flokli/nixos/profiles/archeology.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/users/flokli/nixos/profiles/archeology.nix b/users/flokli/nixos/profiles/archeology.nix index 85c693673283..e61744139103 100644 --- a/users/flokli/nixos/profiles/archeology.nix +++ b/users/flokli/nixos/profiles/archeology.nix @@ -9,6 +9,12 @@ # Start clickhose as a system service. services.clickhouse.enable = true; + # for ClickHouse + # We're keeping this here rather than in the NixOS module, because I suspect + # this opens up timing side channels. This is a single-user, single-purpose + # machine, so that isn't a concern here. + boot.kernel.sysctl."kernel.task_delayacct" = 1; + # Enable SSH and let edef and flokli in services.openssh.enable = true; -- cgit 1.4.1