Skip to contentSkip to conversation

selftest: kvm: kvm_page_table_test: change default guest memory down to 128MB

PATCH New Itaru Kitayama 1 participant 1 message Dec 17, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftest: kvm: kvm_page_table_test: change default guest memory down to 128MB

kvm_page_table_test's current default guest memory is set to 1GB, however on a 4GB of system memory this setting causes an OOM event. While it is able to control the test program arguments using an environment variable, KSELFTEST_KVM_PAGE_TABLE_TEST_ARGS, it is not intuitively clear for a selftest users the above variable exists, change the default guest memory down to 128MB so that small systems can run this test without seeing an OOM.

---

---
 tools/testing/selftests/kvm/kvm_page_table_test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/testing/selftests/kvm/kvm_page_table_test.c +2 -2
index 69f26d80c821..3cef22642bcb 100644
@@ -24,8 +24,8 @@
 
 #define TEST_MEM_SLOT_INDEX             1
 
-/* Default size(1GB) of the memory for testing */
-#define DEFAULT_TEST_MEM_SIZE		(1 << 30)
+/* Default size(128MB) of the memory for testing */
+#define DEFAULT_TEST_MEM_SIZE          (1 << 27)
 
 /* Default guest test virtual memory offset */
 #define DEFAULT_GUEST_TEST_MEM		0xc0000000

---
base-commit: a39b6ac3781d46ba18193c9dbb2110f31e9bffe9
change-id: 20231217-selftest-dev-c769544c303d

Best regards,

Signature · 1 line
Itaru Kitayama <[email protected]>