Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2015-01-22 Thread Joonsoo Kim
On Wed, Jan 21, 2015 at 04:52:36PM +0300, Stefan Strogin wrote: > Sorry for such a long delay. Now I'll try to answer all the questions > and make a second version. > > The original reason of why we need a new debugging tool for CMA is > written by Minchan

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2015-01-22 Thread Stefan Strogin
Hello Pavel, On 02/01/15 08:11, Pavel Machek wrote: > On Mon 2014-12-29 11:36:39, Minchan Kim wrote: >> Hello, >> >> On Fri, Dec 26, 2014 at 05:39:01PM +0300, Stefan I. Strogin wrote: >>> Hello all, >>> >>> Here is a patch set that adds /proc/cmainfo. >>> >>> When compiled with CONFIG_CMA_DEBUG

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2015-01-22 Thread Stefan Strogin
Hello Pavel, On 02/01/15 08:11, Pavel Machek wrote: On Mon 2014-12-29 11:36:39, Minchan Kim wrote: Hello, On Fri, Dec 26, 2014 at 05:39:01PM +0300, Stefan I. Strogin wrote: Hello all, Here is a patch set that adds /proc/cmainfo. When compiled with CONFIG_CMA_DEBUG /proc/cmainfo will

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2015-01-22 Thread Joonsoo Kim
On Wed, Jan 21, 2015 at 04:52:36PM +0300, Stefan Strogin wrote: Sorry for such a long delay. Now I'll try to answer all the questions and make a second version. The original reason of why we need a new debugging tool for CMA is written by Minchan

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2015-01-21 Thread Stefan Strogin
Sorry for such a long delay. Now I'll try to answer all the questions and make a second version. The original reason of why we need a new debugging tool for CMA is written by Minchan (http://www.spinics.net/lists/linux-mm/msg81519.html): > 3. CMA allocation latency -> Broken > 4. CMA allocation

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2015-01-21 Thread Stefan Strogin
Sorry for such a long delay. Now I'll try to answer all the questions and make a second version. The original reason of why we need a new debugging tool for CMA is written by Minchan (http://www.spinics.net/lists/linux-mm/msg81519.html): 3. CMA allocation latency - Broken 4. CMA allocation

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2015-01-12 Thread Minchan Kim
Hello, Steven, On Fri, Jan 09, 2015 at 09:19:04AM -0500, Steven Rostedt wrote: > > Wow, too much work over the holidays ;-) Pretend to be diligent. > > > On Tue, 30 Dec 2014 13:47:26 +0900 > Minchan Kim wrote: > > > > Then, I don't think we could keep all of allocations. What we need > >

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2015-01-12 Thread Minchan Kim
Hello, Steven, On Fri, Jan 09, 2015 at 09:19:04AM -0500, Steven Rostedt wrote: Wow, too much work over the holidays ;-) Pretend to be diligent. On Tue, 30 Dec 2014 13:47:26 +0900 Minchan Kim minc...@kernel.org wrote: Then, I don't think we could keep all of allocations. What we

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2015-01-09 Thread Steven Rostedt
On Fri, 9 Jan 2015 09:19:04 -0500 Steven Rostedt wrote: > task: <...>-2880 > Event: func: __kmalloc() (74) Total: 53254 Avg: 719 Max: 1095 Min:481 I forgot to mention that all times are in nanoseconds (or whatever the trace clock is set at). > | > + ftrace_ops_list_func

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2015-01-09 Thread Steven Rostedt
Wow, too much work over the holidays ;-) On Tue, 30 Dec 2014 13:47:26 +0900 Minchan Kim wrote: > Then, I don't think we could keep all of allocations. What we need > is only slow allocations. I hope we can do that with ftrace. > > ex) > > # cd /sys/kernel/debug/tracing > # echo 1 >

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2015-01-09 Thread Steven Rostedt
Wow, too much work over the holidays ;-) On Tue, 30 Dec 2014 13:47:26 +0900 Minchan Kim minc...@kernel.org wrote: Then, I don't think we could keep all of allocations. What we need is only slow allocations. I hope we can do that with ftrace. ex) # cd /sys/kernel/debug/tracing # echo

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2015-01-09 Thread Steven Rostedt
On Fri, 9 Jan 2015 09:19:04 -0500 Steven Rostedt rost...@goodmis.org wrote: task: ...-2880 Event: func: __kmalloc() (74) Total: 53254 Avg: 719 Max: 1095 Min:481 I forgot to mention that all times are in nanoseconds (or whatever the trace clock is set at). | +

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2015-01-01 Thread Pavel Machek
On Mon 2014-12-29 11:36:39, Minchan Kim wrote: > Hello, > > On Fri, Dec 26, 2014 at 05:39:01PM +0300, Stefan I. Strogin wrote: > > Hello all, > > > > Here is a patch set that adds /proc/cmainfo. > > > > When compiled with CONFIG_CMA_DEBUG /proc/cmainfo will contain information > > about about

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2015-01-01 Thread Pavel Machek
On Mon 2014-12-29 11:36:39, Minchan Kim wrote: Hello, On Fri, Dec 26, 2014 at 05:39:01PM +0300, Stefan I. Strogin wrote: Hello all, Here is a patch set that adds /proc/cmainfo. When compiled with CONFIG_CMA_DEBUG /proc/cmainfo will contain information about about total, used,

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-30 Thread Minchan Kim
On Wed, Dec 31, 2014 at 03:47:59PM +0900, Namhyung Kim wrote: > Hello, > > On Wed, Dec 31, 2014 at 09:58:04AM +0900, Gioh Kim wrote: > > 2014-12-30 오후 1:47에 Minchan Kim 이(가) 쓴 글: > > >On Mon, Dec 29, 2014 at 11:52:58AM -0800, Laura Abbott wrote: > > >>I've been meaning to write something like

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-30 Thread Namhyung Kim
Hello, On Wed, Dec 31, 2014 at 09:58:04AM +0900, Gioh Kim wrote: > 2014-12-30 오후 1:47에 Minchan Kim 이(가) 쓴 글: > >On Mon, Dec 29, 2014 at 11:52:58AM -0800, Laura Abbott wrote: > >>I've been meaning to write something like this for a while so I'm > >>happy to see an attempt made to fix this. I can't

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-30 Thread Gioh Kim
2014-12-31 오전 11:18에 Minchan Kim 이(가) 쓴 글: Hey, Gioh On Wed, Dec 31, 2014 at 09:58:04AM +0900, Gioh Kim wrote: 2014-12-30 오후 1:47에 Minchan Kim 이(가) 쓴 글: On Mon, Dec 29, 2014 at 11:52:58AM -0800, Laura Abbott wrote: On 12/28/2014 6:36 PM, Minchan Kim wrote: Hello, On Fri, Dec 26, 2014

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-30 Thread Minchan Kim
Hey, Gioh On Wed, Dec 31, 2014 at 09:58:04AM +0900, Gioh Kim wrote: > > > 2014-12-30 오후 1:47에 Minchan Kim 이(가) 쓴 글: > >On Mon, Dec 29, 2014 at 11:52:58AM -0800, Laura Abbott wrote: > >>On 12/28/2014 6:36 PM, Minchan Kim wrote: > >>>Hello, > >>> > >>>On Fri, Dec 26, 2014 at 05:39:01PM +0300,

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-30 Thread Gioh Kim
2014-12-30 오후 1:47에 Minchan Kim 이(가) 쓴 글: On Mon, Dec 29, 2014 at 11:52:58AM -0800, Laura Abbott wrote: On 12/28/2014 6:36 PM, Minchan Kim wrote: Hello, On Fri, Dec 26, 2014 at 05:39:01PM +0300, Stefan I. Strogin wrote: Hello all, Here is a patch set that adds /proc/cmainfo. When

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-30 Thread Minchan Kim
On Tue, Dec 30, 2014 at 02:00:27PM -0800, Laura Abbott wrote: > On 12/29/2014 8:47 PM, Minchan Kim wrote: > >> > >> > >>I've been meaning to write something like this for a while so I'm > >>happy to see an attempt made to fix this. I can't speak for the > >>author's reasons for wanting this

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-30 Thread Laura Abbott
On 12/29/2014 8:47 PM, Minchan Kim wrote: I've been meaning to write something like this for a while so I'm happy to see an attempt made to fix this. I can't speak for the author's reasons for wanting this information but there are several reasons why I was thinking of something similar. The

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-30 Thread Laura Abbott
On 12/29/2014 8:47 PM, Minchan Kim wrote: I've been meaning to write something like this for a while so I'm happy to see an attempt made to fix this. I can't speak for the author's reasons for wanting this information but there are several reasons why I was thinking of something similar. The

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-30 Thread Minchan Kim
On Tue, Dec 30, 2014 at 02:00:27PM -0800, Laura Abbott wrote: On 12/29/2014 8:47 PM, Minchan Kim wrote: I've been meaning to write something like this for a while so I'm happy to see an attempt made to fix this. I can't speak for the author's reasons for wanting this information but there

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-30 Thread Gioh Kim
2014-12-30 오후 1:47에 Minchan Kim 이(가) 쓴 글: On Mon, Dec 29, 2014 at 11:52:58AM -0800, Laura Abbott wrote: On 12/28/2014 6:36 PM, Minchan Kim wrote: Hello, On Fri, Dec 26, 2014 at 05:39:01PM +0300, Stefan I. Strogin wrote: Hello all, Here is a patch set that adds /proc/cmainfo. When

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-30 Thread Minchan Kim
Hey, Gioh On Wed, Dec 31, 2014 at 09:58:04AM +0900, Gioh Kim wrote: 2014-12-30 오후 1:47에 Minchan Kim 이(가) 쓴 글: On Mon, Dec 29, 2014 at 11:52:58AM -0800, Laura Abbott wrote: On 12/28/2014 6:36 PM, Minchan Kim wrote: Hello, On Fri, Dec 26, 2014 at 05:39:01PM +0300, Stefan I. Strogin

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-30 Thread Gioh Kim
2014-12-31 오전 11:18에 Minchan Kim 이(가) 쓴 글: Hey, Gioh On Wed, Dec 31, 2014 at 09:58:04AM +0900, Gioh Kim wrote: 2014-12-30 오후 1:47에 Minchan Kim 이(가) 쓴 글: On Mon, Dec 29, 2014 at 11:52:58AM -0800, Laura Abbott wrote: On 12/28/2014 6:36 PM, Minchan Kim wrote: Hello, On Fri, Dec 26, 2014

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-30 Thread Namhyung Kim
Hello, On Wed, Dec 31, 2014 at 09:58:04AM +0900, Gioh Kim wrote: 2014-12-30 오후 1:47에 Minchan Kim 이(가) 쓴 글: On Mon, Dec 29, 2014 at 11:52:58AM -0800, Laura Abbott wrote: I've been meaning to write something like this for a while so I'm happy to see an attempt made to fix this. I can't speak

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-30 Thread Minchan Kim
On Wed, Dec 31, 2014 at 03:47:59PM +0900, Namhyung Kim wrote: Hello, On Wed, Dec 31, 2014 at 09:58:04AM +0900, Gioh Kim wrote: 2014-12-30 오후 1:47에 Minchan Kim 이(가) 쓴 글: On Mon, Dec 29, 2014 at 11:52:58AM -0800, Laura Abbott wrote: I've been meaning to write something like this for a

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-29 Thread Minchan Kim
On Mon, Dec 29, 2014 at 11:52:58AM -0800, Laura Abbott wrote: > On 12/28/2014 6:36 PM, Minchan Kim wrote: > >Hello, > > > >On Fri, Dec 26, 2014 at 05:39:01PM +0300, Stefan I. Strogin wrote: > >>Hello all, > >> > >>Here is a patch set that adds /proc/cmainfo. > >> > >>When compiled with

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-29 Thread Laura Abbott
On 12/28/2014 6:36 PM, Minchan Kim wrote: Hello, On Fri, Dec 26, 2014 at 05:39:01PM +0300, Stefan I. Strogin wrote: Hello all, Here is a patch set that adds /proc/cmainfo. When compiled with CONFIG_CMA_DEBUG /proc/cmainfo will contain information about about total, used, maximum free

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-29 Thread Laura Abbott
On 12/28/2014 6:36 PM, Minchan Kim wrote: Hello, On Fri, Dec 26, 2014 at 05:39:01PM +0300, Stefan I. Strogin wrote: Hello all, Here is a patch set that adds /proc/cmainfo. When compiled with CONFIG_CMA_DEBUG /proc/cmainfo will contain information about about total, used, maximum free

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-29 Thread Minchan Kim
On Mon, Dec 29, 2014 at 11:52:58AM -0800, Laura Abbott wrote: On 12/28/2014 6:36 PM, Minchan Kim wrote: Hello, On Fri, Dec 26, 2014 at 05:39:01PM +0300, Stefan I. Strogin wrote: Hello all, Here is a patch set that adds /proc/cmainfo. When compiled with CONFIG_CMA_DEBUG /proc/cmainfo

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-28 Thread Minchan Kim
Hello, On Fri, Dec 26, 2014 at 05:39:01PM +0300, Stefan I. Strogin wrote: > Hello all, > > Here is a patch set that adds /proc/cmainfo. > > When compiled with CONFIG_CMA_DEBUG /proc/cmainfo will contain information > about about total, used, maximum free contiguous chunk and all currently >

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-28 Thread Minchan Kim
Hello, On Fri, Dec 26, 2014 at 05:39:01PM +0300, Stefan I. Strogin wrote: Hello all, Here is a patch set that adds /proc/cmainfo. When compiled with CONFIG_CMA_DEBUG /proc/cmainfo will contain information about about total, used, maximum free contiguous chunk and all currently allocated

[PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-26 Thread Stefan I. Strogin
Hello all, Here is a patch set that adds /proc/cmainfo. When compiled with CONFIG_CMA_DEBUG /proc/cmainfo will contain information about about total, used, maximum free contiguous chunk and all currently allocated contiguous buffers in CMA regions. The information about allocated CMA buffers

[PATCH 0/3] mm: cma: /proc/cmainfo

2014-12-26 Thread Stefan I. Strogin
Hello all, Here is a patch set that adds /proc/cmainfo. When compiled with CONFIG_CMA_DEBUG /proc/cmainfo will contain information about about total, used, maximum free contiguous chunk and all currently allocated contiguous buffers in CMA regions. The information about allocated CMA buffers