Thread (5 messages) 5 messages, 3 authors, 2012-06-19

Re: [PATCH] mm/memcg: add unlikely to mercg->move_charge_at_immigrate

From: Kamezawa Hiroyuki <hidden>
Date: 2012-06-19 00:05:25
Also in: linux-mm, lkml

(2012/06/18 22:19), Wanpeng Li wrote:
On Mon, Jun 18, 2012 at 05:09:36PM +0400, Glauber Costa wrote:
quoted
On 06/18/2012 05:10 PM, Wanpeng Li wrote:
quoted
From: Wanpeng Li<redacted>

move_charge_at_immigrate feature is disabled by default. Charges
are moved only when you move mm->owner and it also add additional
overhead.
How big is this overhead?

That's hardly a fast path. And if it happens to matter, it will be
just bigger when you enable it, and the compiler start giving the
wrong hints to the code.
Thank you for your quick response.

Oh, Maybe I should just write comments "move_charge_at_immigrate feature
is disabled by default. So add "unlikely", in order to compiler can optimize."
This doesn't affect the performance. likely/unlikely which doesn't affect
performance is never welcomed.

Thanks,
-Kame
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help