From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from va-1-113.ptr.blmpb.com (va-1-113.ptr.blmpb.com [209.127.230.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C9B04DBD61 for ; Wed, 14 Oct 2026 09:44:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.127.230.113 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791971084; cv=none; b=g9iq8TQIJQ/JCB0FoYCi/aFYZwfiFn87dG2bGj8xRSy1IEf1CFfBvQF9pRYERYZp0UQbTT2njW5FxK/A9MRZr9WQXS/gcwD6spaWL1QSsm9KH7aaluaDXqMa3CGj6OKJJKtuZtteAfw7r6SqAsqq89H0bSIGGzxwc0w6yRDpMiM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791971084; c=relaxed/simple; bh=kwNN8h2rJ+7ieoAKpxhUBTLUlLyNeZ0xhIRLUJXZzlU=; h=Subject:Date:Mime-Version:Cc:Message-Id:To:From:Content-Type; b=QE11y/mZKLb/fT6fdFGFIJF07ta5abPzs3cj6qvxqgLxbAleY8tP6CkvNTI/0wOB4PGW2S2z2KUxuEydFcQlqnVvPdjeqdzIGsALOzgXVRQAcGMfg4L2B/1SXOZqTGzJZrToTyG/95IXu7rmKzILtBmFlzSHzDxnkZBMAxMBoqw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=iX+8PH/I; arc=none smtp.client-ip=209.127.230.113 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="iX+8PH/I" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=2212171451; d=bytedance.com; t=1791971069; h=from:subject: mime-version:from:date:message-id:subject:to:cc:reply-to:content-type: mime-version:in-reply-to:message-id; bh=I26JrSuCzA83CNBVA69JTeJPLnyTlk8cgX1YDR6KSNY=; b=iX+8PH/IjUV4qmB6BGd3VL1Lqw6bzkOoASL+EyeTFBOOww1VZFQqdJ9ZnNHAWUb0DFCZ+2 kdy0ScnYGfIS7bUfhvD2MYj3xJm2yKIZEaLaZjnhspOXbs5H2+Wnwu7ErnoV6cxUTf+7Gx wM/b/f6f4It2XcCoBuNpYWLto2ttGB/hUIrYav4PQZNV23AYNsMZh1mj53MEaXTO/sAiOc 4UgnuI2SqwERzafJkvYQUZ/Z+EVTZpJwv8mhL5DriUV6SUlxcOIHrOPpHIEExDbcwMZbM3 +YJONXw4G07N1mv53zXC1CBw5lZSrJraxgHrDryoKCXiCVq7iWzQtY3U2rCYOg== Subject: [PATCH 0/6] sched/numa: fix several NUMA balancing issues Date: Wed, 14 Oct 2026 17:43:41 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.45.2 X-Lms-Return-Path: Cc: , , , "Li Zhe" Message-Id: <20261014094347.99157-1-lizhe.67@bytedance.com> Content-Transfer-Encoding: 7bit To: , , , , , , , , , , , , , , , , From: "Li Zhe" X-Original-From: Li Zhe Content-Type: text/plain; charset=UTF-8 This series fixes several NUMA balancing issues around scan-period adjustment, memory-tiering promotion feedback, and stale task-placement state. Patch 1 clears retained NUMA fault-window and locality state across execve(), so the new image does not inherit feedback from the old one. Patch 2 fixes the scan-period ratio denominator checks. The existing code checks a different sum than the one later used as the divisor. Patch 3 fixes scan-period adjustment for shared faults. Shared or local faults should slow scanning down, while speeding up should require enough faults that are both private and remote. Patch 4 makes the free-space memory-tiering promotion bypass configurable. The default behavior is preserved, but users can require the normal hotness and rate-limit checks even when the top tier has enough free space. Patch 5 prevents memory-tiering-only promotion faults from feeding normal AutoNUMA task-placement statistics. Patch 6 ignores stale preferred-node placement state while normal NUMA balancing is disabled, so memory-tiering-only mode does not consume old task-placement decisions. Li Zhe (6): sched/numa: clear fault locality state on execve sched/numa: fix scan-period ratio denominator checks sched/numa: fix scan-period adjustment for shared faults sched/numa: make free-space tiering promotion bypass configurable sched/numa: do not feed tiering promotions into task placement stats sched/numa: ignore preferred nodes without normal balancing Documentation/admin-guide/sysctl/kernel.rst | 16 ++ include/linux/mm.h | 5 +- include/linux/mmzone.h | 5 +- include/linux/sched.h | 17 +- kernel/sched/fair.c | 181 ++++++++++++++------ mm/memory.c | 2 +- 6 files changed, 163 insertions(+), 63 deletions(-) -- 2.20.1