Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp472936ybh; Tue, 10 Mar 2020 02:18:14 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt7MREx91HLJxf+laI4ER7auxMZDMnZXxIVu/pW66hSNGZ8eT6faGGzwLi+oGc6WUWtJ7LR X-Received: by 2002:aca:c506:: with SMTP id v6mr458426oif.26.1583831894095; Tue, 10 Mar 2020 02:18:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583831894; cv=none; d=google.com; s=arc-20160816; b=HI1keu7EyPwehZP8BgMkW0HbiObUVsjpylptqDAi87mu9x99HsUa9ZYErbB8rmUzFx 3EHP+GhZ0i2MSf38nzDuzHaTGUwZ/4WeZ7MW9+JPPghW2CE7Nrev4iC2tSwe5Y+jeSfI 3vSH0Uv+W3smLJmkRV8LGeOPsu7so1ZGl56N6R8E8QXm4Gik0gt43GQnVGema0iDYc5B uuD3Ha6e9VHXWuw/WrB1AXuR/y2nKHArhq21G1iIcHAIamsXURoG0auqtvPe40L9fwRH zhck8JAQksWjvbdzJiAMyMds0CoSxuItnxqn2u98/JScwOQmmBrNo7AkNTe9c/hh/9Fo 73qA== 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=fz3n4QEA4mMM+MBbJX+cMGlCMEaVSqf4LwkZvYcSZEw=; b=lLQlc1L3wPZf1l41pwadiK8sNXombfgAE4UKA0CQ/AvmCy/oMaEHXpO81W32Xx8DQK rWKzrQySSTHKD4J7bzTjXLisiff4LDHL04HYtCDpOX/YXt88YmGfybO4przGygVsYQBI io8xFw1nz3bCnTPvwBRw8mBLpUYS37uRAfSNJH1Gsp4YBm8PIqb8eCraMuwhF6SHQEXm U9Tyv8R2bCKOUGk1mTF0FWkJayZMuEcxbJTeeqNURPZyn5wWmKrnuut4Sg3fHAygFv36 TlhMucphdp5EoN1MCYh5ZEzL6MVIsnK8rYsRlNTiqEaazEckCsMQHID6+KZXG6jn40bf +UTQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s8si4973601oij.275.2020.03.10.02.18.01; Tue, 10 Mar 2020 02:18:14 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726539AbgCJJQm (ORCPT + 99 others); Tue, 10 Mar 2020 05:16:42 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40812 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726258AbgCJJQm (ORCPT ); Tue, 10 Mar 2020 05:16:42 -0400 Received: by mail-wr1-f67.google.com with SMTP id p2so13995748wrw.7; Tue, 10 Mar 2020 02:16:39 -0700 (PDT) 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=fz3n4QEA4mMM+MBbJX+cMGlCMEaVSqf4LwkZvYcSZEw=; b=EBXKq4nxdeL99uimUiCAa5Xl5Xc4upafB0sj6Esq6i//ChMnp9K3N7evpVDOeqJsE7 89lp2Ybs5CJ2dnFjQd5zSd0uuI4VIgmoEb4H83sT9heUyaufAmHZUkcMDv5T1+1gD+Ln HFbTBydYQNjtzh7gVPMm2hGucEsypZfnp0+uZRVcpiL5A7U7yLqIQvBtYfOYMB8hp9+R Fr/Qgu1aLl0gY8Xpzi6m47RijqVdFdn6StQqBXsQVHIMyqXHzlebU5KRBPis0Be4PQHM PdwldUhTJ0fsuP4qFqpXLjRZ+IIL0tz4ndi83SYICqCTjF2uHRfF863A8OtoPdEEOmYn YgrQ== X-Gm-Message-State: ANhLgQ2kYBj7mBmUf80iWIaWLxtyPn0aMVxn5NjcMgk0n4//nmtwv0BK luYf5UNTl2OhgYDi3YO6o3E= X-Received: by 2002:adf:92c2:: with SMTP id 60mr9876964wrn.177.1583831798497; Tue, 10 Mar 2020 02:16:38 -0700 (PDT) Received: from localhost (prg-ext-pat.suse.com. [213.151.95.130]) by smtp.gmail.com with ESMTPSA id j14sm65506521wrn.32.2020.03.10.02.16.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2020 02:16:37 -0700 (PDT) Date: Tue, 10 Mar 2020 10:16:37 +0100 From: Michal Hocko To: Arnd Bergmann Cc: Russell King - ARM Linux admin , Nishanth Menon , Santosh Shilimkar , Tero Kristo , Linux ARM , 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: <20200310091637.GC8447@dhcp22.suse.cz> References: <671b05bc-7237-7422-3ece-f1a4a3652c92@oracle.com> <7c4c1459-60d5-24c8-6eb9-da299ead99ea@oracle.com> <20200306203439.peytghdqragjfhdx@kahuna> <20200308141923.GI25745@shell.armlinux.org.uk> <20200309140439.GL25745@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I am worried this went quite tangent to the original patch under discussion here, but let me clarify at least one point. On Mon 09-03-20 16:04:54, Arnd Bergmann wrote: > On Mon, Mar 9, 2020 at 3:05 PM Russell King - ARM Linux admin [...] > > What happened to requests for memory from highmem being able to be > > sourced from lowmem if highmem wasn't available? That used to be > > standard kernel behaviour. > > AFAICT this is how it's supposed to work, but for some reason it > doesn't always. I don't know the details, but have heard of recent > complaints about it. I don't think it's the actual get_free_pages > failing, but rather some heuristic looking at the number of free pages. This is indeed the case. There are low memory reserves which are not allowed for requests which can be satisfied from higher zones. This is the case for many many years. Just have a look at lowmem_reserve and their usage in __zone_watermark_ok. The layout of the reserves can be configured by /proc/sys/vm/lowmem_reserve_ratio. HTH -- Michal Hocko SUSE Labs