Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2457232imd; Fri, 2 Nov 2018 11:44:02 -0700 (PDT) X-Google-Smtp-Source: AJdET5c2RYEF1+M3d1f1UIqoQoyeSZ7U+rGDPMtJYh88I9RWXfxnGpXOsCwQovYPEF/lApfp2BZT X-Received: by 2002:a17:902:8d94:: with SMTP id v20-v6mr12948377plo.109.1541184242323; Fri, 02 Nov 2018 11:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184242; cv=none; d=google.com; s=arc-20160816; b=N+QGSlStq8kpzReaLcopXGR3UzHYffmZgBiwhCJhsCl4IX9+5Skv8OWB1bAn/GI7D4 gHjhEeSb9qe/tPWQpWQm0qGIMPo3UGokIwQTDvkqDWJr9e1WWFWRcbMevwSN8ng9tzPz 3ylWHdJV/2J6lBkXikuVp8jWlF3cdl/uJowXTlwyRVIzpMK7PGf2Lt6e39rnnp3iK4Ok Qw51vp+A76fRFxpU7j95x3Lrd/4vQ/wo/NrkImELCXZZaOV+6hIFE/dB5/S3TZL+oSX1 U5J47iKqw9R4rhnyhqcxApbqtWUwo2orxLn9Bg6a5aJIWeW1DzhpN0bCihjxX54+H8p+ ezjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4haDf5W2TigDpeNYrxpE+4T+OxNk0JdApN/jPXc2oeM=; b=u9DImz3QGh8YoQaRoHHdWPALjqcFPxboqbDxe9meQgnRneZqibXsEGFqF7ePpm7ip/ dpac1zW5h2Tkt8fbcOBTVE/PAdHzgxRG/5hAL35JBupCZRooK3ZxswqpiAVvHJUfo/mM q42T/ggwmeXhvoTTKPsl5KuseJGYVujc0vH9sUxR7N88T3/blyE3ksOteuXLz9rKGCyA FVeLMXsCYou+zjyit768N2HXZfWW7wEMQ2Lj+6N5axqhfs5QJw8c36FypM13YeWMvxLH vGRbY6x/wFp985WlYFTjdkpZD9YAXP/rXWxDhzPYmE5L3hjlfmTPdyM0pNkJiP8cB3xP 3Ycw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=k9tM6zTF; 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 s13-v6si33296732pgp.382.2018.11.02.11.43.48; Fri, 02 Nov 2018 11:44:02 -0700 (PDT) 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=@kernel.org header.s=default header.b=k9tM6zTF; 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 S1729862AbeKCDu7 (ORCPT + 99 others); Fri, 2 Nov 2018 23:50:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:46146 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728033AbeKCDu6 (ORCPT ); Fri, 2 Nov 2018 23:50:58 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A4AA62084A; Fri, 2 Nov 2018 18:42:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541184166; bh=y+1fAwNFv5Q1L9VUFJTgjM2I9rHapylzYuJbSBI+IGY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k9tM6zTFh/bCQHuan1v8ACAQOkRQNkH0z12a2IGLjBGzCNwZuWD+skcLwzl5OF744 o7mWmM+eRYv7Tz0vYZKDn/oVQ2g1+LQT/Hat411Erpo6Be291SBLDiEHazPLaKqR72 oSPzEMqYoNPqZq6sU49x2GORmRVDTYwoyefm4XAo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sasha Levin Subject: [PATCH 4.18 100/150] Revert "mm: slowly shrink slabs with a relatively small number of objects" Date: Fri, 2 Nov 2018 19:34:22 +0100 Message-Id: <20181102182910.340083654@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ This reverts commit 62aad93f09c1952ede86405894df1b22012fd5ab. Which was upstream commit 172b06c32b94 ("mm: slowly shrink slabs with a relatively small number of objects"). The upstream commit was found to cause regressions. While there is a proposed fix upstream, revent this patch from stable trees for now as testing the fix will take some time. Signed-off-by: Sasha Levin --- mm/vmscan.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index fc0436407471..03822f86f288 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -386,17 +386,6 @@ static unsigned long do_shrink_slab(struct shrink_control *shrinkctl, delta = freeable >> priority; delta *= 4; do_div(delta, shrinker->seeks); - - /* - * Make sure we apply some minimal pressure on default priority - * even on small cgroups. Stale objects are not only consuming memory - * by themselves, but can also hold a reference to a dying cgroup, - * preventing it from being reclaimed. A dying cgroup with all - * corresponding structures like per-cpu stats and kmem caches - * can be really big, so it may lead to a significant waste of memory. - */ - delta = max_t(unsigned long long, delta, min(freeable, batch_size)); - total_scan += delta; if (total_scan < 0) { pr_err("shrink_slab: %pF negative objects to delete nr=%ld\n", -- 2.17.1