about summary refs log tree commit diff
path: root/users/flokli
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2023-11-12T15·08+0000
committeredef <edef@edef.eu>2023-11-13T14·53+0000
commit423ab20f430635ed03d56141262c34cb0a08f37a (patch)
tree9860d4ed49fba7f507638b395f48371fb29261b8 /users/flokli
parent160dac0a220e1cbf383bd195189949231ae3d22b (diff)
feat(users/flokli/archeology): turn on task_delayacct r/7009
More ClickHouse perf stats ^_^

Change-Id: I4f6882b1a6c1ebfed9a430e62ca634a141cd1cf1
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9998
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/flokli')
-rw-r--r--users/flokli/nixos/profiles/archeology.nix6
1 files changed, 6 insertions, 0 deletions
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;