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=unavailable 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 B8461C433E0 for ; Wed, 10 Feb 2021 08:03:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7572264DB1 for ; Wed, 10 Feb 2021 08:03:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233370AbhBJIDj (ORCPT ); Wed, 10 Feb 2021 03:03:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:44234 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233199AbhBJIDf (ORCPT ); Wed, 10 Feb 2021 03:03:35 -0500 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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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