Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp259188pxk; Wed, 9 Sep 2020 04:47:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvzJ2U407kHhPOgazkxHOQoC6TcER6yXNYO8I5TpGPFY6/7pZP1EisrbGbWncnD8P99hZH X-Received: by 2002:aa7:cc8d:: with SMTP id p13mr3838086edt.136.1599652027180; Wed, 09 Sep 2020 04:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599652027; cv=none; d=google.com; s=arc-20160816; b=o3vuTTeUorA2QkJhTF3FmgBJj9Mq5EHKQyuLRm2/A+Yw2eJMgu6q+HZtgCebnte4Ga pXhYRvS6aJZX1sk8lywXsTp29AZenY68EKG+h+qAgXj/meWiy8oZeKBfXh1QeABC3mU6 fsnF6d5p+lBkj5dMt77px0EKJ/3X7nzL/LwqkSJaLCzk1Ukb9r70lQuyMsAcWFi4s5lU XHM6wEXrw91FgVqC9c0cFzrEVYPJi7vDR4P8m1HYE3e9Zh0R6EkZ51GHL6DvTgvlmhie sYuNk5y5w21CyKyh378IM5N/Bwn7+nmVpQlCUuUaqfFAd9T1qS/uF5e1vqvJDuuMSdev Fkfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=WAlCDr7wXNqNb/VsANHaQmtsQhJSmaiGMi8Q+4n/ZoY=; b=ElMlCXYjbKKGQPsQbIfOpSt4n+BXfL5d9zWadMbgOoaWnyRHGHWDUPMf6RJ1Ey/KT/ oF3xPi6OLFqBLz3CWPHK7cgyXevIqlVDde40MdTE8ovi/0iDYxTBIh7VWGMxtiPJKZIn ++J3ge+PAq8ilyESzEKc1OhWtq0PKR9eoF5yrd3LZRNi9GxJDgAz0WD31MfDV90XepKP /kjgK0wE/YgyIhaoQ8hcGjJilDLOWlfl+acAOryXZIaxaHik1fEq7wmVCAs30+DiMHRi 8wNXHdY4ECHe8IBhhtTf5QtBfFCvqBlVtZZLICp+vby6gA6nbaLM0ursZbtOiU3DJYg7 gvsA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m16si1253512edr.280.2020.09.09.04.46.44; Wed, 09 Sep 2020 04:47:07 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730104AbgIILpC (ORCPT + 99 others); Wed, 9 Sep 2020 07:45:02 -0400 Received: from mx2.suse.de ([195.135.220.15]:36500 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbgIILmO (ORCPT ); Wed, 9 Sep 2020 07:42:14 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 0C6D4B732; Wed, 9 Sep 2020 11:40:59 +0000 (UTC) Date: Wed, 9 Sep 2020 13:40:57 +0200 From: Michal Hocko To: Aaron Lu Cc: Daniel Jordan , Alex Shi , Hugh Dickins , Andrew Morton , mgorman@techsingularity.net, tj@kernel.org, khlebnikov@yandex-team.ru, willy@infradead.org, hannes@cmpxchg.org, lkp@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, shakeelb@google.com, iamjoonsoo.kim@lge.com, richard.weiyang@gmail.com, kirill@shutemov.name, alexander.duyck@gmail.com, rong.a.chen@intel.com, vdavydov.dev@gmail.com, shy828301@gmail.com Subject: Re: [PATCH v18 00/32] per memcg lru_lock Message-ID: <20200909114057.GH7348@dhcp22.suse.cz> References: <1598273705-69124-1-git-send-email-alex.shi@linux.alibaba.com> <20200824114204.cc796ca182db95809dd70a47@linux-foundation.org> <20200825015627.3c3pnwauqznnp3gc@ca-dmjordan1.us.oracle.com> <20200826011946.spknwjt44d2szrdo@ca-dmjordan1.us.oracle.com> <01ed6e45-3853-dcba-61cb-b429a49a7572@linux.alibaba.com> <20200828014022.y5xju6weysqpzxd2@ca-dmjordan1.us.oracle.com> <20200909024432.GA9736@desktop-ziqianlu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200909024432.GA9736@desktop-ziqianlu> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 09-09-20 10:44:32, Aaron Lu wrote: > On Thu, Aug 27, 2020 at 09:40:22PM -0400, Daniel Jordan wrote: > > I went back to your v1 post to see what motivated you originally, and you had > > some results from aim9 but nothing about where this reared its head in the > > first place. How did you discover the bottleneck? I'm just curious about how > > lru_lock hurts in practice. > > I think making lru_lock per-memcg helps in colocated environment: some > workloads are of high priority while some workloads are of low priority. > > For these low priority workloads, we may even want to use some swap for > it to save memory and this can cause frequent alloc/reclaim, depending > on its workingset etc. and these alloc/reclaim need to hold the global > lru lock and zone lock. And then when the high priority workloads do > page fault, their performance can be adversely affected and that is not > acceptible since these high priority workloads normally have strict SLA > requirement. While this all sounds reasonably. We are lacking _any_ numbers to actually make that a solid argumentation rather than hand waving. Having something solid is absolutely necessary for a big change like this. -- Michal Hocko SUSE Labs