Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1561124ybh; Sun, 8 Mar 2020 07:20:27 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvyfl/glQgaXJdIwV2VaYpFDMiTjnANopdhBMnGpqA0WBuJ3U63jmLbzHKtKdW5q69yifZT X-Received: by 2002:aca:1011:: with SMTP id 17mr8942939oiq.72.1583677227677; Sun, 08 Mar 2020 07:20:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583677227; cv=none; d=google.com; s=arc-20160816; b=jFsXmBUgjhbGSLtUONxvMTEKO8B+i3+yPZI6b3i6lHW5Xk70lEqvdwTEYZfRyPQV8o fYUYClDBRfAF8cosUB/ACP9O/i/D5+J5aoyxnlR4fLHjlDVZcWPfERkNFVgQjC5FHLAA j2hb/WbP4rxhV5DDHXXbdvIuYRvJMbp2PF9wVm52ixsZFMxoWJV6X9h8Y5zVaXV4HwsQ RiOls5Kn3UQpRo9Z5vdhoDSAsv//u3NMmZ0//tcHRjErlL8W2TBwFpQQ3mJXLC34cMfc O1RafWJY2btJCe6YFrE7KVtWP7Pgug49xa1kc3DRHEMkpGhno+egaMmhKivlGkoSb0Rl Abdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IVcvIDGwJZYeIvUKfXFgN/rhffyZlyGXJDMHZ+yeVcA=; b=MTBemsEZfPm2sb7o6l2FrAH8QMkHRWS8f/WG5AW6o3bBX3fVMZ/4Y5ABDKqLsVIW1v 3FH5Ou/p0BynOnVmRAY8bztT5yMEE6uac5ZOTAJCKIuzaS4u5AbVK5HpmLvGU0tRLl6r /wZf7O0oqnr+qbc30khqN1M6txWBlHYzh8gBmFVef4JOnYy25QlkXyPotkv56CV6+aTM oho5DBXv/DZYe/qvVGpmJgbzYG2/S+yiDFOMDBZYVnUXgzfVr10M3hEQjDKjFlA/BSVz EujkM2iDlcQmnK7KvMOFlKRv6Mqsd1crA7Eg8IyOy4q2PnD9mm3ZSAWRN6iM39MzqYb6 Gbqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=K5AdU8Ce; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si4958108ote.187.2020.03.08.07.20.13; Sun, 08 Mar 2020 07:20:27 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=K5AdU8Ce; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726322AbgCHOTz (ORCPT + 99 others); Sun, 8 Mar 2020 10:19:55 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:33316 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726260AbgCHOTz (ORCPT ); Sun, 8 Mar 2020 10:19:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=IVcvIDGwJZYeIvUKfXFgN/rhffyZlyGXJDMHZ+yeVcA=; b=K5AdU8Ceyd0YtsCSwH4Hj1L38 t2ufNPUr4XC7GAFtajzsm47ier9yjsvWFQFWu0mCa1G7QppuiMbitZqbvPb4aJTWZ6pJLLx5Vshe/ v2GvvL//7hb/7KOIAClcoZKG+252QJOCA2dceM7z7uL5PQHeC+XBtuH35BLfESIsNh8UZSSXotv36 IcQJ6QRe3rswhZLX5YD26pP6u/QHUOsyEf8Nxkcs4Mw2s76sw15OdagnLghnPml3AGrTEiVnAoOe0 DrgNb5R9cwFl1AYqDm4dBYoVPLxS++dlkn7dtqHabMQYYxUTAnLekyjyDyNA/t5H9PRrwV9RJoYw7 I5Ik0L//Q==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33732) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jAwmE-0000p8-0s; Sun, 08 Mar 2020 14:19:34 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1jAwm3-0002Se-Bj; Sun, 08 Mar 2020 14:19:23 +0000 Date: Sun, 8 Mar 2020 14:19:23 +0000 From: Russell King - ARM Linux admin To: Arnd Bergmann Cc: Nishanth Menon , Santosh Shilimkar , Tero Kristo , Linux ARM , Michal Hocko , Rik van Riel , Catalin Marinas , Santosh Shilimkar , Dave Chinner , Linux Kernel Mailing List , Linux-MM , Yafang Shao , Al Viro , Johannes Weiner , linux-fsdevel , kernel-team@fb.com, Kishon Vijay Abraham I , Linus Torvalds , Andrew Morton , Roman Gushchin Subject: Re: [PATCH] vfs: keep inodes with page cache off the inode shrinker LRU Message-ID: <20200308141923.GI25745@shell.armlinux.org.uk> References: <20200211164701.4ac88d9222e23d1e8cc57c51@linux-foundation.org> <20200212085004.GL25745@shell.armlinux.org.uk> <671b05bc-7237-7422-3ece-f1a4a3652c92@oracle.com> <7c4c1459-60d5-24c8-6eb9-da299ead99ea@oracle.com> <20200306203439.peytghdqragjfhdx@kahuna> 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 08, 2020 at 11:58:52AM +0100, Arnd Bergmann wrote: > On Fri, Mar 6, 2020 at 9:36 PM Nishanth Menon wrote: > > On 13:11-20200226, santosh.shilimkar@oracle.com wrote: > > > > > ~few 1000s still relevant spread between 4G and 8G (confirmed that both > > are present, relevant and in use). > > > > I wish we could sunset, but unfortunately, I am told(and agree) > > that we should'nt just leave products (and these are long term > > products stuck in critical parts in our world) hanging in the air, and > > migrations to newer kernel do still take place periodically (the best > > I can talk in public forum at least). > > Thank you for the clear answer! > > I agree we should certainly not break any such use cases, and for the > 8GB case there is not really a good replacement (using zram/zswap > instead of highmem could work for some new workloads, but would be a > rather risky change for an upgrade on already deployed systems). > > I hope it's ok to ask the same question every few years until you are > reasonably sure that the users are ready to stop upgrading kernels > beyond the following LTS kernel version. We can also do the same > thing for the other 32-bit platforms that exceed the maximum amount > of lowmem, and document which ones are known. > > In the meantime, it would seem useful to increase the amount of > lowmem that can be used by default, using a combination of some > of the changes mentioned earlier > > - add a VMSPLIT_2G_OPT config option for non-LPAE ARM kernels > to handle the common i.MX6 case with 2GB of RAM without highmem > > - make VMSPLIT_2G_OPT (without LPAE) or VMSPLIT_2G (with > LPAE) the default in most ARM defconfig files as well as distros, > and disable highmem where possible, to see what breaks. > > - extend zswap to use all the available high memory for swap space > when highmem is disabled. I don't think that's a good idea. Running debian stable kernels on my 8GB laptop, I have problems when leaving firefox running long before even half the 16GB of swap gets consumed - the entire machine slows down very quickly when it starts swapping more than about 2 or so GB. It seems either the kernel has become quite bad at selecting pages to evict. It gets to the point where any git operation has a battle to fight for RAM, despite not touching anything else other than git. The behaviour is much like firefox is locking memory into core, but that doesn't seem to be what's actually going on. I've never really got to the bottom of it though. This is with 64-bit kernel and userspace. So, I'd suggest that trading off RAM available through highmem for VM space available through zswap is likely a bad idea if you have a workload that requires 4GB of RAM on a 32-bit machine. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up