Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp422038pxb; Wed, 14 Apr 2021 20:01:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvZN2mqHXJTm5W5fRmyDGxadt+ljUdZ4RoW+1KtgA8NPJrEcLo3TprOskbbCVNxH/vWhAW X-Received: by 2002:a63:5066:: with SMTP id q38mr1456975pgl.119.1618455660073; Wed, 14 Apr 2021 20:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618455660; cv=none; d=google.com; s=arc-20160816; b=cN4lyJSdX8cNCXi5IcCk+rpaCaZviVeNx1dbe6V3i+gcQQ9CcOAsrT5RI0ZpwJs9AU 6/M5jkHjj4ORi8AlOmy8j36aT3uykySNxW2Qz6q1Ww9mYKzHwx+sOtN9EdRUX1U3u4p4 5miUKXSOs1hXxPPLTKhnRETjnRxYkt1yBQgZLaOTvXA7jf8D/5GVyx5z3JigF310nSPf nEWBQk5cSvFmAnOHqzwb7tO6czEyYXXojgrWFRwD46dk+ynWQxLo7sJ7XH59CLqqmIj2 D8PZXBib9A7z60yejt+m5naPWlqiTtpvGTPzx/MQ1D4FyQ5IzqJeCwX4A2d7J/MbILZL f9bQ== 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:ironport-sdr :ironport-sdr; bh=fYAoyQUPCZzVbE+3cH1BED8hvOeb4SeWkfykFvyx7i4=; b=XZmnJ5tYKbbT5L+oRcaq6kS9s8Q6vLRxBuea1VMmt2bm3X3s+hNZINKPze3tIZlrRH wAoVcpUKFP/ZdAb6hYaJCwSCRV0KelVU/6TDyzUtQ6ylIfyxiqIYjwTrNTO7GkU12wAp P54kQQTjQ31Mpv6ZEz/uB7OTYs5OCZ0i3bPyVmk5bFIYcptXrxkjTvvqMRQAhkANTBz2 8Pd5ahC4tQ4dspRYM6J3se4EjFxzDfLSAcvh4Dm/E1GKkuNw9c/qDUcVyYpCP2dma+hn jTM+0P3SD6z88isZ5o5PazU0jAt3fbM9AF1vjz+8HqdSnIeEMqdY/OJPFTZLxs2K4QBp yRxA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t26si1503266pgu.197.2021.04.14.20.00.46; Wed, 14 Apr 2021 20:01:00 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229619AbhDODA3 (ORCPT + 99 others); Wed, 14 Apr 2021 23:00:29 -0400 Received: from mga18.intel.com ([134.134.136.126]:36565 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbhDODA1 (ORCPT ); Wed, 14 Apr 2021 23:00:27 -0400 IronPort-SDR: G6D7TCAJ7+KEimuzVzpm85GIduS1ljusxJSCkNrJYEkBmx6EsUlt3bAzpy5p186tRLcKD2yxFg W0yCtWQTNjRQ== X-IronPort-AV: E=McAfee;i="6200,9189,9954"; a="182280350" X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="182280350" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2021 20:00:04 -0700 IronPort-SDR: VDz1WHuoJmQSOw4QAGB6X8hLCkkLQJGQd3VurnT3a/J+RdYXIF1KkofUN6tXc73hcsJsHaaDG5 mJfy3t8ztxew== X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="444035292" Received: from tassilo.jf.intel.com ([10.54.74.11]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2021 20:00:04 -0700 Date: Wed, 14 Apr 2021 20:00:02 -0700 From: Andi Kleen To: Yu Zhao Cc: Rik van Riel , Dave Chinner , Jens Axboe , SeongJae Park , Linux-MM , Andrew Morton , Benjamin Manes , Dave Hansen , Hillf Danton , Johannes Weiner , Jonathan Corbet , Joonsoo Kim , Matthew Wilcox , Mel Gorman , Miaohe Lin , Michael Larabel , Michal Hocko , Michel Lespinasse , Roman Gushchin , Rong Chen , SeongJae Park , Tim Chen , Vlastimil Babka , Yang Shi , Ying Huang , Zi Yan , linux-kernel , lkp@lists.01.org, Kernel Page Reclaim v2 Subject: Re: [PATCH v2 00/16] Multigenerational LRU Framework Message-ID: <20210415030002.GX3762101@tassilo.jf.intel.com> References: <20210413075155.32652-1-sjpark@amazon.de> <3ddd4f8a-8e51-662b-df11-a63a0e75b2bc@kernel.dk> <20210413231436.GF63242@dread.disaster.area> <20210414155130.GU3762101@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > We fall back to the rmap when it's obviously not smart to do so. There > is still a lot of room for improvement in this function though, i.e., > it should be per VMA and NUMA aware. Okay so it's more a question to tune the cross over heuristic. That sounds much easier than replacing everything. Of course long term it might be a problem to maintain too many different ways to do things, but I suppose short term it's a reasonable strategy. -Andi