Re: [BUG REPORT] [mm-hotplug, aio] aio ring_pages can't be offlined

From: Lin Feng
Date: Sun Dec 02 2012 - 21:05:12 EST


hi Domenico,

Sorry for my late reply and thanks for your attention, see below :)

On 11/30/2012 11:24 PM, Domenico Andreoli wrote:
> On Thu, Nov 29, 2012 at 02:54:58PM +0800, Lin Feng wrote:
>> Hi all,
>
> Hi Lin,
>
>> We encounter a "Resource temporarily unavailable" fail while trying
>> to offline a memory section in a movable zone. We found that there are
>> some pages can't be migrated. The offline operation fails in function
>> migrate_page_move_mapping() returning -EAGAIN till timeout because
>> the if assertion 'page_count(page) != 1' fails.
>
> is this something that worked before? if yes (then it's a regression)
> do you know with which kernel?

I think it's a problem exist long ago since we got the offline feature,
while I'm not sure from which version :)

It can only be reproduce by a zone-movable configured system holding
pages allocated by get_user_pages() for a long time.

Maybe we could also reproduce it by write a app just calls io_setup()
syscall and never release until it dies. Then locate the memory section
from which pages are allocated and try to offline it.

In fact if one doesn't want to use offline/hotplug memory feature,
to whom it's not a bug :)

Thanks,
linfeng
>
> Thanks,
> Domenico
>
--
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/