From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06651C43334 for ; Wed, 20 Jul 2022 06:04:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238851AbiGTGEz (ORCPT ); Wed, 20 Jul 2022 02:04:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238412AbiGTGEy (ORCPT ); Wed, 20 Jul 2022 02:04:54 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92ABC65D7A; Tue, 19 Jul 2022 23:04:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=opw3pkg9MKPmz9HBHhoEOSCX/4fVSd9GJbKVFnBB1bQ=; b=009wHgCqWpQKNwVR2UBJag0ovx 4wvkFS9R+0dytc8DHeTt2ztFC+qO4DpdY3U9uOVt0nZknhJCInJxtvKLwWEHPGaZrGNbO22CqUpGK Xx71Je8WNSViMlYX0rPxlSePYOhvYlaIsz43DEs59fyOHs1CEpW1/93j3julJislhwRmvNjUa0eEg Oj0XnpLjCg/sDSJ7qSGEfIkgDOPMWUcAZ/q7pzSlZrPXiecgjQoGOKcgj9/BqYnmaJHwiO6fk1WI/ MKQC5SpI7WzmODclNMFFw4zIuLgKy0A2j3cSILNNy+dSkcwni8pT4o1lwvNa0yL8j7nswsgE1tvXv PPrREAGg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oE2p2-000u6T-VI; Wed, 20 Jul 2022 06:04:36 +0000 Date: Tue, 19 Jul 2022 23:04:36 -0700 From: Christoph Hellwig To: CGEL Cc: Matthew Wilcox , viro@zeniv.linux.org.uk, hughd@google.com, akpm@linux-foundation.org, hch@infradead.org, hsiangkao@linux.alibaba.com, yang.yang29@zte.com.cn, axboe@kernel.dk, yangerkun@huawei.com, johannes.thumshirn@wdc.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Ran Xiaokai Subject: Re: [PATCH] fs: drop_caches: skip dropping pagecache which is always dirty Message-ID: References: <20220720022118.1495752-1-yang.yang29@zte.com.cn> <62d79a79.1c69fb81.e4cba.37f5@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <62d79a79.1c69fb81.e4cba.37f5@mx.google.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 20, 2022 at 06:02:32AM +0000, CGEL wrote: > For example, some systems will create a lot of pagecache when boot up > while reading bzImage, ramdisk, docker images etc. Most of this pagecache > is useless after boot up. It may has a longterm negative effects for the > workload when trigger page reclaim. It is especially harmful when trigger > direct_reclaim or we need allocate pages in atomic context. So users may > chose to drop_caches after boot up. It is purely a debug interface. If you want to drop specific page cache that needs to be done through madvise.