Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756047AbbBPSyH (ORCPT ); Mon, 16 Feb 2015 13:54:07 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:65535 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754527AbbBPSyD (ORCPT ); Mon, 16 Feb 2015 13:54:03 -0500 X-AuditID: cbfec7f4-b7f126d000001e9a-6a-54e23c364e23 Message-id: <54E23CC5.3050706@partner.samsung.com> Date: Mon, 16 Feb 2015 21:53:57 +0300 From: Stefan Strogin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-version: 1.0 To: Joonsoo Kim Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Marek Szyprowski , Michal Nazarewicz , aneesh.kumar@linux.vnet.ibm.com, Laurent Pinchart , Dmitry Safonov , Pintu Kumar , Weijie Yang , Laura Abbott , SeongJae Park , Hui Zhu , Minchan Kim , Dyasly Sergey , Vyacheslav Tyrtov , gregory.0xf0@gmail.com, sasha.levin@oracle.com, gioh.kim@lge.com, pavel@ucw.cz, stefan.strogin@gmail.com Subject: Re: [PATCH 0/4] mm: cma: add some debug information for CMA References: <20150213030308.GG6592@js1304-P5Q-DELUXE> In-reply-to: <20150213030308.GG6592@js1304-P5Q-DELUXE> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDIsWRmVeSWpSXmKPExsVy+t/xK7pmNo9CDJ4dZ7KYs34Nm8Xj1/NY LD6tfMpm8azpC6PFtOkbWC1WdjezWWzvnMFu0TlxCbvF5V1z2CzurfnParH2yF12iwXHW1gt ln19z25x99RRNou+74fZLSbPlrL4dnIOs8XiI7eZLa7t6GeyuPzmP7vF1Bk/2C1ObjjLarGh mctB3ONyXy+Tx85Zd9k9ZnfMZPXYtKqTzWPTp0nsHl1vrzB5nJjxm8XjwaHNLB7r/rxi8vj4 9BaLx8F3e5g8+rasYvRYsfo7u8fnTXIeXRt/sQbwR3HZpKTmZJalFunbJXBlbO/2KrjDW3Fl 33v2Bsb3XF2MnBwSAiYS7y5cZ4GwxSQu3FvP1sXIxSEksJRR4u6+kywQzkdGiQ8HFjCDVPEK GEksubyXCcRmEVCVuL5sE1icDWjSsQvTGUFsUYEIifnHXkPVC0r8mHwPbIOIgIbE6lWbmUGG Mgs8YJU4sGYlWJGwgIvEs/cTwWwhgRyJJ19nsoHYnAJmEm/X7gJq5gBq0JO4f1ELJMwsIC+x ec1b5gmMArOQrJiFUDULSdUCRuZVjKKppckFxUnpuYZ6xYm5xaV56XrJ+bmbGCEx/mUH4+Jj VocYBTgYlXh4L5g8ChFiTSwrrsw9xCjBwawkwhsiDRTiTUmsrEotyo8vKs1JLT7EyMTBKdXA yNd8f6b3pr77TT7L7xktvrF6vv7MZtnomJXaWdq5+5Ydb290dLWZMmHrviaujfGr3nRte//s 90veigmeCjdmO250eHgs08rWPenZdIH8x9oVZr1C/WYhLE+aVEo3Wc4Se/CpcLFpvVLskSNu M7IWHBDa2qqW7NEed3Vbhqijb2D5PXb7iIxuJZbijERDLeai4kQAYdGus88CAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1960 Lines: 46 Hello Joonsoo, Thank you for your answer. On 13/02/15 06:03, Joonsoo Kim wrote: > On Fri, Feb 13, 2015 at 01:15:40AM +0300, Stefan Strogin wrote: >> >> Here is an example use case when we need it. We want a big (megabytes) >> CMA buffer to be allocated in runtime in default CMA region. If someone >> already uses CMA then the big allocation can fail. If it happens then with >> such an interface we could find who used CMA at the moment of failure, who >> caused fragmentation (possibly ftrace also would be helpful here) and so on. > > Hello, > > So, I'm not sure that information about allocated CMA buffer is really > needed to solve your problem. You just want to know who uses default CMA > region and you can know it by adding tracepoint in your 4/4 patch. We > really need this custom allocation tracer? What can we do more with > this custom tracer to solve your problem? Could you more specific > about your problem and how to solve it by using this custom tracer? > I think, yes, we could solve the problem using only trace events. We could get all CMA allocations and releases. But if we want to get the current state of CMA region, for example to know actual fragmentation, should we parse the tracer's output or what else? IMHO it would be easier for testers if they have the list of currently allocated buffers right away. >> >> These patches add some files to debugfs when CONFIG_CMA_DEBUGFS is enabled. > > If this tracer is justifiable, I think that making it conditional is > better than just enabling always on CONFIG_CMA_DEBUGFS. Some users > don't want to this feature although they enable CONFIG_CMA_DEBUGFS. > > Thanks. > Thank you. I think, this makes sense because of overhead. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/