Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp896863rwr; Wed, 3 May 2023 07:36:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7MZB+ZXwYqThR1vrK8jlEF0jjsgq6OkECML4wY2KKjOE8vz2LyX69RM6Udx1t/zl3niWvI X-Received: by 2002:a17:90a:1a07:b0:24e:1c72:c096 with SMTP id 7-20020a17090a1a0700b0024e1c72c096mr5466371pjk.4.1683124614372; Wed, 03 May 2023 07:36:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683124614; cv=none; d=google.com; s=arc-20160816; b=e4SN9oZsLNiG0Unn6HKkXyGcXjb+qBSvbPmyD6LYKhDSbgKyT3vyn0iLQwcawOJ1EE pcWkbO+vupgZWVdZzELhBQenihO9FzQMzWAlvzU+W8Hf9zijogS4oXNX98wsLB6zPTnw Ykew+afp0d43mYce5dvhNbbGjt4Wa2T4l1CNT9W3Vcz6pO2Q9k4bALnJVFTx1OdFkjNF ApxJH23JLyTxC4AcXrPkrRbFvmdsbsAKAEGgsFD2ROzUve/JS6uLga72l1DvEOljt9fU Sgk+n45u5lGSMi11lBV0Myd1FVD3FIB4TBj7jHyIiRSV476v8BFnCrdC2WioJLBiuVI2 ffFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=n7llKhBaHnkQjLetPGzkZN0ajWGNkpSrzpK5vsJeUYo=; b=v8BsI9kwBw7bCN4osYX1dZT60hFnxTmwSP9OPOA7togK39d1T18wWNXJcPvuSzTe/v CD9e/+cgo1dt/wmn9AUmMGSxq5b9KpKyzSfUf7Ps/W5UwwyFfbECj5D5piF6yk1vndHI AJEgcZFde53b5VKfPmQhBxZq0Td1SiTZXrx2ybwvlVVXU7fuQobQhOtxTsReIR9f4mQp q4vf4y1IizEG83qp6+uIlijVGTFixnsoP6pFdZzQzwOC7yGRzna+mJqpWvlqeJS7cJPV LWsF+8PxF312X0eCc27xwzK8u231zt+5uTglUUyqY3jpTF1dKaHYEjQcEpYiywNlGfvp VZmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20221208.gappssmtp.com header.s=20221208 header.b=OEysCc3Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gw18-20020a17090b0a5200b002470ea7f67fsi1612575pjb.3.2023.05.03.07.36.41; Wed, 03 May 2023 07:36:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20221208.gappssmtp.com header.s=20221208 header.b=OEysCc3Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230237AbjECObn (ORCPT + 99 others); Wed, 3 May 2023 10:31:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229796AbjECObj (ORCPT ); Wed, 3 May 2023 10:31:39 -0400 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06E1E9B for ; Wed, 3 May 2023 07:31:37 -0700 (PDT) Received: by mail-qk1-x72f.google.com with SMTP id af79cd13be357-74e462a540aso243310985a.1 for ; Wed, 03 May 2023 07:31:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20221208.gappssmtp.com; s=20221208; t=1683124296; x=1685716296; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=n7llKhBaHnkQjLetPGzkZN0ajWGNkpSrzpK5vsJeUYo=; b=OEysCc3Q3AKZhYWUpecGGN+q2wOXE5wiyVvtko0WaJ2fEF5TgOdqBC+UgjJaKatM4j Hk8gD6ZHWvzvWGN6ZFM4ZdXXiLRZOENkqMpoEcR7TPHTjgYqm+JUUNaYF1NjPwNMH+XC t3AiZLBPIR/LbJUbtOA2ucWvWq1mgUvx6eYpoV8xcGmUnFf21ziYRfmryIfoB7XMQNKi Gep/JblJp11omSrcXBKcxDuoCpyJs5GbLr6596ivDXkas4ThRVy4RSYqyknHtPUU6oSb NRc/LfnhjI3vv4EB+X3g5MeSp0Hg72kS2vPM993Umv9YxSm+C9Nq9lQYrxlESiIsgBuu SP7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683124296; x=1685716296; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=n7llKhBaHnkQjLetPGzkZN0ajWGNkpSrzpK5vsJeUYo=; b=RUp25pOdlvthD7lgdkw6TI+wNYeIB+Oxcve8ihbiggf3LL59GJR8PsAYZ5FgKBcZ31 PAxiKRMYSOzsgGGvzyWVTFOXPsbxApd9dldc5w7RW601VwgwI3ZF6I4ZUffZMGIfUEP3 8B56sGEQWWHyRhNkwhpiYB2qHshdhHPym7y5c2ACSCozeuP4ykZ9c25mnvxqFtXyHkHk L9zFsupO9UksD/gWycccgGghqShD+65uIalO9P0Rn0IQWiK2KT0p5CvvlpC4cDD2XAME Tpg87iHXP0bGVuIXd1vW6ImH0HQW1+/vRQ7dwYCZpJO1E0Zb1XBpGVV0dUnME7rTGxRY ZN7A== X-Gm-Message-State: AC+VfDzBeYokQFbCeVdwW1zgl6W6WBq0nBGQ2t8wprkbc8S3fyEGgpr+ BHSoRTDivZdiO5lJ/ggDbzixFw== X-Received: by 2002:ac8:5e50:0:b0:3ea:8224:b5b4 with SMTP id i16-20020ac85e50000000b003ea8224b5b4mr504607qtx.9.1683124295905; Wed, 03 May 2023 07:31:35 -0700 (PDT) Received: from localhost (2603-7000-0c01-2716-8f57-5681-ccd3-4a2e.res6.spectrum.com. [2603:7000:c01:2716:8f57:5681:ccd3:4a2e]) by smtp.gmail.com with ESMTPSA id d6-20020ac80606000000b003bf9f9f1844sm11116879qth.71.2023.05.03.07.31.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 07:31:35 -0700 (PDT) Date: Wed, 3 May 2023 10:31:34 -0400 From: Johannes Weiner To: Nhat Pham Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, bfoster@redhat.com, willy@infradead.org, linux-api@vger.kernel.org, kernel-team@meta.com Subject: Re: [PATCH v13 1/3] workingset: refactor LRU refault to expose refault recency check Message-ID: <20230503143134.GB193380@cmpxchg.org> References: <20230503013608.2431726-1-nphamcs@gmail.com> <20230503013608.2431726-2-nphamcs@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230503013608.2431726-2-nphamcs@gmail.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 02, 2023 at 06:36:06PM -0700, Nhat Pham wrote: > In preparation for computing recently evicted pages in cachestat, > refactor workingset_refault and lru_gen_refault to expose a helper > function that would test if an evicted page is recently evicted. > > Signed-off-by: Nhat Pham Acked-by: Johannes Weiner