* Re: [PATCH] mm/memcg: add unlikely to mercg->move_charge_at_immigrate
@ 2012-06-18 13:19 ` Wanpeng Li
0 siblings, 0 replies; 15+ messages in thread
From: Wanpeng Li @ 2012-06-18 13:19 UTC (permalink / raw)
To: Glauber Costa
Cc: Johannes Weiner, Michal Hocko, Balbir Singh, KAMEZAWA Hiroyuki,
cgroups, linux-mm, linux-kernel, Gavin Shan, Wanpeng Li
On Mon, Jun 18, 2012 at 05:09:36PM +0400, Glauber Costa wrote:
>On 06/18/2012 05:10 PM, Wanpeng Li wrote:
>>From: Wanpeng Li <liwp@linux.vnet.ibm.com>
>>
>>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."
Best Regards,
Wanpeng Li
>--
>To unsubscribe from this list: send the line "unsubscribe cgroups" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] mm/memcg: add unlikely to mercg->move_charge_at_immigrate
@ 2012-06-18 13:19 ` Wanpeng Li
0 siblings, 0 replies; 15+ messages in thread
From: Wanpeng Li @ 2012-06-18 13:19 UTC (permalink / raw)
To: Glauber Costa
Cc: Johannes Weiner, Michal Hocko, Balbir Singh, KAMEZAWA Hiroyuki,
cgroups, linux-mm, linux-kernel, Gavin Shan, Wanpeng Li
On Mon, Jun 18, 2012 at 05:09:36PM +0400, Glauber Costa wrote:
>On 06/18/2012 05:10 PM, Wanpeng Li wrote:
>>From: Wanpeng Li <liwp@linux.vnet.ibm.com>
>>
>>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."
Best Regards,
Wanpeng Li
>--
>To unsubscribe from this list: send the line "unsubscribe cgroups" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
--
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>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] mm/memcg: add unlikely to mercg->move_charge_at_immigrate
2012-06-18 13:19 ` Wanpeng Li
(?)
@ 2012-06-18 13:19 ` Glauber Costa
-1 siblings, 0 replies; 15+ messages in thread
From: Glauber Costa @ 2012-06-18 13:19 UTC (permalink / raw)
To: Wanpeng Li
Cc: Johannes Weiner, Michal Hocko, Balbir Singh, KAMEZAWA Hiroyuki,
cgroups-u79uwXL29TY76Z2rM5mHXA, linux-mm-Bw31MaZKKs3YtjvyW6yDsg,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Gavin Shan
On 06/18/2012 05:19 PM, Wanpeng Li wrote:
> On Mon, Jun 18, 2012 at 05:09:36PM +0400, Glauber Costa wrote:
>> On 06/18/2012 05:10 PM, Wanpeng Li wrote:
>>> From: Wanpeng Li <liwp-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
>>>
>>> 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."
>
Again, do you have any reason to optimize that ?
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] mm/memcg: add unlikely to mercg->move_charge_at_immigrate
@ 2012-06-18 13:19 ` Glauber Costa
0 siblings, 0 replies; 15+ messages in thread
From: Glauber Costa @ 2012-06-18 13:19 UTC (permalink / raw)
To: Wanpeng Li
Cc: Johannes Weiner, Michal Hocko, Balbir Singh, KAMEZAWA Hiroyuki,
cgroups, linux-mm, linux-kernel, Gavin Shan
On 06/18/2012 05:19 PM, Wanpeng Li wrote:
> On Mon, Jun 18, 2012 at 05:09:36PM +0400, Glauber Costa wrote:
>> On 06/18/2012 05:10 PM, Wanpeng Li wrote:
>>> From: Wanpeng Li <liwp@linux.vnet.ibm.com>
>>>
>>> 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."
>
Again, do you have any reason to optimize that ?
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] mm/memcg: add unlikely to mercg->move_charge_at_immigrate
@ 2012-06-18 13:19 ` Glauber Costa
0 siblings, 0 replies; 15+ messages in thread
From: Glauber Costa @ 2012-06-18 13:19 UTC (permalink / raw)
To: Wanpeng Li
Cc: Johannes Weiner, Michal Hocko, Balbir Singh, KAMEZAWA Hiroyuki,
cgroups, linux-mm, linux-kernel, Gavin Shan
On 06/18/2012 05:19 PM, Wanpeng Li wrote:
> On Mon, Jun 18, 2012 at 05:09:36PM +0400, Glauber Costa wrote:
>> On 06/18/2012 05:10 PM, Wanpeng Li wrote:
>>> From: Wanpeng Li <liwp@linux.vnet.ibm.com>
>>>
>>> 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."
>
Again, do you have any reason to optimize that ?
--
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>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] mm/memcg: add unlikely to mercg->move_charge_at_immigrate
2012-06-18 13:19 ` Wanpeng Li
(?)
@ 2012-06-19 0:02 ` Kamezawa Hiroyuki
-1 siblings, 0 replies; 15+ messages in thread
From: Kamezawa Hiroyuki @ 2012-06-19 0:02 UTC (permalink / raw)
To: Wanpeng Li
Cc: Glauber Costa, Johannes Weiner, Michal Hocko, Balbir Singh,
cgroups-u79uwXL29TY76Z2rM5mHXA, linux-mm-Bw31MaZKKs3YtjvyW6yDsg,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Gavin Shan
(2012/06/18 22:19), Wanpeng Li wrote:
> On Mon, Jun 18, 2012 at 05:09:36PM +0400, Glauber Costa wrote:
>> On 06/18/2012 05:10 PM, Wanpeng Li wrote:
>>> From: Wanpeng Li<liwp-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
>>>
>>> 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] mm/memcg: add unlikely to mercg->move_charge_at_immigrate
@ 2012-06-19 0:02 ` Kamezawa Hiroyuki
0 siblings, 0 replies; 15+ messages in thread
From: Kamezawa Hiroyuki @ 2012-06-19 0:02 UTC (permalink / raw)
To: Wanpeng Li
Cc: Glauber Costa, Johannes Weiner, Michal Hocko, Balbir Singh,
cgroups, linux-mm, linux-kernel, Gavin Shan
(2012/06/18 22:19), Wanpeng Li wrote:
> On Mon, Jun 18, 2012 at 05:09:36PM +0400, Glauber Costa wrote:
>> On 06/18/2012 05:10 PM, Wanpeng Li wrote:
>>> From: Wanpeng Li<liwp@linux.vnet.ibm.com>
>>>
>>> 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] mm/memcg: add unlikely to mercg->move_charge_at_immigrate
@ 2012-06-19 0:02 ` Kamezawa Hiroyuki
0 siblings, 0 replies; 15+ messages in thread
From: Kamezawa Hiroyuki @ 2012-06-19 0:02 UTC (permalink / raw)
To: Wanpeng Li
Cc: Glauber Costa, Johannes Weiner, Michal Hocko, Balbir Singh,
cgroups, linux-mm, linux-kernel, Gavin Shan
(2012/06/18 22:19), Wanpeng Li wrote:
> On Mon, Jun 18, 2012 at 05:09:36PM +0400, Glauber Costa wrote:
>> On 06/18/2012 05:10 PM, Wanpeng Li wrote:
>>> From: Wanpeng Li<liwp@linux.vnet.ibm.com>
>>>
>>> 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
--
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>
^ permalink raw reply [flat|nested] 15+ messages in thread