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 X-Spam-Level: X-Spam-Status: No, score=-2.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30799C2D0E4 for ; Tue, 17 Nov 2020 18:05:43 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 94D602465E for ; Tue, 17 Nov 2020 18:05:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="mLWBy7MZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 94D602465E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=163.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E349F6B0070; Tue, 17 Nov 2020 13:05:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DB5136B0075; Tue, 17 Nov 2020 13:05:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BD2DA6B0070; Tue, 17 Nov 2020 13:05:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0137.hostedemail.com [216.40.44.137]) by kanga.kvack.org (Postfix) with ESMTP id 7FF346B0070 for ; Tue, 17 Nov 2020 13:05:41 -0500 (EST) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id BA181180AD81F for ; Tue, 17 Nov 2020 18:05:40 +0000 (UTC) X-FDA: 77494688040.09.frog97_390766127333 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin09.hostedemail.com (Postfix) with ESMTP id 99F16180AD815 for ; Tue, 17 Nov 2020 18:05:40 +0000 (UTC) X-HE-Tag: frog97_390766127333 X-Filterd-Recvd-Size: 3486 Received: from m12-12.163.com (m12-12.163.com [220.181.12.12]) by imf05.hostedemail.com (Postfix) with ESMTP for ; Tue, 17 Nov 2020 18:05:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version; bh=MVroN eXjqiHKOjoaIdggDaedJ91hejn+ECzeDN+2NXM=; b=mLWBy7MZS0UpQcsliziUt cdvGfn8Qro3Qk0Xt/D+TrutzZ3L54asv4b697OTM8iVsWlGbPSgbB3YTTa35mhIf MRW2qdEETPmphcSIXLFIGOwOe6EnCQJ6jHpi5D9cmQo1TXT5uB8LyNJZY8QX0BUg 2lF1S93uoqgJV33rFRI0r0= Received: from localhost (unknown [101.86.213.141]) by smtp8 (Coremail) with SMTP id DMCowADXpdrmELRfacYSCQ--.53909S2; Wed, 18 Nov 2020 02:05:26 +0800 (CST) Date: Wed, 18 Nov 2020 02:05:26 +0800 From: Hui Su To: Matthew Wilcox Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/lru: simplify is_file_lru() and is_active_lru() Message-ID: <20201117180526.GA158333@rlk> References: <20201117171242.GA120587@rlk> <20201117174117.GQ29991@casper.infradead.org> <20201117174633.GA158014@rlk> <20201117174727.GR29991@casper.infradead.org> <20201117175658.GA158143@rlk> <20201117175900.GS29991@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201117175900.GS29991@casper.infradead.org> X-CM-TRANSID:DMCowADXpdrmELRfacYSCQ--.53909S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7ZrW3Xr17AFyDGryktw43KFg_yoW8XFy7pr yrta13tF4DXr1FyayvyF1kury0qa17Kr1UZr98Zr1UKF90vr1S9w4fKr1F9a42g3Z7uw10 9FWUXa43ZFZrAwUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j5ManUUUUU= X-Originating-IP: [101.86.213.141] X-CM-SenderInfo: xvkbvvri6rljoofrz/1tbiWQbfX1WBtcWV3gABsx X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Nov 17, 2020 at 05:59:00PM +0000, Matthew Wilcox wrote: > On Wed, Nov 18, 2020 at 01:56:58AM +0800, Hui Su wrote: > > On Tue, Nov 17, 2020 at 05:47:27PM +0000, Matthew Wilcox wrote: > > > On Wed, Nov 18, 2020 at 01:46:33AM +0800, Hui Su wrote: > > > > On Tue, Nov 17, 2020 at 05:41:17PM +0000, Matthew Wilcox wrote: > > > > > On Wed, Nov 18, 2020 at 01:12:42AM +0800, Hui Su wrote: > > > > > > lru_list lru bit 0 can tell whether the list is > > > > > > avtive lru-list or not. > > > > > > lru_list lru bit 1 can tell whether the list is > > > > > > file lru-list or not. > > > > > > > > > > > > And fix some define type in shrink_active_list() > > > > > > and get_scan_count(). > > > > > > > > > > > > v1->v2: > > > > > > correct the commit message, and fix the define type. > > > > > > > > > > No, still incorrect. > > > > > > > > I am a little confused, can you tell in detail? > > > > > > Have you booted a kernel with this change? Have you run any kind of > > > tests on it? > > > > Yes, I boot it with qemu-system-x86_64-4.1.50 on ubuntu20.04: > > qemu-system-x86_64 -kernel /home/rlk/workspace/compile/out/arch/x86_64/boot/bzImage -hda \ > > /home/rlk/myspace/qemu_build/rootfs.img -append "root=/dev/sda console=ttyS0" -nographic > > > > using the kernel compiled with ubuntu20.04's default .config. > > > > It seems nothing abnormal. > > And i did not do other test. > > Maybe you should ... how about LTP? I think that's pretty straightforward > to set up and run. Thanks for your advice, Matthew. I will set up an ltp test envirment, thanks again. And Please ignore this change for now.