diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-01-04 16:53:42 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-01-04 16:53:42 +0100 |
commit | 6d02d7e740396980cf4f36b3a623eea01155b6d2 (patch) | |
tree | 047e2a0e6c6e7fb64ef8404549620ea38e49208b /nixos/modules/testing | |
parent | 517d8c88469bc6cd72056e7cc24c42d9ee98334e (diff) |
NixOS tests: Increase hung_task_timeout_secs
This hopefully fixes intermittent test failures like http://hydra.nixos.org/build/29962437 router# [ 240.128835] INFO: task mke2fs:99 blocked for more than 120 seconds. router# [ 240.130135] Not tainted 3.18.25 #1-NixOS router# [ 240.131110] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. assuming that these are caused by high load on the host.
Diffstat (limited to 'nixos/modules/testing')
-rw-r--r-- | nixos/modules/testing/test-instrumentation.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/testing/test-instrumentation.nix b/nixos/modules/testing/test-instrumentation.nix index f37bbd0246da1..c233beb63ca72 100644 --- a/nixos/modules/testing/test-instrumentation.nix +++ b/nixos/modules/testing/test-instrumentation.nix @@ -43,6 +43,11 @@ let kernel = config.boot.kernelPackages.kernel; in # into thinking they're running interactively. environment.variables.PAGER = ""; + boot.initrd.preDeviceCommands = + '' + echo 600 > /proc/sys/kernel/hung_task_timeout_secs + ''; + boot.initrd.postDeviceCommands = '' # Using acpi_pm as a clock source causes the guest clock to |