Re: [PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-15 Thread Gioh Kim
2014-07-15 오전 5:37, Andrew Morton 쓴 글: On Mon, 14 Jul 2014 16:02:25 +0900 Joonsoo Kim wrote: On Tue, Jul 08, 2014 at 06:46:31PM +0200, Michal Nazarewicz wrote: On Mon, Jul 07 2014, Andrew Morton wrote: What I proposed is that CMA call invalidate_bh_lrus() right at the outset. Something

Re: [PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-15 Thread Gioh Kim
2014-07-15 오전 5:37, Andrew Morton 쓴 글: On Mon, 14 Jul 2014 16:02:25 +0900 Joonsoo Kim iamjoonsoo@lge.com wrote: On Tue, Jul 08, 2014 at 06:46:31PM +0200, Michal Nazarewicz wrote: On Mon, Jul 07 2014, Andrew Morton a...@linux-foundation.org wrote: What I proposed is that CMA call

Re: [PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-14 Thread Andrew Morton
On Mon, 14 Jul 2014 16:02:25 +0900 Joonsoo Kim wrote: > On Tue, Jul 08, 2014 at 06:46:31PM +0200, Michal Nazarewicz wrote: > > On Mon, Jul 07 2014, Andrew Morton wrote: > > > What I proposed is that CMA call invalidate_bh_lrus() right at the > > > outset. Something along the lines of > > > > >

Re: [PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-14 Thread Michal Nazarewicz
On Mon, Jul 14 2014, Joonsoo Kim wrote: > On Tue, Jul 08, 2014 at 06:46:31PM +0200, Michal Nazarewicz wrote: >> This seems reasonable, except I think [invalidate_bh_lrus()] should >> go after start_isolate_page_range call because otherwise there's no >> guarantee that someone won't grab those

Re: [PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-14 Thread Joonsoo Kim
On Tue, Jul 08, 2014 at 06:46:31PM +0200, Michal Nazarewicz wrote: > On Mon, Jul 07 2014, Andrew Morton wrote: > > What I proposed is that CMA call invalidate_bh_lrus() right at the > > outset. Something along the lines of > > > > --- a/mm/page_alloc.c~a > > +++ a/mm/page_alloc.c > > @@ -6329,6

Re: [PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-14 Thread Joonsoo Kim
On Tue, Jul 08, 2014 at 06:46:31PM +0200, Michal Nazarewicz wrote: On Mon, Jul 07 2014, Andrew Morton a...@linux-foundation.org wrote: What I proposed is that CMA call invalidate_bh_lrus() right at the outset. Something along the lines of --- a/mm/page_alloc.c~a +++ a/mm/page_alloc.c

Re: [PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-14 Thread Michal Nazarewicz
On Mon, Jul 14 2014, Joonsoo Kim iamjoonsoo@lge.com wrote: On Tue, Jul 08, 2014 at 06:46:31PM +0200, Michal Nazarewicz wrote: This seems reasonable, except I think [invalidate_bh_lrus()] should go after start_isolate_page_range call because otherwise there's no guarantee that someone won't

Re: [PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-14 Thread Andrew Morton
On Mon, 14 Jul 2014 16:02:25 +0900 Joonsoo Kim iamjoonsoo@lge.com wrote: On Tue, Jul 08, 2014 at 06:46:31PM +0200, Michal Nazarewicz wrote: On Mon, Jul 07 2014, Andrew Morton a...@linux-foundation.org wrote: What I proposed is that CMA call invalidate_bh_lrus() right at the outset.

Re: [PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-08 Thread Michal Nazarewicz
On Mon, Jul 07 2014, Andrew Morton wrote: > What I proposed is that CMA call invalidate_bh_lrus() right at the > outset. Something along the lines of > > --- a/mm/page_alloc.c~a > +++ a/mm/page_alloc.c > @@ -6329,6 +6329,14 @@ int alloc_contig_range(unsigned long sta > }; >

Re: [PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-08 Thread Michal Nazarewicz
On Mon, Jul 07 2014, Andrew Morton a...@linux-foundation.org wrote: What I proposed is that CMA call invalidate_bh_lrus() right at the outset. Something along the lines of --- a/mm/page_alloc.c~a +++ a/mm/page_alloc.c @@ -6329,6 +6329,14 @@ int alloc_contig_range(unsigned long sta };

Re: [PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-07 Thread Andrew Morton
On Tue, 08 Jul 2014 13:44:04 +0900 Gioh Kim wrote: > 2014-07-08 __ 7:52, Andrew Morton ___ ___: > > On Fri, 04 Jul 2014 17:25:09 +0900 Gioh Kim wrote: > > > >> From: Gioh Kim > >> Date: Fri, 4 Jul 2014 16:53:22 +0900 > >> Subject: [PATCH] [R

Re: [PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-07 Thread Gioh Kim
It's my fault. I'm going to send another patch ASAP. 2014-07-08 오전 7:52, Andrew Morton 쓴 글: On Fri, 04 Jul 2014 17:25:09 +0900 Gioh Kim wrote: From: Gioh Kim Date: Fri, 4 Jul 2014 16:53:22 +0900 Subject: [PATCH] [RFC] CMA: clear buffer-head lru before page migration When CMA try

Re: [PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-07 Thread Andrew Morton
On Fri, 04 Jul 2014 17:25:09 +0900 Gioh Kim wrote: > From: Gioh Kim > Date: Fri, 4 Jul 2014 16:53:22 +0900 > Subject: [PATCH] [RFC] CMA: clear buffer-head lru before page migration > > When CMA try to migrate page, some buffer-heads can exist on lru. > The bh on lru has non-z

Re: [PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-07 Thread Andrew Morton
On Fri, 04 Jul 2014 17:25:09 +0900 Gioh Kim gioh@lge.com wrote: From: Gioh Kim gioh@lge.com Date: Fri, 4 Jul 2014 16:53:22 +0900 Subject: [PATCH] [RFC] CMA: clear buffer-head lru before page migration When CMA try to migrate page, some buffer-heads can exist on lru. The bh on lru

Re: [PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-07 Thread Gioh Kim
It's my fault. I'm going to send another patch ASAP. 2014-07-08 오전 7:52, Andrew Morton 쓴 글: On Fri, 04 Jul 2014 17:25:09 +0900 Gioh Kim gioh@lge.com wrote: From: Gioh Kim gioh@lge.com Date: Fri, 4 Jul 2014 16:53:22 +0900 Subject: [PATCH] [RFC] CMA: clear buffer-head lru before page

Re: [PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-07 Thread Andrew Morton
buffer-head lru before page migration When CMA try to migrate page, some buffer-heads can exist on lru. The bh on lru has non-zero count value so that it cannot be dropped even-if it is not used. We can drop only buffers related to the migrated page, but it can take long time more than

[PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-04 Thread Gioh Kim
< - >From d90cd3d13b73f7278c60d8fe625840664adcbb6a Mon Sep 17 00:00:00 2001 From: Gioh Kim Date: Fri, 4 Jul 2014 16:53:22 +0900 Subject: [PATCH] [RFC] CMA: clear buffer-head lru before page migration When CMA try to migrate page, some buffer-heads can exist on lru. The bh

[PATCH] [RFC] CMA: clear buffer-head lru before page migration

2014-07-04 Thread Gioh Kim
- From d90cd3d13b73f7278c60d8fe625840664adcbb6a Mon Sep 17 00:00:00 2001 From: Gioh Kim gioh@lge.com Date: Fri, 4 Jul 2014 16:53:22 +0900 Subject: [PATCH] [RFC] CMA: clear buffer-head lru before page migration When CMA try to migrate page, some buffer-heads can exist on lru