Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2315932ybc; Sun, 17 Nov 2019 18:46:42 -0800 (PST) X-Google-Smtp-Source: APXvYqw26lzwQD5Y+94Bpp5o1reuNTGxndEiH8wDmVPCdyrr4scN5mluKfPvApMMCOoXposWC014 X-Received: by 2002:a17:906:938c:: with SMTP id l12mr22880999ejx.135.1574045202704; Sun, 17 Nov 2019 18:46:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574045202; cv=none; d=google.com; s=arc-20160816; b=Rqz11J2ucCf768q56kFtFXh5P0F++SpKhfuswJI4eDDyc0xGnVmAP1MwO0Vge4/WG7 D3TC1eWWgheiw1soyTKCAD9QmQkI0XPpKswlbuK3/hdTc6WcJ+gjFYxVSkdoHkyDfwBS ygcLINU7dgWXwQ63RGNeHro0zd82xjVl0O1A7yMX57qjtr1OxHuZF2jMMWEP07sXGau5 YIwiskAYlTJc/diHzIWwlntVpQD/qjZGDQMxzcmr2kcymrUrzwqCtUzuS+i5BPDiUiha AXlpWUzIXPqjA8kR5JbwSy/Pm7M88Mw9nesIXxHXtKvna5NRVHQoE+GkamDDpPgUw//n mlWg== 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=wa31fFCf1CtD2i8rWJq+bMqbr6L8ttLjDVi9GbUJohE=; b=pFf2MN6br+GttDXhY97+0jdNMwevJSftVxN5IvnxPGEZjZyCVu47WKQptN4qpanuCw x56Z5aVSxARBjEzzPuqX0PLtC2k0U17KhaMgKxDxgVV8z1H0fPck19zTyqdlQBOpZySt VqovCHI8ZRhJIewvWi1mvOROaL/GFBSbMXhr5BAnsjku2jBVdIuLv4Ji1qLMX/7+it2l Y0PICGODbM+ycLOhofBHjoHHkK0bjR56Ojvt6BEWc7Vl/IOd/l7jJd2ZNM1t52FAYiHu JAjoafzZ7/W8F959DHm9LpFMJmIZzOCqsBqGe21ODIka+KchRWHSXw9lk2AFd3Ubmts5 HYJw== 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 m27si10748731ejd.377.2019.11.17.18.46.18; Sun, 17 Nov 2019 18:46:42 -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 S1726353AbfKRCpN (ORCPT + 99 others); Sun, 17 Nov 2019 21:45:13 -0500 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:7130 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbfKRCpM (ORCPT ); Sun, 17 Nov 2019 21:45:12 -0500 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: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2019/11/16 下午2:28, Shakeel Butt 写道: > On Fri, Nov 15, 2019 at 7:15 PM Alex Shi wrote: >> >> Currently memcg still use per node pgdat->lru_lock to guard its lruvec. >> That causes some lru_lock contention in a high container density system. >> >> 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_lock >> and show the performance benefit by benchmarks. > > 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 replacing, I'd rather to pull sth out from it. Ty to make patches a bit more readable, Do you think so? Thanks Alex