Re: [PATCH] mm/nommu.c:Dynamic alloc/free percpu area for nommu

From: Tejun Heo
Date: Thu Apr 08 2010 - 19:30:30 EST


Hello,

On 04/08/2010 06:40 PM, Sonic Zhang wrote:
> There is memory leak with you patch. Free memory continuously
> decreases when running test_pcpu. After about 30 minutes, kernel hangs
> in out_of_memory().
>
> root/> while [ 1 ]; do modprobe test_pcpu; rmmod test_pcpu; cat
> proc/meminfo; done

Yeap, chunk->map wasn't freed in the original version. In the updated
split version I posted yesterday, it's fixed. Can you please test
that code?

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/