Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2321809ybc; Sun, 17 Nov 2019 18:56:32 -0800 (PST) X-Google-Smtp-Source: APXvYqxeRixmozYMXFrtaqLq/cLrtN/3WRPB75gh+VQsippxVxDxGuNLc8gtkxyvp6ZFIjqErBg1 X-Received: by 2002:a17:906:944d:: with SMTP id z13mr23302337ejx.58.1574045791989; Sun, 17 Nov 2019 18:56:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574045791; cv=none; d=google.com; s=arc-20160816; b=ynrusXS4CyThvVeZn1p+2UaQVuuvzyKsCAPkrR5DlxhIyBDvFgHZH1FZj/pmchMI7q uK9ykqQJMKIk8mUsn5kl1CAx32/e5YuMVMm0/u3/iqfHM0CPTfMRm/qRGy+CDIwhe+gP HS04kFI2+CmrkBywwbFObhlDoYkDajfDfy7QXUacdtGdYY+4IFTi65odMDcLYg5kAgVT SxAie39/SOUggyFV2dtlNlzNZspLT1RyvUe4o0W+7Kd5D3/LZ3TMpA+OoQm/hhVk/NWk pSx6l+hJvBZPllJo0uni0ZGaoyWOa4g3uG7dwnnExO7y6zg/iFt1vTzdyUaV5OmOrA9Y agUw== 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=RSO5YlghbicTFKQJC8IkEJDc/AfswslWjJrthFr6D/E=; b=t1BE0I3CDVDoSurZoHulx4nmJGRCzPoMrweF9OIQbDSi7oQN23p81ZdN70fN+Hw651 0Re+TRSpSI/7LkC6/8hNDNMAQLvaa7C2E4JQaYAImB+q64Rq6LXEdrhQFEpDdLCZx/Qi FbTXltGwlQEj/SEIbOEqJLsvl64VZjwufDu1DxPwK/Ocwgp43x0DJ6JseNxNdMHEAT0T xyKMiezYmMIX6Opn+myJXEMTWoBbIQP2YDNGVO3OETxlycU061IsTrV1tQ4drYRokzHR 4JFelpbh4Vktj429xAtdEoT3gYN42fkYbcgS/h/OCLGlfTr46RrYKo25XE7bv9O2fdcT 6A+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id i12si11007327edr.198.2019.11.17.18.56.07; Sun, 17 Nov 2019 18:56:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726317AbfKRCwr (ORCPT + 99 others); Sun, 17 Nov 2019 21:52:47 -0500 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:45757 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726168AbfKRCwq (ORCPT ); Sun, 17 Nov 2019 21:52:46 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0TiMfBZg_1574045560; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0TiMfBZg_1574045560) by smtp.aliyun-inc.com(127.0.0.1); Mon, 18 Nov 2019 10:52:41 +0800 Subject: Re: [PATCH v3 2/7] mm/lruvec: add irqsave flags into lruvec struct To: Shakeel Butt Cc: Cgroups , LKML , Linux MM , Andrew Morton , Mel Gorman , Tejun Heo , Hugh Dickins , Konstantin Khlebnikov , Daniel Jordan , Yang Shi , Matthew Wilcox , Vlastimil Babka , Dan Williams , Michal Hocko , Wei Yang , Johannes Weiner , Arun KS , Rong Chen References: <1573874106-23802-1-git-send-email-alex.shi@linux.alibaba.com> <1573874106-23802-3-git-send-email-alex.shi@linux.alibaba.com> From: Alex Shi Message-ID: Date: Mon, 18 Nov 2019 10:52:40 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 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 在 2019/11/16 下午2:31, Shakeel Butt 写道: > On Fri, Nov 15, 2019 at 7:15 PM Alex Shi wrote: >> We need a irqflags vaiable to save state when do irqsave action, declare >> it here would make code more clear/clean. >> >> Rong Chen reported the 'irqflags' variable need >> move to the tail of lruvec struct otherwise it causes 18% regressions of >> vm-scalability testing on his machine. So add the flags and lru_lock to >> both near struct tail, even I have no clue of this perf losing. > Regressions compared to what? Also no need to have a separate patch. > Thanks for question, Shakeel, I will change the commit log and mention the original place: the head of lruvec struct. As to the folding, the 3rd is already toooo long. May I leave it here to relief a littel bit burden on reading? Thanks Alex