lkml.org 
[lkml]   [2015]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v2] mm: show free pages per each migrate type
Date


----------------------------------------
> Date: Thu, 9 Apr 2015 21:24:41 -0700
> From: akpm@linux-foundation.org
> To: neilzhang1123@hotmail.com
> CC: linux-mm@kvack.org; linux-kernel@vger.kernel.org
> Subject: Re: [PATCH v2] mm: show free pages per each migrate type
>
> On Fri, 10 Apr 2015 04:16:15 +0000 ZhangNeil <neilzhang1123@hotmail.com> wrote:
>
>>> I think we can eliminate nr_free[][]:
>>
>> what about make it as global__variable?
>
> That isn't as good - it permanently consumes memory and really requires
> new locking to protect the array from concurrent callers.
>

Then it may need to change the code a lot.

BTW:
I calculate the nr_free[][] again, it is an 6x11 array of 8 in the worst case, that is 528B, is it acceptable?

Best Regards,
Neil Zhang

\
 
 \ /
  Last update: 2015-04-12 09:41    [W:0.065 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site