[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <50B82A7C.8020202@cn.fujitsu.com>
Date: Fri, 30 Nov 2012 11:39:40 +0800
From: Lin Feng <linfeng@...fujitsu.com>
To: Zach Brown <zab@...bo.net>
CC: Andrew Morton <akpm@...ux-foundation.org>, viro@...iv.linux.org.uk,
bcrl@...ck.org, kamezawa.hiroyu@...fujitsu.com, mhocko@...e.cz,
hughd@...gle.com, cl@...ux.com, mgorman@...e.de,
minchan@...nel.org, isimatu.yasuaki@...fujitsu.com,
laijs@...fujitsu.com, wency@...fujitsu.com,
tangchen@...fujitsu.com, linux-fsdevel@...r.kernel.org,
linux-aio@...ck.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [BUG REPORT] [mm-hotplug, aio] aio ring_pages can't be offlined
Hi Zach,
Thanks for your advice. So agree, I will look into it to lead aio
to use non-movable pages.
Thanks,
linfeng
On 11/30/2012 08:04 AM, Zach Brown wrote:
>> The best I can think of is to make changes in or around
>> get_user_pages(), to steal the pages from userspace and replace them
>> with non-movable ones before pinning them. The performance cost of
>> something like this would surely be unacceptable for direct-io, but
>> maybe OK for the aio ring and futexes.
>
> In the aio case it seems like it could be taught to populate the mapping
> with non-movable pages to begin with. It's calling get_user_pages() a
> few lines after instantiating the mapping itself with do_mmap_pgoff().
>
> - z
>
--
--------------------------------------------------
Lin Feng
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road,
Nanjing, 210012, China
PHONE:+86-25-86630566-8557
COINS:7998-8557
FAX:+86-25-83317685
MAIL:linfeng@...fujitsu.com
--------------------------------------------------
--
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