Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp11717rdg; Tue, 10 Oct 2023 02:44:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEatYT+/l52HQAChClafK1zUaaj9XdMwhstRmi36lIRYfIi0APoS16M680+FLHBfxkbbWmq X-Received: by 2002:a17:903:2687:b0:1c7:3f3a:9b65 with SMTP id jf7-20020a170903268700b001c73f3a9b65mr13274424plb.1.1696931090959; Tue, 10 Oct 2023 02:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696931090; cv=none; d=google.com; s=arc-20160816; b=Y4eSXZqVjw55tZ/ji6tYk/Mn/THZyNoeD8uiTlN7FHDMKqObdy1cjFZ75vV39pIGUV qaWVPn/FYqcde+rTBDJS0MCz4tknQmr7df5CQd/gfG/bRcjxtdFpZMiXjR29nMoOnp10 3D+C+9rp64PBSyd3lLW1rg9bKkOe2fU5nMmJ8+gQjfIcgiUc0HuLXts7D5I9tag9p86Q UMabtyIh8DjYrCZARd67l/qCMaypXNORV5qpHz3CO5PLudKtpyGmoqXe/s4QgSC6XPUr 0kR0DJdG1wpew/j1arcsMkZgVPfRCEGqV5u4AxecUgzAOxn3PIjayebRyDaRrHqjmQcO tLrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=/ccIF8fKpEQO34BOIIS10VJwSID43r//NiX5MeYyT5o=; fh=0w6Vam4lb7+bNb4+Wi4lbXT97sHnsEC1gsMHHofWe9o=; b=oSpcde8NvbqDr4FsG170hjdEeV02AjtcAopGsnSaEsv0LeqjBQx+5cIfxgvZMkXfxi l6G+tRPCCdJGtBu8kIwBm23eQyB6+vxFxc0jfxeeaKbzn3gB4JivzH2EOabc/O8qyqrO TKI8DwHQQ285YERP5eA7wUVMWMjFBsK2A7fEO3kyCHyB2kribCk+s2PebzdWd7aLQ7vo AMi9lg9iJmge3NcERpI5gcWnFltDj/FSwzQ3p2ihcLaaBH8Sk/PgwOpkIe5Zj2dLYY8R ld1yxCxersOE3hu3nmSVn6ujoLrbWp6/bkH+iyanWtcgogT6Qe35GvgoMwLVmkA6lENV S2Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=eyZzuK+b; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=gDdSVtEQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id a15-20020a170902eccf00b001c62ca6d540si11866899plh.77.2023.10.10.02.44.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 02:44:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=eyZzuK+b; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=gDdSVtEQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 896858022E9E; Tue, 10 Oct 2023 02:44:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230464AbjJJJoN (ORCPT + 99 others); Tue, 10 Oct 2023 05:44:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230380AbjJJJnx (ORCPT ); Tue, 10 Oct 2023 05:43:53 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A3A593; Tue, 10 Oct 2023 02:43:52 -0700 (PDT) Date: Tue, 10 Oct 2023 09:43:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1696931030; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/ccIF8fKpEQO34BOIIS10VJwSID43r//NiX5MeYyT5o=; b=eyZzuK+bnNZiBmhc4wbqwy0sKgQgYxoB3OojWTwzmPY1i0NtpOPezSP9952SsAzpXN5JGT L31JVtHxwOnb+631pC2gH4j+ELMcgCuwOsizA+JO1MUcULga+g8aFSL6qIZKC5ZnTjb2V0 WlorHSFzdzZnnJz/BTxwukh+K9ZB6uMk7R1Kkzr92tvQJN+07JoE7V5yCFdduRewbQPv4+ AZjO5gyg6PrLFmNdyMY91l3uUvBpER0dPJ9Mh8AnWA/w3MQAi/+B9qeOnEqaOnlHB5w0LR M08ykiehhYjFtp7zKtr5XtjU/hS6v+9Vv/LDZkVioDP3Th6LSzWiUtxB07vrQg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1696931030; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/ccIF8fKpEQO34BOIIS10VJwSID43r//NiX5MeYyT5o=; b=gDdSVtEQPelg+y8RE/3C3/PXw6ybTufAmM4L93NgP1okkdRGhWAarX1xv6otdhrCNPniUZ hms5e9yVbLXh15Bg== From: "tip-bot2 for Mel Gorman" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/numa: Document vma_numab_state fields Cc: Mel Gorman , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231010083143.19593-2-mgorman@techsingularity.net> References: <20231010083143.19593-2-mgorman@techsingularity.net> MIME-Version: 1.0 Message-ID: <169693102968.3135.4439690793475045331.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 10 Oct 2023 02:44:39 -0700 (PDT) X-Spam-Level: ** The following commit has been merged into the sched/core branch of tip: Commit-ID: 9ae5c00ea2e600a8b823f9b95606dd244f3096bf Gitweb: https://git.kernel.org/tip/9ae5c00ea2e600a8b823f9b95606dd244f3096bf Author: Mel Gorman AuthorDate: Tue, 10 Oct 2023 09:31:38 +01:00 Committer: Ingo Molnar CommitterDate: Tue, 10 Oct 2023 11:10:00 +02:00 sched/numa: Document vma_numab_state fields Document the intended usage of the fields. [ mingo: Reformatted to take less vertical space & tidied it up. ] Signed-off-by: Mel Gorman Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20231010083143.19593-2-mgorman@techsingularity.net --- include/linux/mm_types.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 36c5b43..d7f042e 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -551,8 +551,29 @@ struct vma_lock { }; struct vma_numab_state { + /* + * Initialised as time in 'jiffies' after which VMA + * should be scanned. Delays first scan of new VMA by at + * least sysctl_numa_balancing_scan_delay: + */ unsigned long next_scan; + + /* + * Time in jiffies when access_pids[] is reset to + * detect phase change behaviour: + */ unsigned long next_pid_reset; + + /* + * Approximate tracking of PIDs that trapped a NUMA hinting + * fault. May produce false positives due to hash collisions. + * + * [0] Previous PID tracking + * [1] Current PID tracking + * + * Window moves after next_pid_reset has expired approximately + * every VMA_PID_RESET_PERIOD jiffies: + */ unsigned long access_pids[2]; };