Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp406997pxk; Thu, 1 Oct 2020 05:33:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8gW2toTDuYfzibaiRSqF8lzGqjuNuII+sl5UbAAB5fKzooilWBBBHgNutnKizGESm6Ur2 X-Received: by 2002:a17:906:7fcb:: with SMTP id r11mr7572595ejs.519.1601555580846; Thu, 01 Oct 2020 05:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601555580; cv=none; d=google.com; s=arc-20160816; b=m9gA4REJe2YYXSb23zuqkH5StaADRG5QyTGl39n8lfZAGWEYog/vVI/qDLCxS+FXPs Rg524EdMzbNmODBvR9j4HhL9tu0rW3bGNM4Zei41zV3sZWqj/MqxcdzecTaoTwcADY9L k0eyxmxGHaUpWRfF5lOUbBM7mWfrfyWP3nosZe71N5AfENnS1/CLmPxkYP1diGw5HTjP 9U/gHN+KUB5sMJT8awTVhic7oLZAUbHcBnHqaPaMLv+2d2+4JKSfdROAF+SZ0wdlv4Gu /G+PnNote6X6r75H/axgDoyqWdreC/qigcArWp7/+By+rdVa8AoVTVI4LUFVhLuJlbkJ mTKw== 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 :dkim-signature; bh=uCm4uXOnrpWMmMZOVA7wh6ICDudob2h+p29v5JSL4lU=; b=qO4LmoTG+G3KI2qTJnE/Gmo899TQFES9n/F9NKv2p7pZHdYH+Yh06S+X95vVqPhjwY f6VNpdACGDTYQAMrycfJvLqP2x+hmd1veRiNCeCFRxOtbIcHbn8y8ZiWFlQb4g07z5MY m/VFsdhF/XT2c+Ek2Dqr1b+fvzQzsUvJeik9577djflqbh7ycF0FK7lKLNo8/Zri7I/b m/4V1wpbrDPsmTzvt85aYGrNgc0ml8JAXRVecvmDzef3XfhjKLD96feod/tRxC8roaAw 2mhkYUDoeRj4yAGm0D3Gt4khnx5njyIxNr3dIM5G/MWP9OEAtlFXgQ1OoU2ZH0Bhfg3f MJEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=GnrnpGVO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t7si3396593ejx.194.2020.10.01.05.32.37; Thu, 01 Oct 2020 05:33:00 -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; dkim=pass header.i=@suse.com header.s=susede1 header.b=GnrnpGVO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732145AbgJAMag (ORCPT + 99 others); Thu, 1 Oct 2020 08:30:36 -0400 Received: from mx2.suse.de ([195.135.220.15]:34150 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731987AbgJAMaf (ORCPT ); Thu, 1 Oct 2020 08:30:35 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1601555434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uCm4uXOnrpWMmMZOVA7wh6ICDudob2h+p29v5JSL4lU=; b=GnrnpGVOycrS6i3U5eUDgMPqc4ZSmxHImP6IM3Q9oRdFfgGHwzWCI5H+2lZar3wd+EJgGv QEiFqFCDYgSp1OTN9AbCtO5mEALDiuKWhR/Pqkq7y6hzSbhehovg/ZXqPG6QVOD7X2crvB fZtYaxIuElKuddlIJBEQ3JPWMaSRAqU= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9D2BAAFD7; Thu, 1 Oct 2020 12:30:34 +0000 (UTC) Date: Thu, 1 Oct 2020 14:30:32 +0200 From: Michal Hocko To: Sebastiaan Meijer Cc: akpm@linux-foundation.org, buddy.lumpkin@oracle.com, hannes@cmpxchg.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mgorman@suse.de, riel@surriel.com, willy@infradead.org Subject: Re: [RFC PATCH 1/1] vmscan: Support multiple kswapd threads per node Message-ID: <20201001123032.GC22560@dhcp22.suse.cz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 30-09-20 21:27:12, Sebastiaan Meijer wrote: > > yes it shows the bottleneck but it is quite artificial. Read data is > > usually processed and/or written back and that changes the picture a > > lot. > Apologies for reviving an ancient thread (and apologies in advance for my lack > of knowledge on how mailing lists work), but I'd like to offer up another > reason why merging this might be a good idea. > > From what I understand, zswap runs its compression on the same kswapd thread, > limiting it to a single thread for compression. Given enough processing power, > zswap can get great throughput using heavier compression algorithms like zstd, > but this is currently greatly limited by the lack of threading. Isn't this a problem of the zswap implementation rather than general kswapd reclaim? Why zswap doesn't do the same as normal swap out in a context outside of the reclaim? 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. -- Michal Hocko SUSE Labs