[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTinLYy3vUp8VPzv=q3br-zBrE239MRpwMAAsmtKD@mail.gmail.com>
Date: Fri, 8 Oct 2010 18:24:23 +0800
From: Dave Young <hidave.darkstar@...il.com>
To: Rusty Russell <rusty@...tcorp.com.au>
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org, avi@...hat.com,
Anthony Liguori <anthony@...emonkey.ws>
Subject: Re: [PATCH] kvm: add oom notifier for virtio balloon
On Wed, Oct 6, 2010 at 9:50 PM, Dave Young <hidave.darkstar@...il.com> wrote:
> On Wed, Oct 6, 2010 at 5:05 PM, Rusty Russell <rusty@...tcorp.com.au> wrote:
>> On Tue, 5 Oct 2010 11:15:21 pm Dave Young wrote:
>>> Balloon could cause guest memory oom killing and panic.
>>>
>>> Add oom notify to leak some memory and retry fill balloon after 5 minutes.
>>
>> Have you tried registering a shrinker? See mm.h.
>
> Hi, thanks. I didn't know shrinker can shrink mem beyond slab. Will try
Hi, rusty
I did some test with shrinker, findings as following:
1. shrinker is for ageable cache shrinking, balloon pages is a different kind
2. oom notifier is a last minute shrink, but shrinker is more conservative.
after my tests of "balloon 30" for a slackware 13.0 guest, free -m in guest
oom notifier results 17M
shrinker results 77M
3. Aside of above use mutex locking in shrinker cause kernel hang, no
idea how to fix it
>
>>
>> Thanks,
>> Rusty.
>>
>
>
>
> --
> Regards
> dave
>
--
Regards
dave
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists