mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
nixos/tests/knot: add extra cpu core to master
This verifies that we allow setting affinity in multicore systems.
This commit is contained in:
parent
893f7af236
commit
146ddee13b
@ -45,6 +45,10 @@ in {
|
|||||||
nodes = {
|
nodes = {
|
||||||
master = { lib, ... }: {
|
master = { lib, ... }: {
|
||||||
imports = [ common ];
|
imports = [ common ];
|
||||||
|
|
||||||
|
# trigger sched_setaffinity syscall
|
||||||
|
virtualisation.cores = 2;
|
||||||
|
|
||||||
networking.interfaces.eth1 = {
|
networking.interfaces.eth1 = {
|
||||||
ipv4.addresses = lib.mkForce [
|
ipv4.addresses = lib.mkForce [
|
||||||
{ address = "192.168.0.1"; prefixLength = 24; }
|
{ address = "192.168.0.1"; prefixLength = 24; }
|
||||||
|
Loading…
Reference in New Issue
Block a user