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.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_1 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 5C733C432C0 for ; Mon, 18 Nov 2019 02:45:07 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 05D4F206D4 for ; Mon, 18 Nov 2019 02:45:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 05D4F206D4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 5E10B6B0003; Sun, 17 Nov 2019 21:45:06 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 592366B0006; Sun, 17 Nov 2019 21:45:06 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4A8516B0007; Sun, 17 Nov 2019 21:45:06 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0175.hostedemail.com [216.40.44.175]) by kanga.kvack.org (Postfix) with ESMTP id 343EC6B0003 for ; Sun, 17 Nov 2019 21:45:06 -0500 (EST) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with SMTP id B73FB180AD804 for ; Mon, 18 Nov 2019 02:45:05 +0000 (UTC) X-FDA: 76167856170.11.leg05_f3ed8618634a X-HE-Tag: leg05_f3ed8618634a X-Filterd-Recvd-Size: 2847 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by imf32.hostedemail.com (Postfix) with ESMTP for ; Mon, 18 Nov 2019 02:45:04 +0000 (UTC) X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R381e4;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=18;SR=0;TI=SMTPD_---0TiMbn5R_1574045097; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0TiMbn5R_1574045097) by smtp.aliyun-inc.com(127.0.0.1); Mon, 18 Nov 2019 10:44:58 +0800 Subject: Re: [PATCH v3 1/7] mm/lru: add per lruvec lock for memcg 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 References: <1573874106-23802-1-git-send-email-alex.shi@linux.alibaba.com> <1573874106-23802-2-git-send-email-alex.shi@linux.alibaba.com> From: Alex Shi Message-ID: Date: Mon, 18 Nov 2019 10:44:57 +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: quoted-printable 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: =E5=9C=A8 2019/11/16 =E4=B8=8B=E5=8D=882:28, Shakeel Butt =E5=86=99=E9=81= =93: > On Fri, Nov 15, 2019 at 7:15 PM Alex Shi w= rote: >> >> Currently memcg still use per node pgdat->lru_lock to guard its lruvec= . >> That causes some lru_lock contention in a high container density syste= m. >> >> If we can use per lruvec lock, that could relief much of the lru_lock >> contention. >> >> The later patches will replace the pgdat->lru_lock with lruvec->lru_lo= ck >> and show the performance benefit by benchmarks. >=20 > Merge this patch with actual usage. No need to have a separate patch. Thanks for comment, Shakeel! Yes, but considering the 3rd, huge and un-splitable patch of actully repl= acing, I'd rather to pull sth out from=20 it. Ty to make patches a bit more readable, Do you think so? Thanks Alex