Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2585325ybh; Mon, 9 Mar 2020 08:49:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuzdknc23ULw7GKeIm/LicwhwrW/py/lNpE1gU3PwHdyVp8s6NbbP0JoiswaNlAR1dE12in X-Received: by 2002:a9d:12a3:: with SMTP id g32mr13853591otg.111.1583768952209; Mon, 09 Mar 2020 08:49:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583768952; cv=none; d=google.com; s=arc-20160816; b=Jeuu4kBu9Y4pikd6WTSS9JUUxckU9zgaW3UBRm4t4n5U/jHnzuc0hYkSjI+juAyadV ZrNFu0UiRCqRIz6e18IgGUS92+AH/UXTW3fal8I+rVw1iQhgaxIMeagWeotAovWrZQmh 6dyny8SrXe+gMEXQpaPoZH3n3kai7KxLffMr2jtD53rtVAZilwv5XbrV9TVBkM0lJT08 XtKAbjXF9gA9VZEo+4rXH6lEdktbGgVMroLRG0nx6ab3OpFA/uzyJnBc202bbLlMjKxn 5hmVIG6pMDICWQzUqWKz3N3W1ffPLFUYvP+DPu4UKvvqjJS52vQMXxPBue9L23xkm8n/ 2GTQ== 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 :dkim-signature; bh=jLofNn5qpSrLQRtfD1EwGyzB1Lhve2KpO5PXEfPUq5Q=; b=WyxTlK5B0rxxkD8TRTH4MQfVLa4GMGTezLpyQPq0EkwpkktpwIUPwf0k4+OdsIWDjf JR63otWJgwMkjHFOJh4m2LLphqUZzXa4V3l1lAwAR4GflZhu9BqUzcqUNjKV2YtN89ak b6gqWg7zAaxCdfPxoNmcPeuZ913cvQ8qN8R3EEdRA9oNS+LvaENteBT1crV1RdcdKxvE SILKSPQQSfFjRutSIpDzCx9VSsC69IgDYHbE76KNVoRrmM9g5wTJ8vjJ31HT/fdKBk5q ElkFrESmkXNtZQqi0oQVXs1FwX6VGmGE/STMANlCwmjKbtAbpE0px7YpcurvhNUqIiYZ /dPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=YeZJOaBV; 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 l20si528913otn.37.2020.03.09.08.49.00; Mon, 09 Mar 2020 08:49:12 -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=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=YeZJOaBV; 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 S1726788AbgCIPsN (ORCPT + 99 others); Mon, 9 Mar 2020 11:48:13 -0400 Received: from mail-lj1-f177.google.com ([209.85.208.177]:37722 "EHLO mail-lj1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbgCIPsN (ORCPT ); Mon, 9 Mar 2020 11:48:13 -0400 Received: by mail-lj1-f177.google.com with SMTP id d12so10484925lji.4 for ; Mon, 09 Mar 2020 08:48:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=jLofNn5qpSrLQRtfD1EwGyzB1Lhve2KpO5PXEfPUq5Q=; b=YeZJOaBVkiXVfs+D9QtkZpXnQncn6cQi6ttJO8GeDr/u0vs5Ok6D71vFPTbDaSrOSU a9vwiyAxGdd0jOPbAWRDxgQ/dVaWxrVoe46Psg3MiFYj6KPcMIJ4sjItaMalHGo9tC7r nyjbHigjgQzZcxdVvtJBHh6hNSUGhAl0ydVpCvN+KWP3/HSx50Z1TLzQ7Ut1tSmFiO3s eD8QkJqOAB/I8mPL1wRQv4qqSb5sF2dPDZE6sA+/YT9biwdnXeGxIfQd459PlU+HDMnC H3c/Iyrli+xZ9UctINSRWGEVnO97rNrPAS7ZJfRJI/twc49hhWGLZUjKLJUuwSTaliYS PWLA== 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=jLofNn5qpSrLQRtfD1EwGyzB1Lhve2KpO5PXEfPUq5Q=; b=juOJTTCGL/KCRVSFlbdrS0BCrkuWz1RkMlEEAx/eBIqzfEt/Ex61aAzLB+ncAVK99L AjE4Rjs2qYZ13yNM4ee5WNhsXoU7NhW11Wit39S91kZ0HthK/GDup2lKLAyF+6CYHPfm kVfy+MgTTx9GeT0yKGiGmYN8okre0sySrFpqzGKDuwla+TINGr57QYg9TWZD++TAqGyZ jUrExeT2QTUgmgEd87KukekzdYjBltBc/QeyTQKSzrRuzzH8OxCml33TsMH2LzdUQstz nEdt8TngqLaOWGUMim5Hg1Cz1S6Xdzn3zgVqJvw+kXDDnjVmWRUZvvtukF0pLI1jd0Cp ONrg== X-Gm-Message-State: ANhLgQ2gqHRqyc2nPb6VAvLoUTznzt/oEDT1whCikNFjeCDAS42LosWd Gjw1wNpLECtgkolqbI8tl1fAug== X-Received: by 2002:a2e:9a90:: with SMTP id p16mr6809006lji.277.1583768891451; Mon, 09 Mar 2020 08:48:11 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id t3sm11168342lfp.81.2020.03.09.08.48.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 08:48:10 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id 977EB1013CA; Mon, 9 Mar 2020 18:48:10 +0300 (+03) Date: Mon, 9 Mar 2020 18:48:10 +0300 From: "Kirill A. Shutemov" To: David Rientjes Cc: Andrew Morton , Yang Shi , "Kirill A. Shutemov" , Mike Rapoport , Jeremy Cline , Linux Kernel Mailing List , Linux MM Subject: Re: [patch 1/2] mm, shmem: add vmstat for hugepage fallback Message-ID: <20200309154810.7cp5e57y3jymhluz@box> References: 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 On Fri, Mar 06, 2020 at 02:22:32PM -0800, David Rientjes wrote: > The existing thp_fault_fallback indicates when thp attempts to allocate a > hugepage but fails, or if the hugepage cannot be charged to the mem cgroup > hierarchy. > > Extend this to shmem as well. Adds a new thp_file_fallback to complement > thp_file_alloc that gets incremented when a hugepage is attempted to be > allocated but fails, or if it cannot be charged to the mem cgroup > hierarchy. > > Additionally, remove the check for CONFIG_TRANSPARENT_HUGE_PAGECACHE from > shmem_alloc_hugepage() since it is only called with this configuration > option. > > Signed-off-by: David Rientjes Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov