From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 DC5D830E85C for ; Sat, 30 May 2026 03:35:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780112110; cv=none; b=Rkn8RXXoDEP4ss23LXs6OIt2xk1tF8XSA/YtFInaLc0HSiG4iVjjCLi9morqKLPPPy2pfNeYg7emBlLKTf9AVqt32ZiocBm4Aa8e59acOaa+lvpQi0OQiL51H4j/fqvdPpsqEdANnSHz8lmw3REYfp3knb0PhhDKx29infKCQyc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780112110; c=relaxed/simple; bh=ojX5adLGYm5i8THpqFK5KRfnA+8iXRky/7gaDiuWO7Y=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=UUTSNhsaCKRKGxvtEDVf03Cldho9TpEbERssE4aeBp00Z60e5AMtGhZYLleOAhQH1qaq1mDpODJsguf+jIozJS4Lj7BzhfTlszTKiNFU2cyHuyLDQsvR3dwEqwG/ct1SQz6+OCpZQz0eLuz/fGHwN7w/guNJ6WLNnSOcAxwXdmY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=s1RPw9w9; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="s1RPw9w9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2ECF31F00893; Sat, 30 May 2026 03:35:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1780112109; bh=eIs51GCFclDB/Vc9140lREUf1aegrakGz3vmQyYrme0=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=s1RPw9w9TCsxIJbfW++ELo3GCo/O8fPzcis0yOe+0IWbn6nMJ/P2T5wryOB++OFT0 cKGqOnbBLqaJSEjKg8SNZjS981QOzDI0s1h6HH1zxL2kd5qnrczmB7wddj7t53jmzx afJI97ktmOXsLJwjhBMj7JVSMrq8Xu/nBFdc5Jcc= Date: Fri, 29 May 2026 20:35:08 -0700 From: Andrew Morton To: Charles Haithcock Cc: muchun.song@linux.dev, osalvador@suse.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Respect mempolicy when calculating surplus huge pages. Message-Id: <20260529203508.a1813d90f7bfb638bfdc815a@linux-foundation.org> In-Reply-To: <20260527224848.1753560-1-chaithco@redhat.com> References: <20260527224848.1753560-1-chaithco@redhat.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 27 May 2026 16:48:46 -0600 Charles Haithcock wrote: > Presently, when calculating how many huge pages are needed when > reserving surplus huge pages, the global count of free huge pages > are used. When reserving with a mempolicy, the global count of free huge > pages is used even if some/all of those free huge pages are on numa > nodes outside of the mempolicy. Fix it so free huge pages only on nodes > within the mempolicy are considered. > Thanks. AI review asked a thing: https://sashiko.dev/#/patchset/20260527224848.1753560-1-chaithco@redhat.com