Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1190988pxa; Thu, 20 Aug 2020 05:12:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAYsRgaVC95Ax9gQYmSAKCHA/0Cix3L7o2i2Z+8mdi0zJ2zEFQ7NF3jPAWBZLFAlKNH8Ij X-Received: by 2002:a17:906:386:: with SMTP id b6mr2887191eja.538.1597925578154; Thu, 20 Aug 2020 05:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597925578; cv=none; d=google.com; s=arc-20160816; b=brOBjxIozOZCY5Wt266lhY/fnfVZWRfRw5I3uDOQm1EEAi55sArGqtIwpmdU9jRFoO DjvdnxCze6xRu6+5v7DQCZkIOeir75RkCiJNtahA8eRixvLA1n+Mm0PzOe4vrvKTYN5w sGHrjqN999KWVcg6R+8oTaYvsUQawaK2GVOALVO9pECG+jPiKDDh4+sqpjZL8KtxPSaT 32IkSu5ROwWot204oJHYik4F4+wGwssGAO5iZdBi8+Pp59reZLzhuC/Z0spvHZGifC6l 8pKrMnYoDuTly6MmzX5No3mCKoTb8Fbx8KKCJYp43VxYwO/z+N44Jqssl2oSbRq3z0E8 QaAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=JWAHEmdvs4XL0qlfnqaNYRpMKvpr2EHEhxNPdScY8Ao=; b=ManX3g2puDX54AC6GNDLCK7R57lSlnMiAFLFY7aEjSQaWBVoB7XZg0FUhsdkcS6gDv gBH1381J7Ja4ZjZbeU9KS5FKBSwe4FbeRIIhgQcwCZmzloL735Pp7XsnPuwAPGdEd0M2 BId1uPpYKw+kll2ic+GmDGRHfh3+7rhwuM6Sdt9aJ/pO8UwxDl+6TWv3p5MQwJ+MtbV9 XE/crbkOTUkI2wKleO+zJePovk6iX6cPLvfC9oZy+3eRPjbShalZ4Pi4XfOYHWokordM Sbv7SO2sSgc9aKM7t+paokDnFY9uKux3Y15KQV4Tz9gzvRpA3JtaYmrmKxaWxDQwv1ox Zx9A== 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=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r6si1252583edh.529.2020.08.20.05.12.33; Thu, 20 Aug 2020 05:12: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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730507AbgHTMI3 (ORCPT + 99 others); Thu, 20 Aug 2020 08:08:29 -0400 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:36079 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729885AbgHTJ57 (ORCPT ); Thu, 20 Aug 2020 05:57:59 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R721e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04407;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0U6IpR5A_1597917472; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U6IpR5A_1597917472) by smtp.aliyun-inc.com(127.0.0.1); Thu, 20 Aug 2020 17:57:54 +0800 Subject: Re: [RFC PATCH v2 5/5] mm: Split move_pages_to_lru into 3 separate passes To: Alexander Duyck Cc: Yang Shi , kbuild test robot , Rong Chen , Konstantin Khlebnikov , "Kirill A. Shutemov" , Hugh Dickins , LKML , Daniel Jordan , linux-mm , Shakeel Butt , Matthew Wilcox , Johannes Weiner , Tejun Heo , cgroups@vger.kernel.org, Andrew Morton , Wei Yang , Mel Gorman , Joonsoo Kim References: <20200819041852.23414.95939.stgit@localhost.localdomain> <20200819042738.23414.60815.stgit@localhost.localdomain> <084c58a7-7aac-820c-9606-19391c35b9b5@linux.alibaba.com> From: Alex Shi Message-ID: <87ded438-e908-117d-ecfb-1af7224d46da@linux.alibaba.com> Date: Thu, 20 Aug 2020 17:56:36 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020/8/19 下午10:42, Alexander Duyck 写道: >> It's actually changed the meaning from current func. which I had seen a bug if no relock. >> but after move to 5.9 kernel, I can not reprodce the bug any more. I am not sure if 5.9 fixed >> the problem, and we don't need relock here. > So I am not sure what you mean here about "changed the meaning from > the current func". Which function are you referring to and what > changed? > > From what I can tell the pages cannot change memcg because they were > isolated and had the LRU flag stripped. They shouldn't be able to > change destination LRU vector as a result. Assuming that, then they > can all be processed under same LRU lock and we can avoid having to > release it until we are forced to do so to call putback_lru_page or > destroy the compound pages that were freed while we were shrinking the > LRU lists. > I had sent a bug which base on 5.8 kernel. https://lkml.org/lkml/2020/7/28/465 I am not sure it was fixed in new kernel. The original line was introduced by Hugh Dickins I believe it would be great if you can get comments from him. Thanks Alex