Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp647116rdh; Wed, 7 Feb 2024 16:08:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXRTX9lGGc5CgdWkVGO1cVfvYuecSrAPABCIPdKau+6wkTnwK47udvLIyCIwvzYjgz1LJwPIiPVcxTpUwr8g7IvaQVaJsGccMEjzXgcWw== X-Google-Smtp-Source: AGHT+IHGIYbXfBcfMBf0i66Z0hxRr9cDnaqUXouZIUGPEViSONNPgz5qpSlIUC5M2Ud71jjhvnEf X-Received: by 2002:a17:903:264f:b0:1d9:657c:2769 with SMTP id je15-20020a170903264f00b001d9657c2769mr5999956plb.19.1707350911126; Wed, 07 Feb 2024 16:08:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707350911; cv=pass; d=google.com; s=arc-20160816; b=iqbbENRW6oO/nb4ifSEk6+5avW4nz1y1C6ZZPgvONUvu8wrRb3ouqHp6bpcn6Tr3eV FZTw+8kwUX6kidi8SjivXAFJol2aN4Z+jGkOQkfcclPX2MoGi9hDpnd7kB5LTg0ghoZr pOX+mVHv3eg7+kfEKCSsge9xt9ZSII51hXo+XpAAEj2ot2StZF/P6ker1I2+btxF738D ShD9AWSPdL2n7O4zpA+Tca+GD0+E47E/0pTcvDfGbI1V0UTjrxB0Z3zYUR0aZApICP6M pNOuPSjUq+79bbRx/kqKOtE6dpfi9eItJcKGwqwD3gePPGrLw1hGmsyJLvSZGV6GeZsf xI0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=8o1XUzlsaksLwX+tl1yzLLdA3Q6JAQnNoI/vW3ST9iM=; fh=Iz2ML9DjYBBpCyYXRsycHzPs6YGImvgEmlK9gfqHNOA=; b=A1UwnHMQ4sEejCbd0pRXcENmbhmkT73DkgqUcJU1Rq5vTHAHqBHOkQRA1rojMVjEWR lIJwQ6Kb7CbIKJRtpHiFX6DEb+1Ay2TCCw+4Z42STEFKTdxg7AnHloPbZoAt88vvZnob IyN9vOzIgUTIIMYMhV6XkXEXx/IQRD4JLiGvkJJ2Ib1vtnpDAPXerq7mylrxbrXEyDIm 75V1HYc9uXLdI4afY5uHK2OiyBhNBRYlfoNbi0PXc/24QAw3E/d+eTBMafEhxCw4wD3x jfAm1kkc/UtcF+VKVyiSbo9jE40VjmWtzvQqz+ktrxxnwqsEB6tPUnCs142bF6l6DCj0 k8MA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=osKux0YI; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-57315-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57315-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWzpdvQQM46Cy734qBUUlvH7RY/qeF+dguNm7SjOV5agVLqnIkS8vNFFPQI1GoHshQq2h92T7UG+T0KyoZm5UdeHKKVws0Z7exRQQJbYA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g20-20020a170902c39400b001d7195d8a0fsi2588481plg.117.2024.02.07.16.08.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 16:08:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57315-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=osKux0YI; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-57315-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57315-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C4CF1286F49 for ; Thu, 8 Feb 2024 00:08:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8B01C8C7; Thu, 8 Feb 2024 00:08:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="osKux0YI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA1144C70 for ; Thu, 8 Feb 2024 00:08:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707350904; cv=none; b=dxqINc6JMqQNKb/A/KxHmsl3zZDtFt5uQEV5yzwLpDlykOrnBZXrDbe+c1DNrmNhtT+tHwwtkv5UzmPM0baKRmtwuZIaJLTMCEG5z629Hzn/++jaguUGJ9nJ8WtPXzJmYIekr9MuH1CfMa99ckpor/NjsCYQLJzpA1xjYCXZPBs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707350904; c=relaxed/simple; bh=zpFL9tuc+VckuTDiG9NM15A9S+EbfXl30c0elvw5tTM=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=r8AXYKaamPKCQSvmYMW0Ntyym3K/DPzFTifTc0PFpwVq4F46543tp8wUXU99JUOAijcPWUPyeX0FASjakafv1Tp4zPbbzZbOfCeXzHrZtbslfq4krFBnDG4eByTEeWeblzM/+tuPBW5iQRTCTyysMH88KYwrapuVN/TD7mUhVKo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=osKux0YI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DC73C433C7; Thu, 8 Feb 2024 00:08:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1707350903; bh=zpFL9tuc+VckuTDiG9NM15A9S+EbfXl30c0elvw5tTM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=osKux0YIteV3Jlbv7wlzFCk3jUqr8BjkFANBLBePHJdbgi1La88MZKOHhp/PHu3kA dll2N1SW5QC14Adl5a4trJNJDWvhX85ucdeJQcJKXYvm0W2gGiZPVWO57HsmVnIKKY SOnn6r1fzBe/0v6v7xBXO98JckBHMVlZCsjEmW8E= Date: Wed, 7 Feb 2024 16:08:22 -0800 From: Andrew Morton To: Anshuman Khandual Cc: linux-mm@kvack.org, alexandru.elisei@arm.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/cma: Add sysfs file 'release_pages_success' Message-Id: <20240207160822.c061cc98d6ffd2ab1ecac38a@linux-foundation.org> In-Reply-To: <8d9f2950-6805-481f-a5e7-e5ea45128fb5@arm.com> References: <20240206045731.472759-1-anshuman.khandual@arm.com> <20240206093857.d834af4f96d643c53e29e02d@linux-foundation.org> <8d9f2950-6805-481f-a5e7-e5ea45128fb5@arm.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 7 Feb 2024 10:04:31 +0530 Anshuman Khandual wrote: > > The changelog doesn't explain why Linux needs this feature. The value > > to our users. Perhaps that info is buried in the link which is buried > > below the ^---$, but as this is the most important part of a changelog, > > it really should be spelled out here, completely and carefully please. > > Does this look better ? > > mm/cma: Add sysfs file 'release_pages_success' > > This adds the following new sysfs file tracking the number of successfully > released pages from a given CMA heap area. This file will be available via > CONFIG_CMA_SYSFS and help in determining active CMA pages available on the > CMA heap area. This adds a new 'nr_pages_released' (CONFIG_CMA_SYSFS) into > 'struct cma' which gets updated during cma_release(). > > /sys/kernel/mm/cma//release_pages_success > > After this change, an user will be able to find active CMA pages available > in a given CMA heap area via the following method. > > Active pages = alloc_pages_success - release_pages_success > > That's valuable information for both software designers, and system admins > as it allows them to tune the number of CMA pages available in the system. > This increases user visibility for allocated CMA area and its utilization. yup, thanks. I added the patch with the above for a changelog.