public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftest: kvm: kvm_page_table_test: change default guest memory down to 128MB
@ 2023-12-17  9:41 Itaru Kitayama
  0 siblings, 0 replies; only message in thread
From: Itaru Kitayama @ 2023-12-17  9:41 UTC (permalink / raw)
  To: Paolo Bonzini, Shuah Khan
  Cc: kvm, linux-kselftest, linux-kernel, Itaru Kitayama

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.

---


Signed-off-by: Itaru Kitayama <itaru.kitayama@linux.dev>
---
 tools/testing/selftests/kvm/kvm_page_table_test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/kvm/kvm_page_table_test.c b/tools/testing/selftests/kvm/kvm_page_table_test.c
index 69f26d80c821..3cef22642bcb 100644
--- a/tools/testing/selftests/kvm/kvm_page_table_test.c
+++ b/tools/testing/selftests/kvm/kvm_page_table_test.c
@@ -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,
-- 
Itaru Kitayama <itaru.kitayama@linux.dev>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-17  9:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-17  9:41 [PATCH] selftest: kvm: kvm_page_table_test: change default guest memory down to 128MB Itaru Kitayama

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox