Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1041194ybv; Wed, 19 Feb 2020 14:44:00 -0800 (PST) X-Google-Smtp-Source: APXvYqzxxV9WhwKPA3JmhDp7UBfqxiCdiClPDCgOLBFtbKL9gQ09MAzHQtuirxT/3It64czW4s4S X-Received: by 2002:a05:6830:12d5:: with SMTP id a21mr22036725otq.296.1582152239879; Wed, 19 Feb 2020 14:43:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582152239; cv=none; d=google.com; s=arc-20160816; b=mnfttlvWZ8TeTrsqsyqnYkDZc3jljLbTUntY05OHLTKNHS79G6aBQf2z27wPMfrSMH uX2uK9ODZyl034jfgAfh/vQzdyMcIxqaBqmEQGqp08vaT9XWPEOtQbyJgUQW31Nvr97V X6YCELqT6k969uZ9TGIJ/xHCBDudhg6kL77PCIjlXCbj4vDj8BhDGQW0TR/A9V54IgmO 0/aDl2OJGpRgU0kVBuxeZGGkLUdDED/TUxt+ztGFq+Gf4PIGFxdFOvb6J6UvTTg2u5wN FhRPpi2nRWo9RFywCqdTWJnNTll2iEHTfjpCA+f/FEOzSx6/QFlyVQz7Ukd60Ws+KmRi 7W+w== 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=OIoZhKbx27/FCo9yilFuIVLxJ+Eh0wcGMXuT/euPHOc=; b=Q28qaLN6d43hbWfVQ1Knvf4HcRkHwiy/eCSKjTYDEUei4girI/YperXkmU/0Yw65HI 1DhQPNc/UoDwQF6EuFMs+6ZLVRiMPuuoU+wsIr3KP2YZ36FtKC6Kqdm3C3p67EFaeDFJ lzHVQ17Vj1j2Nr/TAxyoCijTFA+mWr4mzpYvtqTNFsLjjutNpqBmL13wD5m3q8VjmHAv HhyQVgzve/Uvog8AfZpvODik/8WZREAJi7p65OQcxpdxcKxMUElQECGkWuJyUBQBOfOE c3SMY3L7ny+haoro6QPEJMqH1RhIETSOVv7QkacveehuYrjl5Zoci2NCkGAxDxDdAgiw twcQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si10171762oie.96.2020.02.19.14.43.46; Wed, 19 Feb 2020 14:43:59 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727803AbgBSWme (ORCPT + 99 others); Wed, 19 Feb 2020 17:42:34 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:43799 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727163AbgBSWme (ORCPT ); Wed, 19 Feb 2020 17:42:34 -0500 Received: by mail-pf1-f193.google.com with SMTP id s1so812407pfh.10 for ; Wed, 19 Feb 2020 14:42:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=OIoZhKbx27/FCo9yilFuIVLxJ+Eh0wcGMXuT/euPHOc=; b=EWU2wJgaKEjGy5Br1fZNKC7fVlcD7SGWAIGBIrng/Kd1WAT6vBn2YgQMqreHbBUYyJ 8RRr53TBaKiAR8Qh2CGV0INnXnaXYPmcZl0l2XB7CyrNaEA7gndXi6bTZtLKC1sZH/1/ ukIve+D7gNwGEihaelSfMOx4qvVHTwg531i3rC1qukaJuktRlEPC1GtcCWHGqa/taBbZ 123GTwO7QsngtTkf26WjdUFev4ni92i9lUuc2H0gJbppi/WNGe4eaGFVLS4y9a7Bief1 Gf4kJ4Wcr1njSWA7nI8SLXWQD1Ocgtb3v0OkB1SiQLIkgDIEweOF/AC8K2SAbp2K312t vqPw== X-Gm-Message-State: APjAAAUruwKv7AoOk0lsgmCJL/C2JwIcMqRsodvtjseSgTInlYAx3EjO WiTcyeKpFTNSX8BhEcfeC5g= X-Received: by 2002:a65:468d:: with SMTP id h13mr3403908pgr.359.1582152154012; Wed, 19 Feb 2020 14:42:34 -0800 (PST) Received: from sultan-book.localdomain ([104.200.129.62]) by smtp.gmail.com with ESMTPSA id d2sm794824pjv.18.2020.02.19.14.42.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2020 14:42:33 -0800 (PST) Date: Wed, 19 Feb 2020 14:42:31 -0800 From: Sultan Alsawaf To: Mel Gorman Cc: Michal Hocko , Dave Hansen , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Johannes Weiner Subject: Re: [PATCH] mm: Stop kswapd early when nothing's waiting for it to free pages Message-ID: <20200219224231.GA5190@sultan-book.localdomain> References: <20200219182522.1960-1-sultan@kerneltoast.com> <20200219194006.GA3075@sultan-book.localdomain> <20200219200527.GF11847@dhcp22.suse.cz> <20200219204220.GA3488@sultan-book.localdomain> <20200219214513.GL3420@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200219214513.GL3420@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 19, 2020 at 09:45:13PM +0000, Mel Gorman wrote: > This could be watermark boosting run wild again. Can you test with > sysctl vm.watermark_boost_factor=0 or the following patch? (preferably > both to compare and contrast). I can test that, but something to note is that I've been doing equal testing with this on 4.4, which exhibits the same behavior, and that kernel doesn't have watermark boosting in it, as far as I can tell. I don't think what we're addressing here is a "bug", but rather something fundamental about how we've been thinking about kswapd lifetime. The argument here is that it's not coherent to be letting kswapd run as it does, and instead gating it on outstanding allocation requests provides much more reasonable behavior, given real workloads and use patterns. Does that make sense and seem reasonable? Sultan