Received: by 2002:a05:7412:8d08:b0:f9:2d0a:d759 with SMTP id bj8csp52699rdb; Sun, 17 Dec 2023 01:41:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHOV+ppJlHZIJy5IQK7Y/jC+dd8MJr9OQTQS5WF9iZyDusFWnZRH5D2KGOHNGKkmvcGimwm X-Received: by 2002:a05:600c:22cd:b0:40c:679b:9c58 with SMTP id 13-20020a05600c22cd00b0040c679b9c58mr2761927wmg.5.1702806091166; Sun, 17 Dec 2023 01:41:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702806091; cv=none; d=google.com; s=arc-20160816; b=m/GggbD08jnS/AQsBBdsXLcACq94C5yOk43ToVH0M0rfoU2EQDr/KmVldtjSMQdYbe vATS9dA/WmHBQiBTLEZh/5nLkT/tHKkk53vdUS/LrSHJ880b9OR6W190dVOTptUrPhJE r0QwEcJEmrGINOpEyuRQPAELPjRJJsFIieNcffJLHGqUstJmnuRPWYWsDAbAB50B7yhX Em4r8Py1eKTgmeXHE8iVE87WFKBIIVGQpQJBwbwxOnc4Z+2kphmNTCXZsSSvVqMz0O7T ExRgqfENLCJA3kCT1J87legAnvkxEixBS+y43slmYRqlt/7tthbaUXuNZc5mT8kPl0HX pl9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=sk2aSS7C6uz7kFd7FFXKnTFJRE4AG90k83A2i8fymzA=; fh=pQngX7wUHISL9l483Uj+x4OG2CRXdRoa/ZZ8i7AQFio=; b=zjdhPFyZSDgmHZJ2T7aOlk5jEkddA9Y5KDIbSrPqUoILTHijK3Tgtxx4Mtlm6WtMcO TT9YU1Bg3sF6XFdkqHOu9d0uInsbOPwdfP0DcjCcZJpjM2Y5OfK/JyBGX5O0Z06FRSVD KHHSNIQtrEjoGwTrjp/JGe+A77vXYEl/4IZ/B3OKlw/lP9PnIqfpRLQCMQalI91VGVmV ApPWa8yCQWeBoMHRDHLtDV8gLlkLB6bWEQlmOKo6y/likIGyfc1k/X1uOB3FUOTJyFoF ct2i9ubSMRx5jutQb5FwZbrkc7IzHERSB/8GNpIzPjBdToD/CgUt5XuE6tiR15MKStG3 O+TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=korg header.b="im/LOs+I"; spf=pass (google.com: domain of linux-kernel+bounces-2518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2518-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d23-20020a170906345700b00a1d34ec0fe2si8971048ejb.375.2023.12.17.01.41.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 01:41:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=korg header.b="im/LOs+I"; spf=pass (google.com: domain of linux-kernel+bounces-2518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2518-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E28B21F22135 for ; Sun, 17 Dec 2023 09:41:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32A8720E4; Sun, 17 Dec 2023 09:41:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="im/LOs+I" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C9681FAD; Sun, 17 Dec 2023 09:41:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 5DDFCC433C7; Sun, 17 Dec 2023 09:41:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux.dev; s=korg; t=1702806079; bh=ttNmycxoIsxpfo5cJyI5DIRC9I7Q/DzKLZF2oY4kEPY=; h=From:Date:Subject:To:Cc:From; b=im/LOs+Ij/fO+NjLt+rx0S2r95Ijcyn/AaSA/b1uyE6K3fqAVc58s2CJHOo14+lS/ Nu2ljIUGbYBrAClmbPuL8PHz+4Ga6Fzd4XfiCpHk505BSOx3zf8g/uMZner1XV/1EN WNgMe1LZCdjHFul20tPdn8Fkj6fWrsl+ncCccFAg= Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37879C3DA6E; Sun, 17 Dec 2023 09:41:19 +0000 (UTC) From: Itaru Kitayama Date: Sun, 17 Dec 2023 18:41:08 +0900 Subject: [PATCH] selftest: kvm: kvm_page_table_test: change default guest memory down to 128MB Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231217-selftest-dev-v1-1-52c338212fe8@linux.dev> X-B4-Tracking: v=1; b=H4sIADPCfmUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2NDI0Nz3eLUnLSS1OIS3ZTUMt1kczNLUxOTZGMD4xQloJaCotS0zAqwcdG xtbUA5dOiBl4AAAA= To: Paolo Bonzini , Shuah Khan Cc: kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Itaru Kitayama X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1702806078; l=1446; i=itaru.kitayama@linux.dev; s=20231030; h=from:subject:message-id; bh=ttNmycxoIsxpfo5cJyI5DIRC9I7Q/DzKLZF2oY4kEPY=; b=Tl6tdow/g8DRgFi3LNlauLgWhsynG/FUxZ4kNF1wGlL5MOvLo9U2azQiYxC6/tTKqycnXHX7t BoJADq8yESEA9RLlYg77m2B/A+FY7MbcGmLMeOQNaTkgO6M/USLasTg X-Developer-Key: i=itaru.kitayama@linux.dev; a=ed25519; pk=4yYhz2CbKL7F2qR5IzP7QvqM9B6c+dfWJRHWez+rMDw= X-Endpoint-Received: by B4 Relay for itaru.kitayama@linux.dev/20231030 with auth_id=92 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 --- 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