From patchwork Tue Oct 10 09:43:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 150625 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp73489vqb; Tue, 10 Oct 2023 02:44:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGv2avUmD8wKp0BAGbnYyk6FYt/Ib3mK9j7wfWDOUIotcdc7+QVzZcM863AXxmhqszrop63 X-Received: by 2002:a05:6358:5e0b:b0:143:5d3f:f397 with SMTP id q11-20020a0563585e0b00b001435d3ff397mr16666511rwn.16.1696931074925; Tue, 10 Oct 2023 02:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696931074; cv=none; d=google.com; s=arc-20160816; b=XvuzgvyGNlAS8sC3iGkzNNbIE4tkat9mFvQ4RVLniJQ/R7u78K9/Qcmqwr+jdlbl1+ MuGnmpjw0q0XUfYvAWqCANqeMGyzi9hAg7+X3IkpWB607DOsq2aPexJShTp3IujVzcul Q/zPcJ9YlMt/OWKKCx/l6JGT5c4gpjj/xObBdPukgG4Pn4DbhYLWoVhSprnmtR6h7gu+ s76hm1v4ZN4KFFueOzMFV3X3pcrQ/Abmub1r31mmWEN5scTipHC5KixHCvMkNEcKNOST 5nMLTyBd3uDyEt+R9dfp+XMu8BfA55SSJjCs6p9QUV3pkGbheUKI6B5Gu/2Z6JjVmoDo RDYw== 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.b=gDdSVtEQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id l184-20020a6391c1000000b005702257f32esi11198464pge.185.2023.10.10.02.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 02:44:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; 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.b=gDdSVtEQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id ED75C8025DD1; Tue, 10 Oct 2023 02:44:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230466AbjJJJoO (ORCPT + 20 others); Tue, 10 Oct 2023 05:44:14 -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 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 autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Tue, 10 Oct 2023 02:44:32 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779356653061176196 X-GMAIL-MSGID: 1779361198859886675 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]; };