From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08504606A329 for ; Mon, 16 Nov 2026 12:52:06 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 8B7BF3E97B3 for ; Mon, 16 Nov 2026 13:52:04 +0100 (CET) Received: from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [IPv6:2001:4b78:1:20::5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id E96393E1908 for ; Mon, 16 Nov 2026 13:51:49 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-5.smtp.seeweb.it (Postfix) with ESMTPS id 9462A600807 for ; Mon, 16 Nov 2026 13:51:48 +0100 (CET) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 6A0B01F7E2; Mon, 16 Nov 2026 12:51:47 +0000 (UTC) Authentication-Results: smtp-out2.suse.de; none Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 44FDC1334C; Mon, 16 Nov 2026 12:51:47 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id /tqhCGP8+mouAQAAD6G6ig (envelope-from ); Mon, 16 Nov 2026 12:51:47 +0000 Date: Mon, 16 Nov 2026 13:52:11 +0100 From: Cyril Hrubis To: Huaisheng Ye Message-ID: References: <20261116101559.93229-1-yehuaisheng@open-hieco.net> X-Archived-By: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20261116101559.93229-1-yehuaisheng@open-hieco.net> X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[] X-Spam-Score: -4.00 X-Spam-Level: X-Rspamd-Queue-Id: 6A0B01F7E2 X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Action: no action X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Virus-Scanned: clamav-milter 1.0.9 at in-5.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [PATCH] hugemmap10: Add linux-git tag for NUMA fix X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ltp@lists.linux.it Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ltp" Hi! > +/* > + * This test also covers the NUMA regression fixed by Linux commit > + * 21f514ad520459fbfa58ccdf171bb68148c2f5aa. If free huge pages are outside > + * the nodes allowed by the task's cpuset or MPOL_BIND policy, hugetlb must > + * account for the allowed-node shortfall when gathering surplus pages. > + * Otherwise mmap() may fail with ENOMEM even when nr_overcommit_hugepages > + * permits allocating surplus pages on the allowed nodes. > + * > + * The issue can be exercised on a system with two or more NUMA nodes, for > + * example with: > + * > + * numactl --cpunodebind=0 --membind=1 ./hugemmap10 If nothing else, this text should be part of the doc comment just above it so that it's properly exported to documentation. Also if the test needs to be bind to specific nodes to reproduce the problem, it would make sense (in a separate patch) to add a subtest to the test so that we can test it properly. -- Cyril Hrubis chrubis@suse.cz -- Mailing list info: https://lists.linux.it/listinfo/ltp