Follow these steps to run the linux-inference-memory-hints benchmarks in a reproducible, patched environment.
On your host Linux machine:
sudo apt update
sudo apt install -y build-essential libncurses-dev bison flex libssl-dev libelf-dev bc wget qemu-system-x86_64 debootstrapRun the automated build script. This will download 6.6.20, apply the research patches, and build the image.
chmod +x scripts/*.sh
./scripts/build_kernel.shThis project requires a minimal Linux environment to run benchmarks. The automated script uses debootstrap to build a Debian-based image.
# This requires root privileges
sudo ./scripts/create_rootfs.shLaunch the VM. This script mounts the repo as /mnt/repo inside the guest.
./scripts/run_qemu.shOnce you have a shell inside the VM:
# Inside Guest
/mnt/repo/scripts/run_in_vm.shExit the VM (Ctrl-A then X). The results will be in the results/ directory of your host repository.
Check docs/qemu-troubleshooting.md if you encounter issues.