Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754222AbbBPTPJ (ORCPT ); Mon, 16 Feb 2015 14:15:09 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:8537 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753812AbbBPTPH (ORCPT ); Mon, 16 Feb 2015 14:15:07 -0500 X-AuditID: cbfec7f5-b7fc86d0000066b7-4e-54e24125ee4b Message-id: <54E241B7.1070709@partner.samsung.com> Date: Mon, 16 Feb 2015 22:15:03 +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 1/4] mm: cma: add currently allocated CMA buffers list to debugfs References: <20150213031012.GH6592@js1304-P5Q-DELUXE> In-reply-to: <20150213031012.GH6592@js1304-P5Q-DELUXE> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLIsWRmVeSWpSXmKPExsVy+t/xa7qqjo9CDN7e0bGYs34Nm8Xj1/NY LD6tfMpm8azpC6PFtOkbWC1WdjezWWzvnMFu0TlxCbvF5V1z2CzurfnParH2yF12iwXHW1gt ln19z25x99RRNou+74fZLSbPlrL4dnIOs8XiI7eZLa7t6GeyuPzmP7vF1Bk/2C1ObjjLarGh mctB3ONyXy+Tx85Zd9k9ZnfMZPXYtKqTzWPTp0nsHl1vrzB5nJjxm8XjwaHNLB7r/rxi8vj4 9BaLx8F3e5g8+rasYvRYsfo7u8fnTXIeXRt/sQbwR3HZpKTmZJalFunbJXBl/GpqZS5YzFJx 4v8s5gbGDcxdjJwcEgImEl8OTGaDsMUkLtxbD2RzcQgJLGWU2Ht7BSuE85FRYvPSHWBVvAJG EttXnAbrZhFQlZjWcYsVxGYDmnTswnRGEFtUIEJi/rHXzBD1ghI/Jt9jAbFFBDQkVq/azAwy lFngAavEgTUrgRwODmGBcIkDP4ohlh1jlNi3cCnYMk4BM4lJr88ygdQwC+hJ3L+oBRJmFpCX 2LzmLfMERoFZSFbMQqiahaRqASPzKkbR1NLkguKk9FwjveLE3OLSvHS95PzcTYyQKP+6g3Hp MatDjAIcjEo8vBdMHoUIsSaWFVfmHmKU4GBWEuENkQYK8aYkVlalFuXHF5XmpBYfYmTi4JRq YBR2ulpwUn3KxXMxD5mtp8katrHZXkxpivZ7Yz5jou3tC2z7TFWalfn8JzPd5DwovL7/dWNt ZhBvfOZ1QakE3jmnYs23+vxx2C1x7/8Jq5AbBuqXFDsXOi18LiRVNTlq7xnO1K97ZFI0c255 TGQvmdHXs29fl43g85vbbGpuzvC3ut9wo0GxW4mlOCPRUIu5qDgRAKMannfQAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 775 Lines: 22 Hello, On 13/02/15 06:10, Joonsoo Kim wrote: > On Fri, Feb 13, 2015 at 01:15:41AM +0300, Stefan Strogin wrote: > > This linear searching make cma_release() slow if we have many allocated > cma buffers. It wouldn't cause any problem? > > Thanks. > > On my board the usual number of CMA buffers is about 20, and releasing a buffer isn't a very frequent operation. But if there could be systems with much more CMA buffers and/or frequent allocating/releasing them, maybe it would be useful to convert buffers list to rb_trees? -- 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/