Skip to content

Commit

Permalink
selfetests/bpf: Update vmtest.sh defaults
Browse files Browse the repository at this point in the history
Increase memory to 4G, 8 SMP core with host cpu passthrough. This
make it run faster in parallel mode and more likely to succeed.

Signed-off-by: Yucong Sun <sunyucong@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211025223345.2136168-2-fallentree@fb.com
  • Loading branch information
Yucong Sun authored and Andrii Nakryiko committed Oct 27, 2021
1 parent f9d532f commit 547208a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/testing/selftests/bpf/vmtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ EOF
-nodefaults \
-display none \
-serial mon:stdio \
-cpu kvm64 \
-cpu host \
-enable-kvm \
-smp 4 \
-m 2G \
-smp 8 \
-m 4G \
-drive file="${rootfs_img}",format=raw,index=1,media=disk,if=virtio,cache=none \
-kernel "${kernel_bzimage}" \
-append "root=/dev/vda rw console=ttyS0,115200"
Expand Down

0 comments on commit 547208a

Please sign in to comment.