Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1489169rdb; Mon, 19 Feb 2024 18:55:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUGdNQuBF+iMikAUa8nejO6nfn/U7fv6XJfiMjZv0KT002hQBNDv95v8EWhutv4B7c7HU3rQU6pDBf6bEwHXQ+AWpMldwX68SXNZZMoIw== X-Google-Smtp-Source: AGHT+IE8TXIE4ZZa5y+j/uJD0ZuPte1GQcJ1G9HNBwfUcBwRKhqSs+WNbmTdfaqdna2ES4vZWFoR X-Received: by 2002:a0d:e2d6:0:b0:607:8c84:d474 with SMTP id l205-20020a0de2d6000000b006078c84d474mr13817142ywe.31.1708397735663; Mon, 19 Feb 2024 18:55:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708397735; cv=pass; d=google.com; s=arc-20160816; b=n4FN797wxtSINRWsUPrWCRU2sVnCWFB2i+p7R2/UDzMGq0uscQS0vg9UcUSPAyVoX2 F6mXXhVxFFdqa5MiXlo8f+OKJbE11dK9w5yzuhmn5IaFcZN1FPQbk6sgrZ0rLRxsTNcY B4G0MxzrKI5qmWde4EDyZKmGy0MyyiWekJ1UmMvsEhkd1feyJB8GzLhxxXY8Rj4Sy1mh dkoImZ6cIbk8EdZ1DmJr6C4k8uYCFdgydt2+b30PgmdkE92tBpJndgVSKzE0cbezm7bp 492GnKfBAZ2nCf0OtgpB8SogAC2fi68i2ozKrFN9CDLYC/jCsTr/YN4DCk3VGdn3pFu3 ZzuQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1E5koHXnFE7yumxwYTorkvd0LXLJ4Nm9WirUlUAc9Pg=; fh=cdV1zCau/LGzVTShXhX/6cgxjAhjiCU/Wy45d1KA6cg=; b=LUdTYeiD4krLg1qrXyvTqPCM02AZ0RUfGWKSs8mgV1TkhxemdLyqEUgpZ3FDJfWbJL gQ6RLQsIT+zT4fiuTeIS7cboMOfYEZHqgRZ9iPejHdIlv+0OmKzhR82+KF+KObonZvIi lr6poZRBYTaqOr0qpipn/A8sL7Ei+2APNV4k8ASm8SL4DCc1QSXg5lO4DgYBIMuapNoI mbrJbb+l7CwG1/YL99Q1UYMhJYLoIKuZfs4G8RWPfCawhTIGPhTpf+ZMCDSDRvqC04H0 v7ztJg7RItZ53mW9+dSjY3W6ItmRDbJpC70Q+VWlkb9mlIuJUGS0vt/fW/CIyvtGy4EF EntQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=eoq6woNU; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-72229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72229-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g4-20020ac87d04000000b0042c384540d3si7925175qtb.595.2024.02.19.18.55.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 18:55:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=eoq6woNU; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-72229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72229-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6B7671C236D2 for ; Tue, 20 Feb 2024 02:55:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5520837149; Tue, 20 Feb 2024 02:55:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="eoq6woNU" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5705510785 for ; Tue, 20 Feb 2024 02:55:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708397729; cv=none; b=Lh1wSv3TZBQ8UkrY6i3H2PScRgw7W+3hseneiwmxTsK3cqu/IfrxHW3FvnL0eydZ3/2HEiku2avWphS5oCLAXQHWHV4WcB+6Ti3KmSVUd5sWgNq58dXkLUI/75E9M6n8APAkxgbvSMU8km7sfEr+pRFXITfPsrz8mDmCxnXy+Uo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708397729; c=relaxed/simple; bh=GWKiOBaI1NXNEeTj4/i0Fubm8+QDhv/MlOX8mgicbwA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ciTnijyaBATTfGcP9vEnC4isWyMkBnAXFmsc9PDuPaEsOzF39oxkVYEWfTxTZ9A+DvhA8G7kBmf54yez9+1pnLLm9BfZipag2IC90AnpKDa9iFgZZctEUB7Yl/Dmt62iG7CirCXjJZPFpyRKayujaJZhPdfMcUoOv/Jh4ibjseM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=eoq6woNU; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=1E5koHXnFE7yumxwYTorkvd0LXLJ4Nm9WirUlUAc9Pg=; b=eoq6woNUCQ8IdWXFKWSuL7LzpY nN3krH6BPAkPmjI+H/isne2ul5IkYpkNumdZNoLJUKa0cXB39rZ3X5nuUF0t4sbt2ggVxE+IjYPji rHEl73hk0rvuwQ0pRIIw29gfp+EuQos8mQMUoL2lAepuSaaBRYLum2KWtFvVyXytfJqMbfTWkpVL+ MWi6ovQTAo1Ou/NTNYijLFg2xcw0RTiqxRRjEqbpPQe4WBkessjZRUzWqH6j/c8lzCv6/3JTheHmp YaRo+zzFE+dRlSMQ63bDMozLUDFq7/mbXbwhnai2WZuzvEhd2e3tT6NhNPoDAdhPkIpNIAN663n2y QO7X3IrQ==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcGHx-0000000ESL2-2C4x; Tue, 20 Feb 2024 02:55:21 +0000 Date: Tue, 20 Feb 2024 02:55:21 +0000 From: Matthew Wilcox To: =?utf-8?B?5p2O5Z+56ZSL?= Cc: akpm@linux-foundation.org, david@redhat.com, osalvador@suse.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org, v-songbaohua@oppo.com, gregkh@google.com, tkjos@google.com Subject: Re: [PATCH 0/2] Support kshrinkd Message-ID: References: <20240219141703.3851-1-lipeifeng@oppo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue, Feb 20, 2024 at 10:04:33AM +0800, 李培锋 wrote: > Monkey-test in phone with 16G-ram for 300 hours shows that almost one-third > > of the contended-pages can be freed successfully next time, putting back > those > > folios to LRU's head would break the rules of inative-LRU. You talk about "the rules of inactive LRU" like we care. The LRU is an approximation at best. What are the *consequences*? Is there a benchmark that executes more operations per second as a result of this patch?