From d488c0b3b784dccf543ab8b4de0ad97d78113557 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 9 Jul 2024 17:06:50 +0200 Subject: [PATCH] Always run memtool at the start --- JOURNAL.md | 2 ++ lagarto-ox.nix | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/JOURNAL.md b/JOURNAL.md index c5653f5..4733b14 100644 --- a/JOURNAL.md +++ b/JOURNAL.md @@ -1038,3 +1038,5 @@ Let's see if we can reproduce it again in the same position. iter 26, nblocks 21, nbytes 50.2M (A) iter 27, nblocks 22, nbytes 53.8M (A) +Let's make it automatic, so we only need to boot and confirm that it +hangs. Just in case we can make it not hang by a miracle. diff --git a/lagarto-ox.nix b/lagarto-ox.nix index 4b3be5d..175649a 100644 --- a/lagarto-ox.nix +++ b/lagarto-ox.nix @@ -96,6 +96,11 @@ sh -c 'hb=0; while [ 1 ]; do let hb=$hb+1; devmem 0x1bfff0000 32 $hb; done' & '' + + # Run our memtool to hang the kernel here. + '' + memtool + '' + + # Disable proactive compaction. May be better to disable CONFIG_COMPACTION. '' echo 0 > /proc/sys/vm/compaction_proactiveness