Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1866051pxy; Fri, 23 Apr 2021 20:39:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwM65LOChEcEaqS4GpY/chMHjKPLbnfTXF81KpFDZe6dy/Qebyf9Gfh5stL3afOYIdRdNJa X-Received: by 2002:a50:eb0d:: with SMTP id y13mr7993649edp.326.1619235598158; Fri, 23 Apr 2021 20:39:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619235598; cv=none; d=google.com; s=arc-20160816; b=RfAdt5yHpDX+i/08qJqVmeq9tNhh5YGaFlLh7R2SBtzh4URIlybdR+EIfIJ7a8Bu+k yr136iHBWqiM+mu+jkG5BpeqkUMLPAIxhyDFPA88AEJRwZW0PWdTvotuoE2TT9MdkLNS D3QIgnYdkvqjjDLgpUZa04k6tLnqRpC76WHWBs1Yna5zXj7eqQvJDxG7joXy3o+2ZWvM uWdsuen1EDZWVqkGaeV+A3GXj6Rk3wI53Q+MJrie5AkB56hUhklP1ly7BGKMEfDGnI3g mwFzSQS3z7GSN+P3p+MHN9cGnkujmW77e+fMI1bII88q0d47+WtGBLjFQIJVkQbzvYZB PrJg== 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=bkzrrsD1Mww/dJL72tcdTrhqZ6zSs0NivDLbmfFtZZs=; b=gaMffABOlgw216Tnr3U/uH71D7PiipAq5tLmjvYavhRrAtlTMjR5rliMK9vy6zM55E KNMT0s1Bb7Lb/scWBL8ZJw/hBEENBQHg+z2BofzsvSbBP2fr3RZCVe15uqrj0g83PWcc fOX99oKhfmhMujYpxNxOI0dADeBtARkLiySpl+gUjxKgBYsDdeg7R/yondxeyf1Z2KqQ vYPNKuK1StYDCLczrjvSqnEUcEaVUI0CskWzfeDqnTx4+vXxJwRnciUt1/SJPJvV5EN6 I2+fWFStObm9Oxhab5Ym6I+ulrGjQClXRh0oVTxpM9X9Hz7gR/ysMeqGbqMC3+w51Qwh fgAQ== 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 s7si7028419edq.258.2021.04.23.20.39.03; Fri, 23 Apr 2021 20:39:58 -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 S236719AbhDXDbT (ORCPT + 99 others); Fri, 23 Apr 2021 23:31:19 -0400 Received: from mga06.intel.com ([134.134.136.31]:48382 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232155AbhDXDbR (ORCPT ); Fri, 23 Apr 2021 23:31:17 -0400 IronPort-SDR: C3O9MesraxACpLR34qZmPN1I/AxS8edirfalVLsPM9eyFG44E3zR42J7g4dNK3RFbigttUh97C xwp7koxh0a0Q== X-IronPort-AV: E=McAfee;i="6200,9189,9963"; a="257463733" X-IronPort-AV: E=Sophos;i="5.82,247,1613462400"; d="scan'208";a="257463733" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2021 20:30:40 -0700 IronPort-SDR: GDpt/XE7DF3GrhacVF7Vpy23laFs/roeoUFy5BkMWagdXnUZPnMTIHXrOT2kg1nyQPmPbyfdlb ehwP5e+VqEkQ== X-IronPort-AV: E=Sophos;i="5.82,247,1613462400"; d="scan'208";a="535711869" Received: from tassilo.jf.intel.com ([10.54.74.11]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2021 20:30:40 -0700 Date: Fri, 23 Apr 2021 20:30:38 -0700 From: Andi Kleen To: Yu Zhao Cc: Michel Lespinasse , Rik van Riel , Ying Huang , 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 , Roman Gushchin , Rong Chen , SeongJae Park , Tim Chen , Vlastimil Babka , Yang Shi , Zi Yan , linux-kernel , lkp@lists.01.org, Kernel Page Reclaim v2 Subject: Re: [PATCH v2 00/16] Multigenerational LRU Framework Message-ID: <20210424033038.GP1401198@tassilo.jf.intel.com> References: <3ddd4f8a-8e51-662b-df11-a63a0e75b2bc@kernel.dk> <20210413231436.GF63242@dread.disaster.area> <20210414155130.GU3762101@tassilo.jf.intel.com> <20210415030002.GX3762101@tassilo.jf.intel.com> <20210415095708.GA6874@lespinasse.org> 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 > Now the question is how we build the bloom filter. A simple answer is > to let the rmap do the legwork, i.e., when it encounters dense > regions, add them to the filter. Of course this means we'll have to > use the rmap more than we do now, which is not ideal for some > workloads but necessary to avoid worst case scenarios. How would you maintain the bloom filter over time? Assume a process that always creates new mappings and unmaps old mappings. How do the stale old mappings get removed and avoid polluting it over time? Or are you thinking of one of the fancier bloom filter variants that support deletion? As I understand they're significantly less space efficient and more complicated. -Andi