Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1133788pxk; Fri, 2 Oct 2020 01:42:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwv119w6yBa/uSfg67VUmzrFyNDlOm2GzRaA6f5wrhtSBot4Gq3T8+0IrS9yMCW/jchpJ3C X-Received: by 2002:a05:6402:3192:: with SMTP id di18mr1201922edb.116.1601628135455; Fri, 02 Oct 2020 01:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601628135; cv=none; d=google.com; s=arc-20160816; b=E2Fjtn8RBuHHDMElmpr4Awb7JkWLchF5/nSi2uPtVoO2zZl5rMC13uDfjY+G7FOkHu 0FBBQp+/phky52vzJ5jdzl+VWUsomufVG5W1KvSeSumudusf0BnImg2yKHsooytSAhZ+ Q1R7B1LSQRm9+NqbvUj4FoWLAFpY1DnAbtFbzUyHZh9X/RV7PX2bpG5tlUMTQ3/hjo3P k6ZMMF6d2H8xqQ7M0ZVlXvH2ud2TwPdyYNZhd6Slg8eI2qtmwcCKsUwxthQh3tr10s/T iKLSZ8jCNpYH4t5ep58nS8x/Z4Vyyuxj9LlAtf1f/tt/owxArIhbqQZxwPYTYG/1mxVc paMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=v97JWU8mJz06JM8xNObJW37XeSaGOeY4IGf6hw6H70k=; b=Qv2SdW4atUXV0AHpPwQsbLL6Hv/aZdHFIjgkH5wiG3ZYDqE23jLRIm6Ekb4t2eycYl JQEw0jWotemxHdE6Gi59wA69twS62/h3f9wCJgBCzAHYRG33gArRSNM1h5iQ6dvwG28g Dowd+k04yMcfgGWX7a0nU1LDc/REJ/riA6DkiZjhtGA1Yh7einTk6JePn8U3vhm2lL1j X5O5YT+vjtt505AZGZc2c7w58nB1UMIKAYTtZivFsm6ooMJtoOPUcPoGrkmrJEXHIFyS jMF/lXVVqVYMNRdW1HGBVAhXrewjePRHkYPhfr9k9Or7p3b9x0cMdLazzy81dyGP6XjD vCkA== 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 h23si627256ejx.721.2020.10.02.01.41.53; Fri, 02 Oct 2020 01:42:15 -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 S2387670AbgJBIkr (ORCPT + 99 others); Fri, 2 Oct 2020 04:40:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:33462 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725961AbgJBIkp (ORCPT ); Fri, 2 Oct 2020 04:40:45 -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 3B40CAE79; Fri, 2 Oct 2020 08:40:44 +0000 (UTC) Date: Fri, 2 Oct 2020 09:40:42 +0100 From: Mel Gorman To: Michal Hocko Cc: Sebastiaan Meijer , akpm@linux-foundation.org, buddy.lumpkin@oracle.com, hannes@cmpxchg.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, riel@surriel.com, willy@infradead.org Subject: Re: [RFC PATCH 1/1] vmscan: Support multiple kswapd threads per node Message-ID: <20201002084042.GB3165@suse.de> References: <20201001123032.GC22560@dhcp22.suse.cz> <20201002070333.GA21871@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20201002070333.GA21871@dhcp22.suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 02, 2020 at 09:03:33AM +0200, Michal Hocko wrote: > > > My recollection of the particular patch is dimm but I do remember it > > > tried to add more kswapd threads which would just paper over the problem > > > you are seein rather than solve it. > > > > Yeah, that's exactly what it does, just adding more kswap threads. > > Which is far from trivial because it has its side effects on the over > system balanc. While I have not read the original patches, multiple kswapd threads will smash into the LRU lock repeatedly. It's already the case that just plain storms of page cache allocations hammer that lock on pagevec releases and gets worse as memory sizes increase. Increasing LRU lock contention when memory is low is going to have diminishing returns. -- Mel Gorman SUSE Labs