forked from mirrors/nixpkgs
* 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:
parent
ecaf1d9f08
commit
8db3bdc4fc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue