Run the memtool as first program

This commit is contained in:
Rodrigo Arias 2024-07-09 17:25:48 +02:00
parent d488c0b3b7
commit b8f1ca672f

View File

@ -91,16 +91,17 @@
# dead. Monitor from the host with: # dead. Monitor from the host with:
# while [ 1 ]; do xxd -s $((0x1bfff0000 - 0x60000000)) \ # while [ 1 ]; do xxd -s $((0x1bfff0000 - 0x60000000)) \
# -l 4 /dev/qdma34000-MM-1; sleep 0.2; done # -l 4 /dev/qdma34000-MM-1; sleep 0.2; done
preDeviceCommands = '' preDeviceCommands =
echo "Creating a heartbeat counter at 0x1bfff0000"
sh -c 'hb=0; while [ 1 ]; do let hb=$hb+1; devmem 0x1bfff0000 32 $hb; done' &
''
+
# Run our memtool to hang the kernel here. # Run our memtool to hang the kernel here.
'' ''
memtool 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. # Disable proactive compaction. May be better to disable CONFIG_COMPACTION.
'' ''
echo 0 > /proc/sys/vm/compaction_proactiveness echo 0 > /proc/sys/vm/compaction_proactiveness