From b8f1ca672f3d3038fc0d2f927a3e935a7d69f471 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 9 Jul 2024 17:25:48 +0200 Subject: [PATCH] Run the memtool as first program --- lagarto-ox.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lagarto-ox.nix b/lagarto-ox.nix index 175649a..1a1e4e6 100644 --- a/lagarto-ox.nix +++ b/lagarto-ox.nix @@ -91,16 +91,17 @@ # dead. Monitor from the host with: # while [ 1 ]; do xxd -s $((0x1bfff0000 - 0x60000000)) \ # -l 4 /dev/qdma34000-MM-1; sleep 0.2; done - preDeviceCommands = '' - echo "Creating a heartbeat counter at 0x1bfff0000" - sh -c 'hb=0; while [ 1 ]; do let hb=$hb+1; devmem 0x1bfff0000 32 $hb; done' & - '' - + + preDeviceCommands = # Run our memtool to hang the kernel here. '' memtool '' + + '' + echo "Creating a heartbeat counter at 0x1bfff0000" + sh -c 'hb=0; while [ 1 ]; do let hb=$hb+1; devmem 0x1bfff0000 32 $hb; done' & + '' + + # Disable proactive compaction. May be better to disable CONFIG_COMPACTION. '' echo 0 > /proc/sys/vm/compaction_proactiveness