Re: Kswapd in 3.2.0-rc5 is a CPU hog

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 27, 2011 at 8:20 AM, KAMEZAWA Hiroyuki
<kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote:
> On Mon, 26 Dec 2011 20:35:46 +0800
> Hillf Danton <dhillf@xxxxxxxxx> wrote:
>
>> On Sun, Dec 25, 2011 at 6:21 PM, Nikolay S. <nowhere@xxxxxxxxxxxxxxxx> wrote:
>> >
>> > Uhm.., is this patch against 3.2-rc4? I can not apply it. There's no
>> > mem_cgroup_lru_del_list(), but void mem_cgroup_del_lru_list(). Should I
>> > place changes there?
>> >
>> > And also, -rc7 is here. May the problem be addressed as part of some
>> > ongoing work? Is there any reason to try -rc7 (the problem requires
>> > several days of uptime to become obvious)?
>> >
>>
>> Sorry, Nikolay, it is not based on the -next, nor on the -rc5(I assumed it was).
>> The following is based on -next, and if you want to test -rc5, please
>> grep MEM_CGROUP_ZSTAT mm/memcontrol.c and change it.
>>
>> Best regard
>>
>
> Hmm ? memcg is used ? Why do you consider this will be a help ?
>

Hi Kame

Please see the livelock at
        https://lkml.org/lkml/2011/12/23/222

and if it is related to the hog here, please check if the following is
in right direction.

Thanks
Hillf
---

--- a/mm/memcontrol.c	Mon Dec 26 20:34:38 2011
+++ b/mm/memcontrol.c	Tue Dec 27 20:05:12 2011
@@ -3637,6 +3637,7 @@ static int mem_cgroup_force_empty_list(s
 	list = &mz->lruvec.lists[lru];

 	loop = MEM_CGROUP_ZSTAT(mz, lru);
+	WARN_ON((long)loop < 0);
 	/* give some margin against EBUSY etc...*/
 	loop += 256;
 	busy = NULL;

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]