summary refs log tree commit diff
path: root/nixos/tests/knot.nix
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2021-12-04 14:00:40 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2021-12-04 16:53:31 +0100
commit146ddee13b81cd096f0136ebf217947aab114ddc (patch)
tree742254e7e49d064c5f2103773fd7171ded79d66b /nixos/tests/knot.nix
parent893f7af236bf11fba03ef1c21b381d3ccc5df3f7 (diff)
downloadnixpkgs-146ddee13b81cd096f0136ebf217947aab114ddc.tar
nixpkgs-146ddee13b81cd096f0136ebf217947aab114ddc.tar.gz
nixpkgs-146ddee13b81cd096f0136ebf217947aab114ddc.tar.bz2
nixpkgs-146ddee13b81cd096f0136ebf217947aab114ddc.tar.lz
nixpkgs-146ddee13b81cd096f0136ebf217947aab114ddc.tar.xz
nixpkgs-146ddee13b81cd096f0136ebf217947aab114ddc.tar.zst
nixpkgs-146ddee13b81cd096f0136ebf217947aab114ddc.zip
nixos/tests/knot: add extra cpu core to master
This verifies that we allow setting affinity in multicore systems.
Diffstat (limited to 'nixos/tests/knot.nix')
-rw-r--r--nixos/tests/knot.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/tests/knot.nix b/nixos/tests/knot.nix
index bd6c875b5d8..203fd03fac2 100644
--- a/nixos/tests/knot.nix
+++ b/nixos/tests/knot.nix
@@ -45,6 +45,10 @@ in {
   nodes = {
     master = { lib, ... }: {
       imports = [ common ];
+
+      # trigger sched_setaffinity syscall
+      virtualisation.cores = 2;
+
       networking.interfaces.eth1 = {
         ipv4.addresses = lib.mkForce [
           { address = "192.168.0.1"; prefixLength = 24; }