1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

* In VM tests, use acpi_pm as the clock source. This causes the guest

clock to slow down under high host load.  This is usually a bad
  thing, but for VM tests it should provide a bit more determinism
  (e.g. if the VM runs at lower speed, then timeouts in the VM should
  also be delayed).

svn path=/nixos/trunk/; revision=25490
This commit is contained in:
Eelco Dolstra 2011-01-10 14:22:38 +00:00
parent ecaf1d9f08
commit 8db3bdc4fc

View file

@ -41,6 +41,16 @@ in
respawn = false;
};
boot.initrd.postDeviceCommands =
''
# Using acpi_pm as a clock source causes the guest clock to
# slow down under high host load. This is usually a bad
# thing, but for VM tests it should provide a bit more
# determinism (e.g. if the VM runs at lower speed, then
# timeouts in the VM should also be delayed).
echo acpi_pm > /sys/devices/system/clocksource/clocksource0/current_clocksource
'';
boot.postBootCommands =
''
# Panic on out-of-memory conditions rather than letting the