Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4164281ybv; Tue, 25 Feb 2020 14:31:42 -0800 (PST) X-Google-Smtp-Source: APXvYqyb/9rkOhgkMA49LtHM9FG9UvhRNUPimz/Dy2+993+NJ/1BMu0ZN1vlEminHhCV20sJNi3L X-Received: by 2002:aca:d507:: with SMTP id m7mr856009oig.48.1582669902234; Tue, 25 Feb 2020 14:31:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582669902; cv=none; d=google.com; s=arc-20160816; b=q6+8cZC6RHRXaULltEYMksfeft0/Je1qnT1eg2IH57zkJlxyE+KWRBESsPwmHagUym acdnq1sEN2B/G9XV2kS9W3XxT/OKQTBXTweq73FhTGzSfZQh7+FfFx+dvVZFB+TquUQE i7/YuF4ICJDyOBWDuPNdDY22GEeabpi/lMnFRxW4QCQVo5IgonwBqHlWO1GXK92gEwrp e2w0raN6e0gzgmjbBJz6T0fA37TSltGJ1trFc0pl4Nvz0e5NwK7nd6RVdKl9JtoAvo/O CKh/U3yqaw1gdNHi+xnSO+bEwcRzttjq2wqN513lwdQQR70pNSdehhtkK1DHAV7kwW5u W2Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=BrEPbLqTlFfWhG7c3GGQgt9yFg0pALuIdjeT0xABLMg=; b=fPYHucfOCgdGNMDa3QG3W3JZWBSAWKx+VOKlCUTs7I2wqdwuL/nNITyiSWfNl61LSl W9LuNNvvZiysBbCsDV6dbW/XDDhCuRoxZ72AEgA2DY6ZYVp/2hSILBcFw7x6BV+xJ7bo 0KWcZSiRZr5qcytgOrRCtb4T1uMux+7gPw2zS/wZQ50v9OPApE9Vm7XQR+Z2c3fk9Q2H osL7zsm4ntSa/s48HIoySFGtuzFQMUGz3fLhzC4T0MunfapoxeLRUUWilU6LYQsRnQDA GtCfc9xUX+Kn0lnL2HDaxgHrIEVpGzFV8y+MuRtF9Q8wCTC2m6fFevZI8ziBDwnWFywT Jp2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FpPAphSH; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20si119631otr.64.2020.02.25.14.31.27; Tue, 25 Feb 2020 14:31: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; dkim=pass header.i=@google.com header.s=20161025 header.b=FpPAphSH; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729023AbgBYWaQ (ORCPT + 99 others); Tue, 25 Feb 2020 17:30:16 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:46861 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726421AbgBYWaQ (ORCPT ); Tue, 25 Feb 2020 17:30:16 -0500 Received: by mail-ot1-f65.google.com with SMTP id g64so1043460otb.13 for ; Tue, 25 Feb 2020 14:30:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BrEPbLqTlFfWhG7c3GGQgt9yFg0pALuIdjeT0xABLMg=; b=FpPAphSHXLYsaE+3UvRxPBgDOnB7MzMk7Kmlh3zw4TOfEWCHWfGUJgRgDJ8VBkWILC fkPyQAdZf3U7B8Vug+ANb3jafZttPSBVWEuvQ+oaghABbjg7S+yasje27XW2Gu0fCaNu 89eHuQHxDrywCsMb3ncajsBSzC6mY0iFSYJBxqyDaIfWBePiwJr81FaFpJ9Zou6QkEyc Jjip7c/AKq914jb039x4fbGuobk8OlrDk3vD7f5J1zxZ3/H7tBDa0NLjdmJ08s2jnUhV wYGXLf+gK0mSec/DY3pPLGZVF60swBgnM79xrVAANmXb/r5JP1+NLcbk1UcVDSUMQnB6 Jmng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BrEPbLqTlFfWhG7c3GGQgt9yFg0pALuIdjeT0xABLMg=; b=rgBr7ZnTMaL+C8u9FmxqYcwjZIgx9YgXsLNg4RiMMJ+0P0Vm0SEBINzvZDRpMVdYNW L2g9ILXe4ZznJ2joq+I9asO8H0NZrMm2Sbe1lE/qQRkm/SlECj8SaJ6qxAP68oe8FIFt AGwbz8Q/wJE/3XK0iGpRwEELzDrmgaUdVGpc+WrT094+FDW2BQmA6AvcqGnTWrl6czN+ yUM248iZKsyrW66WsRo3vK5H4HYwiu7HMG+IvKutkx7fiYM77wWzFKy2BQfvTzvky7uR 5//PVvy0bT2f4TWKmrOPLM3d/I+orMCgIGQjmUPoAHPvmtjhcWtXv1ts6TUedvLPlFT3 dr6w== X-Gm-Message-State: APjAAAUhdUJaA15OL8gctHICbzCuXy2rBN0EmR4FF1QMhLbK9zWYePt/ aM+QfJZAo1klnXdODTz9rm2yZOwkDh2W5GmduOC1mj+h X-Received: by 2002:a9d:6ac2:: with SMTP id m2mr630339otq.191.1582669814963; Tue, 25 Feb 2020 14:30:14 -0800 (PST) MIME-Version: 1.0 References: <20200219194006.GA3075@sultan-book.localdomain> <20200219200527.GF11847@dhcp22.suse.cz> <20200219204220.GA3488@sultan-book.localdomain> <20200219214513.GL3420@suse.de> <20200219224231.GA5190@sultan-book.localdomain> <20200220101945.GN3420@suse.de> <20200221042232.GA2197@sultan-book.localdomain> <20200221080737.GK20509@dhcp22.suse.cz> <20200221210824.GA3605@sultan-book.localdomain> <20200225090945.GJ22443@dhcp22.suse.cz> In-Reply-To: <20200225090945.GJ22443@dhcp22.suse.cz> From: Shakeel Butt Date: Tue, 25 Feb 2020 14:30:03 -0800 Message-ID: Subject: Re: [PATCH] mm: Stop kswapd early when nothing's waiting for it to free pages To: Michal Hocko Cc: Sultan Alsawaf , Mel Gorman , Dave Hansen , Andrew Morton , Linux MM , LKML , Johannes Weiner Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 25, 2020 at 1:10 AM Michal Hocko wrote: > [snip] > > The proper fix should, however, check the amount of reclaimable pages > and back off if they cannot meet the target IMO. We cannot rely on the > general reclaimability here because that could really be thrashing. > "check the amount of reclaimable pages" vs "cannot rely on the general reclaimability"? Can you clarify? BTW we are seeing a similar situation in our production environment. We have swappiness=0, no swap from kswapd (because we don't swapout on pressure, only on cold age) and too few file pages, the kswapd goes crazy on shrink_slab and spends 100% cpu on it. Shakeel