{"id":2228788,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2228788/?format=json","web_url":"http://patchwork.ozlabs.org/project/ltp/patch/20260427115941.31945-1-wegao@suse.com/","project":{"id":59,"url":"http://patchwork.ozlabs.org/api/1.1/projects/59/?format=json","name":"Linux Test Project development","link_name":"ltp","list_id":"ltp.lists.linux.it","list_email":"ltp@lists.linux.it","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260427115941.31945-1-wegao@suse.com>","date":"2026-04-27T11:59:39","name":"[v1] mmapstress06: TCONF on systems without swap space","commit_ref":null,"pull_url":null,"state":"needs-review-ack","archived":false,"hash":"cc02d0226cee43cc1ef013ff5cbfec2357e42ff6","submitter":{"id":85577,"url":"http://patchwork.ozlabs.org/api/1.1/people/85577/?format=json","name":"Wei Gao","email":"wegao@suse.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/ltp/patch/20260427115941.31945-1-wegao@suse.com/mbox/","series":[{"id":501633,"url":"http://patchwork.ozlabs.org/api/1.1/series/501633/?format=json","web_url":"http://patchwork.ozlabs.org/project/ltp/list/?series=501633","date":"2026-04-27T11:59:39","name":"[v1] mmapstress06: TCONF on systems without swap space","version":1,"mbox":"http://patchwork.ozlabs.org/series/501633/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2228788/comments/","check":"success","checks":"http://patchwork.ozlabs.org/api/patches/2228788/checks/","tags":{},"headers":{"Return-Path":"<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>","X-Original-To":["incoming@patchwork.ozlabs.org","ltp@lists.linux.it"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","ltp@picard.linux.it"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=lists.linux.it header.i=@lists.linux.it\n header.a=rsa-sha256 header.s=picard header.b=p24Cizs6;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256\n header.s=google header.b=hCkI7OSL;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=2001:1418:10:5::2; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)"],"Received":["from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g42Dp61dSz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 21:59:54 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 31CB33D0EA6\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 13:59:52 +0200 (CEST)","from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [217.194.8.5])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 117F23C9F01\n for <ltp@lists.linux.it>; Mon, 27 Apr 2026 13:59:48 +0200 (CEST)","from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com\n [IPv6:2a00:1450:4864:20::32e])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-5.smtp.seeweb.it (Postfix) with ESMTPS id 9D9E2600677\n for <ltp@lists.linux.it>; Mon, 27 Apr 2026 13:59:47 +0200 (CEST)","by mail-wm1-x32e.google.com with SMTP id\n 5b1f17b1804b1-48984d29fe3so121629565e9.0\n for <ltp@lists.linux.it>; Mon, 27 Apr 2026 04:59:47 -0700 (PDT)","from localhost ([2a07:de40:b240:0:2ad6:ed42:2ad6:ed42])\n by smtp.gmail.com with UTF8SMTPSA id\n 5b1f17b1804b1-488fc10777csm891148775e9.8.2026.04.27.04.59.46\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 27 Apr 2026 04:59:46 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it;\n i=@lists.linux.it; q=dns/txt; s=picard; t=1777291192; h=to : date :\n message-id : mime-version : subject : list-id : list-unsubscribe :\n list-archive : list-post : list-help : list-subscribe : from :\n reply-to : content-type : content-transfer-encoding : sender : from;\n bh=a7Tib8Po7bPwFUe9m9ffXLqQFlLlB4e6n/hpmqEKC3E=;\n b=p24Cizs6/SOUsXS/BaUv068tzrNCviZs63KE5zqopWXVsupnLHJ10AOYOktZxxC8EhNLN\n hxRsm3UFrZulzG7Cbd5aC/aevuW3+LPDMHxKMZdbw/lHS5Cy6rqNmNX2d9ExLD6Wgx73nxi\n xa6Z5t5m3rF01UHsbeprdz1tmfjwATE=","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=suse.com; s=google; t=1777291187; x=1777895987; darn=lists.linux.it;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=jnWIDd/CFYkI32gQKxafBhQmLQUL4vE1nk8E0aaFlcI=;\n b=hCkI7OSLHFjtrgSpcLF9DSSgqgY2v5kTguZdZOowyJFsSeGFmI5zbATnjMwCUCCq3H\n faHWHZEB/I62x5WS23TxcT9ZE56DvOOXHHkDOgvgaX4tXGG0gHVvKrBWkQ68txbcrurl\n JYJ2kwhrhzl7NNuVpTj5l/DqcDwtWuPKZKYCPwmbQXwiyNmWvWwaDKareV/moK5gUDXx\n Z8xwfKP2Jx7964jWkZpWLbSLLSR0DkyLeRzuPdgmrlsSy26FNyi2Qs3zmYO9IoV1mfFe\n OnIpZzAhNhORrGtREafGf/eztwd8GFNRnG214s2Jjc7TeH22iQlzdYMhNS69aQgu9txi\n rs1Q=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777291187; x=1777895987;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=jnWIDd/CFYkI32gQKxafBhQmLQUL4vE1nk8E0aaFlcI=;\n b=XHN4fprXMsLnskwbP5jkxhts9GGQ/xoQLj/CmYEvq7+IG2Aupj1Bk5th63cxANNN9X\n VDNjZcbS1fGBpJ8fvLwA6EuslpGP3Ph6hXVoCofykHC8hevPHLF7zJc0TBdHhUubJ05o\n E2u2wC45DQbal0QVqe/5NxsFf1i+FVydPwPA2zMoB4PD9DZ/LNfNKKOjbYHnP0pTjgEi\n 4SalaH/n/jdkq10Iujj0UQfoV6ctHpkmYhn7NJE24OVZpfmp4zyNv9h2nby0qCIJZZa8\n V2AJvv/9i4peQjynWXWyY7F9ZVCgtwvYSMQxFFB8uaAZIq4FAQEJpDWcqAXbxD/FaNQD\n VkAA==","X-Gm-Message-State":"AOJu0YxIYEpwS4750OmFHFUM2Vgtj9DgjIdi4Jm2hAKpvrlm7li1hAfl\n 6x5jUIEM8JM4M6rYxj4FQxnaXmV/JjDrSvHYrenyWQPj27XBGRYXLoxIUpbdLnaimYNf+JHT9l7\n U18Q=","X-Gm-Gg":"AeBDievxX6J541l/q8OR81jD/DFEeBhFpaqjk2svi0LiLU05S/l9rYVopTn7o9/MaeN\n GBYgJ4myjuP6q7t0KpQ0fHnK/7aXwzlyQ6ZlUIkU1jKDJYPYaAtAiPni0uYFT9N11Hs82jCoYtB\n EuiSHJyKP8uM8FfEp6N1rQVcgFyQ7/ULbJvAanYXg1ZeR9N2p5Scz4JEAVG5wjz6f3049Ipxv3C\n TqSYx3XFqLq/iI7Y1jRSh7BSA/W6i8ZsIijbUsp/k3V4OVay31vSHqfdS43Uh+OyrM6DcL7KPHA\n Tmav93hjNnj6s1DCFvx6LqV72sUoFAzyNB4Z/rzPZatxTVyEXrh0n+i9+8vteYjTJFq17V8horO\n ZodaAOH4BgZcRBgwff6c3qVku3pPfMm0TT4ihNlaX99IZy/PdkckFw21OOpDwKfogTns0zA4z2d\n GCmLw6wlBeEDEnNoSSWzo6Hg==","X-Received":"by 2002:a05:600c:1616:b0:489:1cd2:6106 with SMTP id\n 5b1f17b1804b1-4891cd261f1mr271364635e9.6.1777291186737;\n Mon, 27 Apr 2026 04:59:46 -0700 (PDT)","To":"ltp@lists.linux.it","Date":"Mon, 27 Apr 2026 11:59:39 +0000","Message-ID":"<20260427115941.31945-1-wegao@suse.com>","X-Mailer":"git-send-email 2.43.0","MIME-Version":"1.0","X-Spam-Status":"No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no\n autolearn=disabled version=4.0.1","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on in-5.smtp.seeweb.it","X-Virus-Scanned":"clamav-milter 1.0.9 at in-5.smtp.seeweb.it","X-Virus-Status":"Clean","Subject":"[LTP] [PATCH v1] mmapstress06: TCONF on systems without swap space","X-BeenThere":"ltp@lists.linux.it","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"Linux Test Project <ltp.lists.linux.it>","List-Unsubscribe":"<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>","List-Archive":"<http://lists.linux.it/pipermail/ltp/>","List-Post":"<mailto:ltp@lists.linux.it>","List-Help":"<mailto:ltp-request@lists.linux.it?subject=help>","List-Subscribe":"<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>","From":"Wei Gao via ltp <ltp@lists.linux.it>","Reply-To":"Wei Gao <wegao@suse.com>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it","Sender":"\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"},"content":"mmapstress06 is designed to stress the mfile_swap kernel primitive, which\nmanages shared anonymous memory. On architectures with large pages (like\n64KB on ppc64le), the test's hardcoded request for 32769 pages results\nin a ~2GB mapping. So in suse test system configured with 2GB of RAM and\nno swap space, the test will fails with following information:\n\nmmapstress06: errno = 12; large mmap failed\nfor this test to run, it needs a mmap space of\n32769 pages\n\nThe failure occurs because the 2GB request cannot be fulfilled within\nthe 2GB RAM limit without swap backing. Since the test specifically\nintends to exercise swap-related logic (mfile_swap), it should be skipped\nwith TCONF when the system lacks swap space.\n\nSigned-off-by: Wei Gao <wegao@suse.com>\n---\n testcases/kernel/mem/mmapstress/mmapstress06.c | 8 ++++++++\n 1 file changed, 8 insertions(+)","diff":"diff --git a/testcases/kernel/mem/mmapstress/mmapstress06.c b/testcases/kernel/mem/mmapstress/mmapstress06.c\nindex 37b7edc84..54b5febbf 100644\n--- a/testcases/kernel/mem/mmapstress/mmapstress06.c\n+++ b/testcases/kernel/mem/mmapstress/mmapstress06.c\n@@ -51,6 +51,8 @@ void ok_exit();\n \n #define ANON_GRAN_PAGES_MAX\t(32U)\n \n+#include \"tst_memutils.h\"\n+\n extern time_t time(time_t *);\n extern char *ctime(const time_t *);\n extern int atoi(const char *);\n@@ -74,6 +76,12 @@ int main(int argc, char *argv[])\n \t\t(void)fprintf(stderr, \"usage: %s sleep_time\\n\", argv[0]);\n \t\tanyfail();\n \t}\n+\n+\tif (tst_available_swap() <= 0) {\n+\t\ttst_resm(TCONF, \"Test requires swap space to exercise mfile_swap logic\");\n+\t\ttst_exit();\n+\t}\n+\n \t(void)time(&t);\n //      (void)printf(\"%s: Started %s\", argv[0], ctime(&t));  LTP Port\n \tif (sbrk(pagesize - ((ulong) sbrk(0) & (pagesize - 1))) == (char *)-1) {\n","prefixes":["v1"]}