From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09F4AC18E5A for ; Mon, 9 Mar 2020 15:48:15 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C537C21D56 for ; Mon, 9 Mar 2020 15:48:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=shutemov-name.20150623.gappssmtp.com header.i=@shutemov-name.20150623.gappssmtp.com header.b="YeZJOaBV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C537C21D56 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=shutemov.name Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 330336B0005; Mon, 9 Mar 2020 11:48:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2E0E66B0006; Mon, 9 Mar 2020 11:48:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 21DF26B0007; Mon, 9 Mar 2020 11:48:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0191.hostedemail.com [216.40.44.191]) by kanga.kvack.org (Postfix) with ESMTP id 0A5A16B0005 for ; Mon, 9 Mar 2020 11:48:14 -0400 (EDT) Received: from smtpin02.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id B239587CA for ; Mon, 9 Mar 2020 15:48:13 +0000 (UTC) X-FDA: 76576255266.02.eyes26_81f9b39463823 X-HE-Tag: eyes26_81f9b39463823 X-Filterd-Recvd-Size: 4079 Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) by imf41.hostedemail.com (Postfix) with ESMTP for ; Mon, 9 Mar 2020 15:48:13 +0000 (UTC) Received: by mail-lj1-f170.google.com with SMTP id f13so10492162ljp.0 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=MR2TUM7iUNQw9rZ0OcsYYZzITz8+KWFILaTInaJOgN85lPLRZQUoFuHvaSKt7157fW u9DkcRNP6WvVsIqqcbgL3y/QvHhnb7ur8Mb0vT3FqL3jeTtQ3HRsqoq4CPP4hVLfmBjN 8AG7XFbqO/967b2SWh/Ol93/PlNC+dOO2B4zuinmLY4gkcSBoBFpg6usF/2PpbVA3cVK L2ph3IidU+cU/PO5iOHcq06RN2DIMrqXVW87gVe9icYvPGy28jWKgbi3R9AQHCePXqpy ujpHG8oSYmIkcEcmrAsZBS7ahhchKozN8fpfcYxRwoSs3wkFHbBK1f5BNCLlU8zZfRn2 3dpA== X-Gm-Message-State: ANhLgQ17a6+tz8bY6/J1LdwUhYDl6ujpJ2kh65kOangYjn+wW//V3L92 JHZNG86hRgtzxSe+w2RaEEilPw== X-Google-Smtp-Source: ADFU+vuj8tlb8v26bk/4k8K0XSFLhHmuNKVELyWTxsk4bDFJDUNxDGlblztnptVJt3IAVmZYmV9KRg== 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: X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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