From: ZhangNeil <neilzhang1123@hotmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH v2] mm: show free pages per each migrate type
Date: Sun, 12 Apr 2015 07:17:11 +0000 [thread overview]
Message-ID: <COL130-W1779F50C23B3E7EA23A707BAF80@phx.gbl> (raw)
In-Reply-To: <20150409212441.a64c3fe0.akpm@linux-foundation.org>
----------------------------------------
> 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
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2015-04-12 7:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-09 2:19 Neil Zhang
2015-04-09 20:47 ` Andrew Morton
2015-04-10 4:16 ` ZhangNeil
2015-04-10 4:24 ` Andrew Morton
2015-04-12 7:17 ` ZhangNeil [this message]
2015-04-12 7:25 ` Andrew Morton
2015-04-11 2:50 ` David Rientjes
2015-04-12 7:02 ` ZhangNeil
2015-04-12 7:08 ` ZhangNeil
2015-04-13 23:42 ` David Rientjes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=COL130-W1779F50C23B3E7EA23A707BAF80@phx.gbl \
--to=neilzhang1123@hotmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox