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=-11.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 A7F38C433DB for ; Wed, 10 Feb 2021 08:02:57 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 4077164E42 for ; Wed, 10 Feb 2021 08:02:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4077164E42 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id C18E96B006E; Wed, 10 Feb 2021 03:02:56 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BC8D36B0070; Wed, 10 Feb 2021 03:02:56 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ADE0B6B0071; Wed, 10 Feb 2021 03:02:56 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0169.hostedemail.com [216.40.44.169]) by kanga.kvack.org (Postfix) with ESMTP id 96F726B006E for ; Wed, 10 Feb 2021 03:02:56 -0500 (EST) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 559B91857394E for ; Wed, 10 Feb 2021 08:02:56 +0000 (UTC) X-FDA: 77801617152.21.04F39F9 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf14.hostedemail.com (Postfix) with ESMTP id 5E3CBC0001EE for ; Wed, 10 Feb 2021 08:02:55 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 3A31264DB1; Wed, 10 Feb 2021 08:02:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612944174; bh=rJTwMxtUchbfljFXXQ20HhURw7jNmDgqSh0tX3xFgyQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uHPzU4nH4CVXjZjNaaFHh7CKJu7CSPWtcixotPk7afewt3prO3HH1T7xXLwHZ+6ED OajiYj0SYa7uXajhClCUOme+3BDwr246uhTeJgcdiamUOUKy7Pz/a48V85Abd5zVb3 3FcBZslL9wGK57QyPEYWvBINKRb0BaPgbhDTtXsE= Date: Wed, 10 Feb 2021 09:02:51 +0100 From: Greg KH To: Minchan Kim Cc: Andrew Morton , jhubbard@nvidia.com, willy@infradead.org, surenb@google.com, joaodias@google.com, LKML , linux-mm Subject: Re: [PATCH v3] mm: cma: support sysfs Message-ID: References: <20210210075509.3788729-1-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210210075509.3788729-1-minchan@kernel.org> X-Stat-Signature: m7wyrncyca8oa9mybn1wo7dr8sc8chce X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 5E3CBC0001EE Received-SPF: none (kernel.org>: No applicable sender policy available) receiver=imf14; identity=mailfrom; envelope-from=""; helo=mail.kernel.org; client-ip=198.145.29.99 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1612944175-856385 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 Tue, Feb 09, 2021 at 11:55:09PM -0800, Minchan Kim wrote: > Since CMA is getting used more widely, it's more important to > keep monitoring CMA statistics for system health since it's > directly related to user experience. > > This patch introduces sysfs statistics for CMA, in order to provide > some basic monitoring of the CMA allocator. > > * the number of CMA page allocation attempts > * the number of CMA page allocation failures > > These two values allow the user to calcuate the allocation > failure rate for each CMA area. > > e.g.) > /sys/kernel/mm/cma/WIFI/cma_alloc_pages_[attempts|fails] > /sys/kernel/mm/cma/SENSOR/cma_alloc_pages_[attempts|fails] > /sys/kernel/mm/cma/BLUETOOTH/cma_alloc_pages_[attempts|fails] > > Signed-off-by: Minchan Kim For the sysfs stuff: Reviewed-by: Greg Kroah-Hartman