Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp872043pxb; Thu, 19 Aug 2021 13:29:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/dICRj2lUaiGvEToXibPb3UT+U3n5CVsKP8ifQFOqPgpkCZ6nQTKidoeK47VfH4QV9pg8 X-Received: by 2002:a17:906:8cd:: with SMTP id o13mr17818651eje.341.1629404969108; Thu, 19 Aug 2021 13:29:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629404969; cv=none; d=google.com; s=arc-20160816; b=qeqZ/NTno9SIRwIw/w957KmhkXE7pITHxkUzDEpcvRG03M3gNOjmQFWART9oTQcBVW B257xvxccCL+U34Nx6R3MZICyz7qtcqm7Ker32PYsQv+vF1GAFJ+syAzl1Di0Ufnqn1O +ss2ZeqG1hEZY+M4SdiB70VbCHVhgrbeZq99fiXQVJU42qlKaEx37+lyoZ2Ufc5SAVxs R7HPPTks62vJTwRqomv1o/0Y/hPyu9qC35mNFPiF+893FT0UEagsPMZ8gHwiOSd8Lz/I hiKadQieM9QnbmavJ2Hsi64qFvNSicQU5pageQzFR5FexG8ZOTpVzyR0pF7Dtr18TD0L PH+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/83TwebHHmJL69BFYr+1IWSB3TySC/r6MxW9uBWi/+g=; b=PMZ5o/01c+o1LY8+E3oEyJQymzpNEWmnd3T4oGSxDui2qcNwnHZO0+my5imJohAy4T F/xgLyX23mY4+Y7FFPfzKzt/ZhVxulfRSQikrfZ78hL/aDIpe646ZfcMhGL0wVi8ykck cPgUA17b05tLd7FIcRoCeLJdUcbO8BAZo5+M9LskwHZQ6jHu2aqFDUtQ9kyKed/fKeIq KsabRXOx15HRPzIYNJXtXKgVDshc+8hX9u/GJAJtSaeIITxnJYhLWaH6NrsgjfEkEVIR 0rnHTGC5IWJROQcMVaOfHZggIGYZtygM8xbsTRC+g16bxsexcioOKdRSdhlepcKMJZEy O5gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=GQgrFd++; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d26si4021294edy.388.2021.08.19.13.29.00; Thu, 19 Aug 2021 13:29:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=GQgrFd++; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235055AbhHSU1q (ORCPT + 99 others); Thu, 19 Aug 2021 16:27:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233208AbhHSU1p (ORCPT ); Thu, 19 Aug 2021 16:27:45 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC39CC061575 for ; Thu, 19 Aug 2021 13:27:08 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id s3so13481446ljp.11 for ; Thu, 19 Aug 2021 13:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/83TwebHHmJL69BFYr+1IWSB3TySC/r6MxW9uBWi/+g=; b=GQgrFd++dvqTy4n5ah1wmwLwveJavsfRGF/U0Ay5sHyCYL1tB9CedHiNL2eAlmd9TM YJ63LGPPToxzqCDQ07+z65M5TC1Wm/Ki3CYnhRCk9K/n/2fnJQPOFh+gCyYg8ufVOn/l 6uHMY+7AZsU5JxYbXbeetp/lTvDYSp0eJhx+ahZ7jmKAqLnaKqYFxmeqF0UW+Xf+Dz5j sWDaZ/zt455CjeftzazWfFULzFzpBZ0gjHhw0+uuqXLtDyjAMDOasmBO/Vrp9zbVVGxC wF8sfEbkojmtlfU7T0rzQq92xjoXFBCppMAHDhZxxcPtRujQ9gVTP6az/rXUdY5XzNiW 2B1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/83TwebHHmJL69BFYr+1IWSB3TySC/r6MxW9uBWi/+g=; b=RHJP8vOOz3x+a7o0B6N5e+LbjiPpiuHgifUWszlKKRE36n2mT6A1bUywuqeUHbkQVy ByYtMefvixAcYQ1+OgSsNLuV3dHV7nBAgzJObWjYM0mQemPLprDQwvldgvpFk7ALOdU+ 2AL3ymlvUPG9UM7obL0XBlbEp5US4sDC4aTDcS9yC5xHhkdCc7eKDNtAEbIYO2JHiVf0 IEG6RgXpy/4pYwAsHFKQn4n1LNWn213CQRlr2397Mg12qh7RM4GinjBj6wV0KKNdVJ7K HsI3KcJn//9R2SM9TclV3g3Jh5KercwTQDDGj5aN7jgBmu624NnpZiAUhEeofIyMsRRB sKfw== X-Gm-Message-State: AOAM532UpOqAlFU4jcNO+OEO42yFEOwv9rOgYSct0StNbGgsA+hfjDus UNqUJzIpQTvXmAk8M69wif0LKflftg8FfNB9571GKTstpezvhg== X-Received: by 2002:a2e:7103:: with SMTP id m3mr13430013ljc.122.1629404826894; Thu, 19 Aug 2021 13:27:06 -0700 (PDT) MIME-Version: 1.0 References: <20210819163056.GA9764@haolee.github.io> In-Reply-To: <20210819163056.GA9764@haolee.github.io> From: Shakeel Butt Date: Thu, 19 Aug 2021 13:26:55 -0700 Message-ID: Subject: Re: [PATCH] mm: vmscan: consistent update to pgdeactivate and pgactivate To: Hao Lee Cc: Andrew Morton , Johannes Weiner , Linux MM , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 19, 2021 at 9:31 AM Hao Lee wrote: > > After the commit 912c05720f00 ("mm: vmscan: consistent update to > pgrefill"), pgrefill is consistent with pgscan and pgsteal. Only under > global reclaim, are they updated at system level. Apart from that, > pgdeactivate is often used together with pgrefill to measure the > deactivation efficiency and pgactivate is used together with > pgscan to measure the reclaim efficiency. It's also necessary to > make pgdeactivate and pgactivate consistent with this rule. > > Signed-off-by: Hao Lee pgactivate and pgdeactivate are also updated in code paths other than memory reclaim like mark_page_accessed() or madvise(COLD). Wouldn't that impact your analysis of these metrics as well?