Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4306442pxa; Mon, 10 Aug 2020 06:13:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDpzWqQKnhKYSTLdOLP/oxFMBjZp/oOisRHrDGzlLfzmBiIJBxaBiCvHcW+OOf8CqBCRK9 X-Received: by 2002:a17:906:e115:: with SMTP id gj21mr21013617ejb.505.1597065227226; Mon, 10 Aug 2020 06:13:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597065227; cv=none; d=google.com; s=arc-20160816; b=enSzXIKEjuVEEeZqgXvwHVbmHwG/3hAmlVQNDCnpPYCXcdtCXu0DuQaPGIMHLhV/mt 6ia9QKUoPTp8cqBSQDZ1Mvl8sYVzJLhFYtz2gAZC289A3cadituCxY84saDca2qFegDw mpU9zCwuCxfLNhvfiTNRpkjHUp/nAc7chR9sBVxzvN9uTsl4sR1VL/6dBJbK3oybFi9L UCasIbJmQmP0Nba/pl3Y4CKpUc3m+MkBilY/pjz4LoMjCo6ze4weE0iOWAPQhZVpEHhw 3yPNm1CakormgGBufFFUUQ3A7p11UwV08kpLiMUXBjI4NJNXqs/pLjstGyvbOSyxdOy8 N2Pg== 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=XV5zkdjr+IcvX532uL9ZcYjairiNv4Y8rmXBtsvzgn8=; b=CjfjB8jcDiafH/Rd2ApyoCWUPpqjRQsk1whkVz22pNF+zXuZWsQBpSEUi2j6UQZCWS 0aYPy6JtfomVLm2f7wHKfFTEqzdiaBeoY+5G4dPFQkF1P/Y+xwbRmMbDb/J6TalE56+6 C/gi+8wVJR8to1kNaPpFDBm3lTLKq0t+wXcT1zYslDAmLGSllYYvH0CF9gYyB1imONnU YH5LxBuV3g4yrR77zioSmMSSlwpn31ioIFRz0uzN7PgCY4UJH5Rp6cE0HNyTkOYRm0Oo DGaLmAX1j+DSGSVOAkvqF1qqCxo8v0tYbOKUMyC34ZZQbg+jSAIEUS0owozp9t8rH6Se 2bAg== 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 df2si10076265edb.520.2020.08.10.06.13.23; Mon, 10 Aug 2020 06:13:47 -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 S1726749AbgHJNKz (ORCPT + 99 others); Mon, 10 Aug 2020 09:10:55 -0400 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:42891 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726330AbgHJNKw (ORCPT ); Mon, 10 Aug 2020 09:10:52 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R871e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01358;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0U5Mm29u_1597065044; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U5Mm29u_1597065044) by smtp.aliyun-inc.com(127.0.0.1); Mon, 10 Aug 2020 21:10:46 +0800 Subject: Re: [PATCH v17 14/21] mm/compaction: do page isolation first in compaction 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> From: Alex Shi Message-ID: <8dbd004e-8eba-f1ec-a5eb-5dc551978936@linux.alibaba.com> Date: Mon, 10 Aug 2020 21:10:17 +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/7 下午10:51, Alexander Duyck 写道: > I wonder if this entire section shouldn't be restructured. This is the > only spot I can see where we are resetting the LRU flag instead of > pulling the page from the LRU list with the lock held. Looking over > the code it seems like something like that should be possible. I am > not sure the LRU lock is really protecting us in either the > PageCompound check nor the skip bits. It seems like holding a > reference on the page should prevent it from switching between > compound or not, and the skip bits are per pageblock with the LRU bits > being per node/memcg which I would think implies that we could have > multiple LRU locks that could apply to a single skip bit. Hi Alexander, I don't find problem yet on compound or skip bit usage. Would you clarify the issue do you concerned? Thanks!