Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp406006pxa; Wed, 12 Aug 2020 05:17:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqvvTo6p9bSH0KWpQslcasvx5WmQt7MnMlxAVpAAYpAjbUOOhK8HgY2VvO7+jDa+5gvKTH X-Received: by 2002:a50:d2c7:: with SMTP id q7mr29350501edg.61.1597234677729; Wed, 12 Aug 2020 05:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597234677; cv=none; d=google.com; s=arc-20160816; b=RifcvTetToewlaggl+DFXXOJ/MRpUsax8rGovwrKFdFD5r04XznghENYnOOd38n4Pi 13aTHPwfajQbiIy1qvZPM14nVDR3yfqEWwB9crjn3Lij3nugMFxzGRcI8rEXESYHEXRq vSeph7dhHVUq2POLHryX8ZUaTaFGLlW0r4bSRVKhyUCG5EXEMFcQnCkQcjplxNkvHzNk DJJw5tgUB3xD/njVzZfOXE5+zQ40hYzCcj2AEe4k/FqJO+M+UwnmPNR+GSi6qcBWhs6p J7ZNGDKV96xAwlLLeW6Bk6XWUXroh3dk8R29RNK6LMj8Z89UQs+VIqPYnel3EjsaOJxs sF1Q== 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:references:cc:to:from :subject; bh=l/Ah+/wsl+yUWE4zyQpSqHrPqvNb+mF85ubyK2VgT7s=; b=uxL5KFraiBiB8lMvQuM3VLKAeRpY6MsPPiwwUPb3jFe1VIC8TvswehItgS5otvLDvn v4+LBh+XIT25BEmcaV/BwieUqjU3mtsubinvcjY3ieVw3W3RD3vqvpSqDsWCnI3T82kt IjUhCfpnfIg0km9O2WP/FCvPYmiQp9UADoVmtHZA8mYot/HdJmlhlvIaOehWozW3YJJz CSg3JIxdE0JFcFQQOprRPBUZq/J9I7etvB7/JjONssW0qxdhCH6rc1DrcAmDPCS60Ale 5CYCNfckOWCDqqzc55jtOAgolrVkPFmNZfO/5VasK9okC4bKv1r4UYLWW9YSQC+OPDhR MPiQ== 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 bs4si1120863edb.568.2020.08.12.05.17.32; Wed, 12 Aug 2020 05:17:57 -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 S1727771AbgHLMQq (ORCPT + 99 others); Wed, 12 Aug 2020 08:16:46 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:39239 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726829AbgHLMQp (ORCPT ); Wed, 12 Aug 2020 08:16:45 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R751e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07484;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0U5ZBL.H_1597234598; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U5ZBL.H_1597234598) by smtp.aliyun-inc.com(127.0.0.1); Wed, 12 Aug 2020 20:16:39 +0800 Subject: Re: [PATCH v17 14/21] mm/compaction: do page isolation first in compaction From: Alex Shi To: Alexander Duyck Cc: Andrew Morton , Mel Gorman , Tejun Heo , Hugh Dickins , Konstantin Khlebnikov , Daniel Jordan , Yang Shi , Matthew Wilcox , Johannes Weiner , kbuild test robot , linux-mm , LKML , cgroups@vger.kernel.org, Shakeel Butt , Joonsoo Kim , Wei Yang , "Kirill A. Shutemov" , Rong Chen References: <1595681998-19193-1-git-send-email-alex.shi@linux.alibaba.com> <1595681998-19193-15-git-send-email-alex.shi@linux.alibaba.com> <241ca157-104f-4f0d-7d5b-de394443788d@linux.alibaba.com> <8dbd004e-8eba-f1ec-a5eb-5dc551978936@linux.alibaba.com> <9581db48-cef3-788a-7f5a-8548fee56c13@linux.alibaba.com> Message-ID: <51249892-632b-4aaf-1f66-3bc0d5c5cbab@linux.alibaba.com> Date: Wed, 12 Aug 2020 20:16:06 +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: <9581db48-cef3-788a-7f5a-8548fee56c13@linux.alibaba.com> 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/12 下午7:43, Alex Shi 写道: >>> Sorry, I still can not follow you here. Compound code part is unchanged >>> and follow the original logical. So would you like to pose a new code to >>> see if its works? >> No there are significant changes as you reordered all of the >> operations. Prior to your change the LRU bit was checked, but not >> cleared before testing for PageCompound. Now you are clearing it >> before you are testing if it is a compound page. So if compaction is >> running we will be seeing the pages in the LRU stay put, but the >> compound bit flickering off and on if the compound page is encountered >> with the wrong or NULL lruvec. What I was suggesting is that the > The lruvec could be wrong or NULL here, that is the base stone of whole > patchset. > Sorry for typo. s/could/could not/