* [LSF/MM ATTEND] 2016: Requests to attend MM-summit
@ 2016-01-22 4:41 Aneesh Kumar K.V
2016-01-22 9:17 ` Balbir Singh
2016-01-22 16:38 ` Johannes Weiner
0 siblings, 2 replies; 13+ messages in thread
From: Aneesh Kumar K.V @ 2016-01-22 4:41 UTC (permalink / raw)
To: lsf-pc, linux-mm
Hi,
I would like to attend LSF/MM this year (2016).
My main interest is in MM related topics although I am also interested
in the btrfs status discussion (particularly related to subpage size block
size topic), if we are having one. Most of my recent work in the kernel is
related to adding ppc64 support for different MM features. My current focus
is on adding Linux support for the new radix MMU model of Power9.
Topics of interest include:
* CMA allocator issues:
(1) order zero allocation failures:
We are observing order zero non-movable allocation failures in kernel
with CMA configured. We don't start a reclaim because our free memory check
does not consider free_cma. Hence the reclaim code assume we have enough free
pages. Joonsoo Kim tried to fix this with his ZOME_CMA patches. I would
like to discuss the challenges in getting this merged upstream.
https://lkml.org/lkml/2015/2/12/95 (ZONE_CMA)
Others needed for the discussion:
Joonsoo Kim <iamjoonsoo.kim@lge.com>
(2) CMA allocation failures due to pinned pages in the region:
We allow only movable allocation from the CMA region to enable us
to migrate those pages later when we get a CMA allocation request. But
if we pin those movable pages, we will fail the migration which can result
in CMA allocation failure. One such report can be found here.
http://article.gmane.org/gmane.linux.kernel.mm/136738
Peter Zijlstra's VM_PINNED patch series should help in fixing the issue. I would
like to discuss what needs to be done to get this patch series merged upstream
https://lkml.org/lkml/2014/5/26/345 (VM_PINNED)
Others needed for the discussion:
Peter Zijlstra <peterz@infradead.org>
* Improvements to tlb flush
Archiectures like ppc64 can do range based tlb flush and for that we need
to know the page size used to map the virtual address range. I would like
to discuss changes to mmu gather and tlb flush api that will help in efficient
implementation of tlb flush for ppc64.
(1) MMU gather improvements
https://github.com/kvaneesh/linux/commit/215b9c7c03bb8d742349e2aefaadcf8cc0c04dd8
https://github.com/kvaneesh/linux/commit/43bd9e91a841bbc9e3c6ee56a4d12ed00019718c
(2) different APIs to flush hugepage tlb mappings.
https://github.com/kvaneesh/linux/commit/b8a78933fea93cb0b2978868e59a0a4b12eb92eb
https://github.com/kvaneesh/linux/commit/049d361a59a3342c2ce5a4feae61dce4974af226
NOTE: I haven't posted these changes yet to the list because of dependent patches getting reviewed. But should
have them available on the list before LSF/MM.
* HMM status (Heterogeneous Memory Management)
I would like to discuss the roadblocks w.r.t merging HMM patchset upstream.
http://article.gmane.org/gmane.linux.kernel.mm/140229
Others needed for the discussion:
Jérôme Glisse <jglisse@redhat.com>
-aneesh
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [LSF/MM ATTEND] 2016: Requests to attend MM-summit
2016-01-22 4:41 [LSF/MM ATTEND] 2016: Requests to attend MM-summit Aneesh Kumar K.V
@ 2016-01-22 9:17 ` Balbir Singh
2016-01-22 14:19 ` [Lsf-pc] " Jan Kara
2016-01-22 16:38 ` Johannes Weiner
1 sibling, 1 reply; 13+ messages in thread
From: Balbir Singh @ 2016-01-22 9:17 UTC (permalink / raw)
To: Aneesh Kumar K.V; +Cc: lsf-pc, linux-mm
On Fri, 22 Jan 2016 10:11:12 +0530
"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> wrote:
> Hi,
>
> I would like to attend LSF/MM this year (2016).
>
> My main interest is in MM related topics although I am also interested
> in the btrfs status discussion (particularly related to subpage size block
> size topic), if we are having one. Most of my recent work in the kernel is
> related to adding ppc64 support for different MM features. My current focus
> is on adding Linux support for the new radix MMU model of Power9.
>
> Topics of interest include:
>
> * CMA allocator issues:
> (1) order zero allocation failures:
> We are observing order zero non-movable allocation failures in kernel
> with CMA configured. We don't start a reclaim because our free memory check
> does not consider free_cma. Hence the reclaim code assume we have enough free
> pages. Joonsoo Kim tried to fix this with his ZOME_CMA patches. I would
> like to discuss the challenges in getting this merged upstream.
> https://lkml.org/lkml/2015/2/12/95 (ZONE_CMA)
>
> Others needed for the discussion:
> Joonsoo Kim <iamjoonsoo.kim@lge.com>
>
> (2) CMA allocation failures due to pinned pages in the region:
> We allow only movable allocation from the CMA region to enable us
> to migrate those pages later when we get a CMA allocation request. But
> if we pin those movable pages, we will fail the migration which can result
> in CMA allocation failure. One such report can be found here.
> http://article.gmane.org/gmane.linux.kernel.mm/136738
>
> Peter Zijlstra's VM_PINNED patch series should help in fixing the issue. I would
> like to discuss what needs to be done to get this patch series merged upstream
> https://lkml.org/lkml/2014/5/26/345 (VM_PINNED)
>
> Others needed for the discussion:
> Peter Zijlstra <peterz@infradead.org>
+1
I agree CMA design is a concern. I also noticed that today all CMA pages come
from one node. On a NUMA box you'll see cross traffic going to that region -
although from kernel only text. It should be discussed at the summit and Aneesh
would be a good representative
Balbir Singh.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Lsf-pc] [LSF/MM ATTEND] 2016: Requests to attend MM-summit
2016-01-22 9:17 ` Balbir Singh
@ 2016-01-22 14:19 ` Jan Kara
2016-01-22 18:18 ` Laura Abbott
0 siblings, 1 reply; 13+ messages in thread
From: Jan Kara @ 2016-01-22 14:19 UTC (permalink / raw)
To: Balbir Singh; +Cc: Aneesh Kumar K.V, linux-mm, lsf-pc
On Fri 22-01-16 20:17:07, Balbir Singh wrote:
> On Fri, 22 Jan 2016 10:11:12 +0530
> "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> wrote:
>
> > Hi,
> >
> > I would like to attend LSF/MM this year (2016).
> >
> > My main interest is in MM related topics although I am also interested
> > in the btrfs status discussion (particularly related to subpage size block
> > size topic), if we are having one. Most of my recent work in the kernel is
> > related to adding ppc64 support for different MM features. My current focus
> > is on adding Linux support for the new radix MMU model of Power9.
> >
> > Topics of interest include:
> >
> > * CMA allocator issues:
> > (1) order zero allocation failures:
> > We are observing order zero non-movable allocation failures in kernel
> > with CMA configured. We don't start a reclaim because our free memory check
> > does not consider free_cma. Hence the reclaim code assume we have enough free
> > pages. Joonsoo Kim tried to fix this with his ZOME_CMA patches. I would
> > like to discuss the challenges in getting this merged upstream.
> > https://lkml.org/lkml/2015/2/12/95 (ZONE_CMA)
> >
> > Others needed for the discussion:
> > Joonsoo Kim <iamjoonsoo.kim@lge.com>
> >
> > (2) CMA allocation failures due to pinned pages in the region:
> > We allow only movable allocation from the CMA region to enable us
> > to migrate those pages later when we get a CMA allocation request. But
> > if we pin those movable pages, we will fail the migration which can result
> > in CMA allocation failure. One such report can be found here.
> > http://article.gmane.org/gmane.linux.kernel.mm/136738
> >
> > Peter Zijlstra's VM_PINNED patch series should help in fixing the issue. I would
> > like to discuss what needs to be done to get this patch series merged upstream
> > https://lkml.org/lkml/2014/5/26/345 (VM_PINNED)
> >
> > Others needed for the discussion:
> > Peter Zijlstra <peterz@infradead.org>
>
> +1
>
> I agree CMA design is a concern. I also noticed that today all CMA pages come
> from one node. On a NUMA box you'll see cross traffic going to that region -
> although from kernel only text. It should be discussed at the summit and Aneesh
> would be a good representative
I'm not really an mm guy but CMA has been discussed already last year, and
I think even the year before... Are we moving somewhere? So if this is
about hashing out what blocks VM_PINNED series (I think it may be just a
lack of Peter's persistence in pushing it ;) then that looks like a
sensible goal. Some other CMA architecture discussions need IMHO a more
concrete proposals...
Honza
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [LSF/MM ATTEND] 2016: Requests to attend MM-summit
2016-01-22 4:41 [LSF/MM ATTEND] 2016: Requests to attend MM-summit Aneesh Kumar K.V
2016-01-22 9:17 ` Balbir Singh
@ 2016-01-22 16:38 ` Johannes Weiner
2016-01-25 7:08 ` Joonsoo Kim
2016-01-27 18:32 ` Peter Zijlstra
1 sibling, 2 replies; 13+ messages in thread
From: Johannes Weiner @ 2016-01-22 16:38 UTC (permalink / raw)
To: Aneesh Kumar K.V; +Cc: lsf-pc, linux-mm, Joonsoo Kim, Peter Zijlstra
Hi,
On Fri, Jan 22, 2016 at 10:11:12AM +0530, Aneesh Kumar K.V wrote:
> * CMA allocator issues:
> (1) order zero allocation failures:
> We are observing order zero non-movable allocation failures in kernel
> with CMA configured. We don't start a reclaim because our free memory check
> does not consider free_cma. Hence the reclaim code assume we have enough free
> pages. Joonsoo Kim tried to fix this with his ZOME_CMA patches. I would
> like to discuss the challenges in getting this merged upstream.
> https://lkml.org/lkml/2015/2/12/95 (ZONE_CMA)
The exclusion of cma pages from the watermark checks means that
reclaim is happening too early, not too late, which leaves memory
underutilized. That's what ZONE_CMA set out to fix.
But unmovable allocations can still fail when the only free memory is
inside CMA regions. I don't see how ZONE_CMA would fix that.
CC Joonsoo
But as Jan said, we discussed ZONE_CMA before, so it's not clear
whether rehashing it without new data points would be too useful.
> Others needed for the discussion:
> Joonsoo Kim <iamjoonsoo.kim@lge.com>
>
> (2) CMA allocation failures due to pinned pages in the region:
> We allow only movable allocation from the CMA region to enable us
> to migrate those pages later when we get a CMA allocation request. But
> if we pin those movable pages, we will fail the migration which can result
> in CMA allocation failure. One such report can be found here.
> http://article.gmane.org/gmane.linux.kernel.mm/136738
>
> Peter Zijlstra's VM_PINNED patch series should help in fixing the issue. I would
> like to discuss what needs to be done to get this patch series merged upstream
> https://lkml.org/lkml/2014/5/26/345 (VM_PINNED)
>
> Others needed for the discussion:
> Peter Zijlstra <peterz@infradead.org>
There was no consensus whether this specific implementation would work
well for all sources of pinning. Giving this some time in the MM track
could be useful.
CC Peter
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Lsf-pc] [LSF/MM ATTEND] 2016: Requests to attend MM-summit
2016-01-22 14:19 ` [Lsf-pc] " Jan Kara
@ 2016-01-22 18:18 ` Laura Abbott
2016-01-27 19:07 ` Vlastimil Babka
2016-01-28 9:33 ` Aneesh Kumar K.V
0 siblings, 2 replies; 13+ messages in thread
From: Laura Abbott @ 2016-01-22 18:18 UTC (permalink / raw)
To: Jan Kara, Balbir Singh; +Cc: Aneesh Kumar K.V, linux-mm, lsf-pc
On 01/22/2016 06:19 AM, Jan Kara wrote:
> On Fri 22-01-16 20:17:07, Balbir Singh wrote:
>> On Fri, 22 Jan 2016 10:11:12 +0530
>> "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> wrote:
>>
>>> Hi,
>>>
>>> I would like to attend LSF/MM this year (2016).
>>>
>>> My main interest is in MM related topics although I am also interested
>>> in the btrfs status discussion (particularly related to subpage size block
>>> size topic), if we are having one. Most of my recent work in the kernel is
>>> related to adding ppc64 support for different MM features. My current focus
>>> is on adding Linux support for the new radix MMU model of Power9.
>>>
>>> Topics of interest include:
>>>
>>> * CMA allocator issues:
>>> (1) order zero allocation failures:
>>> We are observing order zero non-movable allocation failures in kernel
>>> with CMA configured. We don't start a reclaim because our free memory check
>>> does not consider free_cma. Hence the reclaim code assume we have enough free
>>> pages. Joonsoo Kim tried to fix this with his ZOME_CMA patches. I would
>>> like to discuss the challenges in getting this merged upstream.
>>> https://lkml.org/lkml/2015/2/12/95 (ZONE_CMA)
>>>
>>> Others needed for the discussion:
>>> Joonsoo Kim <iamjoonsoo.kim@lge.com>
>>>
>>> (2) CMA allocation failures due to pinned pages in the region:
>>> We allow only movable allocation from the CMA region to enable us
>>> to migrate those pages later when we get a CMA allocation request. But
>>> if we pin those movable pages, we will fail the migration which can result
>>> in CMA allocation failure. One such report can be found here.
>>> http://article.gmane.org/gmane.linux.kernel.mm/136738
>>>
>>> Peter Zijlstra's VM_PINNED patch series should help in fixing the issue. I would
>>> like to discuss what needs to be done to get this patch series merged upstream
>>> https://lkml.org/lkml/2014/5/26/345 (VM_PINNED)
>>>
>>> Others needed for the discussion:
>>> Peter Zijlstra <peterz@infradead.org>
>>
>> +1
>>
>> I agree CMA design is a concern. I also noticed that today all CMA pages come
>> from one node. On a NUMA box you'll see cross traffic going to that region -
>> although from kernel only text. It should be discussed at the summit and Aneesh
>> would be a good representative
>
> I'm not really an mm guy but CMA has been discussed already last year, and
> I think even the year before... Are we moving somewhere? So if this is
> about hashing out what blocks VM_PINNED series (I think it may be just a
> lack of Peter's persistence in pushing it ;) then that looks like a
> sensible goal. Some other CMA architecture discussions need IMHO a more
> concrete proposals...
>
> Honza
>
The conclusion from the CMA session last year was that pinned pages need to be
fixed up at the caller sites doing the pinning. Each caller site really needs
to be taken individually. I think the discussion last year was good but if
it's going to end up with a different conclusion I agree there needs to be
concrete proposals.
Something that could be worth discussing as well is Joonsoo Kim's proposal for
page reference tracking http://thread.gmane.org/gmane.linux.kernel.api/16138
Thanks,
Laura
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [LSF/MM ATTEND] 2016: Requests to attend MM-summit
2016-01-22 16:38 ` Johannes Weiner
@ 2016-01-25 7:08 ` Joonsoo Kim
2016-01-25 23:37 ` Laura Abbott
2016-01-28 9:43 ` Aneesh Kumar K.V
2016-01-27 18:32 ` Peter Zijlstra
1 sibling, 2 replies; 13+ messages in thread
From: Joonsoo Kim @ 2016-01-25 7:08 UTC (permalink / raw)
To: Johannes Weiner
Cc: Aneesh Kumar K.V, lsf-pc, Linux Memory Management List,
Joonsoo Kim, Peter Zijlstra
Hello,
2016-01-23 1:38 GMT+09:00 Johannes Weiner <hannes@cmpxchg.org>:
> Hi,
>
> On Fri, Jan 22, 2016 at 10:11:12AM +0530, Aneesh Kumar K.V wrote:
>> * CMA allocator issues:
>> (1) order zero allocation failures:
>> We are observing order zero non-movable allocation failures in kernel
>> with CMA configured. We don't start a reclaim because our free memory check
>> does not consider free_cma. Hence the reclaim code assume we have enough free
>> pages. Joonsoo Kim tried to fix this with his ZOME_CMA patches. I would
>> like to discuss the challenges in getting this merged upstream.
>> https://lkml.org/lkml/2015/2/12/95 (ZONE_CMA)
As far as I know, there is no disagreement on this patchset in last year LSF/MM.
Problem may be due to my laziness... Sorry about that. I will handle it soon.
Is there anything more that you concern?
> The exclusion of cma pages from the watermark checks means that
> reclaim is happening too early, not too late, which leaves memory
> underutilized. That's what ZONE_CMA set out to fix.
>
> But unmovable allocations can still fail when the only free memory is
> inside CMA regions. I don't see how ZONE_CMA would fix that.
>
> CC Joonsoo
I understand what Aneesh's problem is.
Assume that
X = non movable free page
Y = movable free page
Z = cma free page
X < min watermark
X + Y > high watermark
Z > high watermark
If there are bunch of consecutive movable allocation requests,
Y will decrease. After some time, Y will be exhausted. At that
time, there is enough Z so movable allocation request still can be
handled in fastpath and kswapd isn't waked up. In that situation,
if atomic non-movable page allocation for order-0 comes,
it would be failed.
Although it isn't mentioned on ZONE_CMA patchset, it is also
fixed by that patchset because with that patchset, all CMA pages
are in CMA zone so freepage calculation is always precise.
Thanks.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [LSF/MM ATTEND] 2016: Requests to attend MM-summit
2016-01-25 7:08 ` Joonsoo Kim
@ 2016-01-25 23:37 ` Laura Abbott
2016-01-26 7:38 ` Joonsoo Kim
2016-01-28 9:43 ` Aneesh Kumar K.V
1 sibling, 1 reply; 13+ messages in thread
From: Laura Abbott @ 2016-01-25 23:37 UTC (permalink / raw)
To: Joonsoo Kim, Johannes Weiner
Cc: Aneesh Kumar K.V, lsf-pc, Linux Memory Management List,
Joonsoo Kim, Peter Zijlstra
On 01/24/2016 11:08 PM, Joonsoo Kim wrote:
> Hello,
>
> 2016-01-23 1:38 GMT+09:00 Johannes Weiner <hannes@cmpxchg.org>:
>> Hi,
>>
>> On Fri, Jan 22, 2016 at 10:11:12AM +0530, Aneesh Kumar K.V wrote:
>>> * CMA allocator issues:
>>> (1) order zero allocation failures:
>>> We are observing order zero non-movable allocation failures in kernel
>>> with CMA configured. We don't start a reclaim because our free memory check
>>> does not consider free_cma. Hence the reclaim code assume we have enough free
>>> pages. Joonsoo Kim tried to fix this with his ZOME_CMA patches. I would
>>> like to discuss the challenges in getting this merged upstream.
>>> https://lkml.org/lkml/2015/2/12/95 (ZONE_CMA)
>
> As far as I know, there is no disagreement on this patchset in last year LSF/MM.
> Problem may be due to my laziness... Sorry about that. I will handle it soon.
> Is there anything more that you concern?
>
Is that series going to conflict with the work done for ZONE_DEVICE or run
into similar problems?
033fbae988fcb67e5077203512181890848b8e90 (mm: ZONE_DEVICE for "device memory")
has commit text about running out of ZONE_SHIFT bits and needing to get
rid of ZONE_DMA instead so it seems like ZONE_CMA would run into the same
problem.
Thanks,
Laura
>> The exclusion of cma pages from the watermark checks means that
>> reclaim is happening too early, not too late, which leaves memory
>> underutilized. That's what ZONE_CMA set out to fix.
>>
>> But unmovable allocations can still fail when the only free memory is
>> inside CMA regions. I don't see how ZONE_CMA would fix that.
>>
>> CC Joonsoo
>
> I understand what Aneesh's problem is.
>
> Assume that
>
> X = non movable free page
> Y = movable free page
> Z = cma free page
>
> X < min watermark
> X + Y > high watermark
> Z > high watermark
>
> If there are bunch of consecutive movable allocation requests,
> Y will decrease. After some time, Y will be exhausted. At that
> time, there is enough Z so movable allocation request still can be
> handled in fastpath and kswapd isn't waked up. In that situation,
> if atomic non-movable page allocation for order-0 comes,
> it would be failed.
>
> Although it isn't mentioned on ZONE_CMA patchset, it is also
> fixed by that patchset because with that patchset, all CMA pages
> are in CMA zone so freepage calculation is always precise.
>
> Thanks.
>
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@kvack.org. For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [LSF/MM ATTEND] 2016: Requests to attend MM-summit
2016-01-25 23:37 ` Laura Abbott
@ 2016-01-26 7:38 ` Joonsoo Kim
2016-01-26 18:53 ` Vlastimil Babka
0 siblings, 1 reply; 13+ messages in thread
From: Joonsoo Kim @ 2016-01-26 7:38 UTC (permalink / raw)
To: Laura Abbott
Cc: Johannes Weiner, Aneesh Kumar K.V, lsf-pc,
Linux Memory Management List, Peter Zijlstra
On Mon, Jan 25, 2016 at 03:37:06PM -0800, Laura Abbott wrote:
> On 01/24/2016 11:08 PM, Joonsoo Kim wrote:
> >Hello,
> >
> >2016-01-23 1:38 GMT+09:00 Johannes Weiner <hannes@cmpxchg.org>:
> >>Hi,
> >>
> >>On Fri, Jan 22, 2016 at 10:11:12AM +0530, Aneesh Kumar K.V wrote:
> >>>* CMA allocator issues:
> >>> (1) order zero allocation failures:
> >>> We are observing order zero non-movable allocation failures in kernel
> >>>with CMA configured. We don't start a reclaim because our free memory check
> >>>does not consider free_cma. Hence the reclaim code assume we have enough free
> >>>pages. Joonsoo Kim tried to fix this with his ZOME_CMA patches. I would
> >>>like to discuss the challenges in getting this merged upstream.
> >>>https://lkml.org/lkml/2015/2/12/95 (ZONE_CMA)
> >
> >As far as I know, there is no disagreement on this patchset in last year LSF/MM.
> >Problem may be due to my laziness... Sorry about that. I will handle it soon.
> >Is there anything more that you concern?
> >
>
> Is that series going to conflict with the work done for ZONE_DEVICE or run
> into similar problems?
> 033fbae988fcb67e5077203512181890848b8e90 (mm: ZONE_DEVICE for "device memory")
> has commit text about running out of ZONE_SHIFT bits and needing to get
> rid of ZONE_DMA instead so it seems like ZONE_CMA would run into the same
> problem.
Hmm... I'm not sure. I need a investigation. What I did before is
enlarging section size. Then, number of section is reduced and we need
less section bit in struct page's flag. This worked for my sparsemem
configuration but I'm not sure other conguration. Perhaps, in other
congifuration, we can limit node bits and max number of node.
Thanks.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [LSF/MM ATTEND] 2016: Requests to attend MM-summit
2016-01-26 7:38 ` Joonsoo Kim
@ 2016-01-26 18:53 ` Vlastimil Babka
0 siblings, 0 replies; 13+ messages in thread
From: Vlastimil Babka @ 2016-01-26 18:53 UTC (permalink / raw)
To: Joonsoo Kim, Laura Abbott
Cc: Johannes Weiner, Aneesh Kumar K.V, lsf-pc,
Linux Memory Management List, Peter Zijlstra
On 26.1.2016 8:38, Joonsoo Kim wrote:
> On Mon, Jan 25, 2016 at 03:37:06PM -0800, Laura Abbott wrote:
>>
>> Is that series going to conflict with the work done for ZONE_DEVICE or run
>> into similar problems?
>> 033fbae988fcb67e5077203512181890848b8e90 (mm: ZONE_DEVICE for "device memory")
>> has commit text about running out of ZONE_SHIFT bits and needing to get
>> rid of ZONE_DMA instead so it seems like ZONE_CMA would run into the same
>> problem.
>
> Hmm... I'm not sure. I need a investigation. What I did before is
> enlarging section size. Then, number of section is reduced and we need
> less section bit in struct page's flag. This worked for my sparsemem
> configuration but I'm not sure other conguration. Perhaps, in other
> congifuration, we can limit node bits and max number of node.
This seems to be a solution proposed for the ZONE_DMA and ZONE_DEVICE
coexistence https://lkml.org/lkml/2016/1/25/1233
It wouldn't help with ZONE_CMA, so I guess it's time to look for a more robust one.
> Thanks.
>
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@kvack.org. For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [LSF/MM ATTEND] 2016: Requests to attend MM-summit
2016-01-22 16:38 ` Johannes Weiner
2016-01-25 7:08 ` Joonsoo Kim
@ 2016-01-27 18:32 ` Peter Zijlstra
1 sibling, 0 replies; 13+ messages in thread
From: Peter Zijlstra @ 2016-01-27 18:32 UTC (permalink / raw)
To: Johannes Weiner; +Cc: Aneesh Kumar K.V, lsf-pc, linux-mm, Joonsoo Kim
On Fri, Jan 22, 2016 at 11:38:01AM -0500, Johannes Weiner wrote:
> >
> > Peter Zijlstra's VM_PINNED patch series should help in fixing the issue. I would
> > like to discuss what needs to be done to get this patch series merged upstream
> > https://lkml.org/lkml/2014/5/26/345 (VM_PINNED)
> >
> > Others needed for the discussion:
> > Peter Zijlstra <peterz@infradead.org>
>
> There was no consensus whether this specific implementation would work
> well for all sources of pinning. Giving this some time in the MM track
> could be useful.
I got stuck and lost in IB land. But that was a fair while ago. I should
probably look at rebasing it against something recent, although I
seriuosly doubt I can get through IB this time.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Lsf-pc] [LSF/MM ATTEND] 2016: Requests to attend MM-summit
2016-01-22 18:18 ` Laura Abbott
@ 2016-01-27 19:07 ` Vlastimil Babka
2016-01-28 9:33 ` Aneesh Kumar K.V
1 sibling, 0 replies; 13+ messages in thread
From: Vlastimil Babka @ 2016-01-27 19:07 UTC (permalink / raw)
To: Laura Abbott, Jan Kara, Balbir Singh
Cc: Aneesh Kumar K.V, linux-mm, lsf-pc, Peter Zijlstra, Joonsoo Kim
On 01/22/2016 07:18 PM, Laura Abbott wrote:
> On 01/22/2016 06:19 AM, Jan Kara wrote:
>> On Fri 22-01-16 20:17:07, Balbir Singh wrote:
>>> On Fri, 22 Jan 2016 10:11:12 +0530
>>> "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> wrote:
>>>
>>>
>>> +1
>>>
>>> I agree CMA design is a concern. I also noticed that today all CMA pages come
>>> from one node. On a NUMA box you'll see cross traffic going to that region -
>>> although from kernel only text. It should be discussed at the summit and Aneesh
>>> would be a good representative
>>
>> I'm not really an mm guy but CMA has been discussed already last year, and
>> I think even the year before... Are we moving somewhere? So if this is
>> about hashing out what blocks VM_PINNED series (I think it may be just a
>> lack of Peter's persistence in pushing it ;) then that looks like a
>> sensible goal. Some other CMA architecture discussions need IMHO a more
>> concrete proposals...
>>
>> Honza
>>
>
> The conclusion from the CMA session last year was that pinned pages need to be
> fixed up at the caller sites doing the pinning. Each caller site really needs
> to be taken individually. I think the discussion last year was good but if
> it's going to end up with a different conclusion I agree there needs to be
> concrete proposals.
>
> Something that could be worth discussing as well is Joonsoo Kim's proposal for
> page reference tracking http://thread.gmane.org/gmane.linux.kernel.api/16138
I think indentifying the pinners and actually doing something about them, are
different things. The tracking might help with the identification. Maybe some
pins can be removed as found to be unneeded, but VM_PINNED infrastructure should
help with dealing with the genuine ones - IIRC the idea was that prior to
(relatively long-term) pinning, the pages would be migrated away from MOVABLE or
CMA pageblocks to reduce fragmentation/allow CMA allocations succeed. Otherwise
the only other option I see for genuine long-term pins is to pre-emptively
allocate such pages as UNMOVABLE. A waste in case it's a large class of pages
where only a subset of them (not known upfront) is going to be pinned. What if
the class is e.g. "userspace-mapped pages"?
> Thanks,
> Laura
>
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@kvack.org. For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Lsf-pc] [LSF/MM ATTEND] 2016: Requests to attend MM-summit
2016-01-22 18:18 ` Laura Abbott
2016-01-27 19:07 ` Vlastimil Babka
@ 2016-01-28 9:33 ` Aneesh Kumar K.V
1 sibling, 0 replies; 13+ messages in thread
From: Aneesh Kumar K.V @ 2016-01-28 9:33 UTC (permalink / raw)
To: Laura Abbott, Jan Kara, Balbir Singh; +Cc: linux-mm, lsf-pc
Laura Abbott <labbott@redhat.com> writes:
> On 01/22/2016 06:19 AM, Jan Kara wrote:
>> On Fri 22-01-16 20:17:07, Balbir Singh wrote:
>>> On Fri, 22 Jan 2016 10:11:12 +0530
>>> "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I would like to attend LSF/MM this year (2016).
>>>>
>>>> My main interest is in MM related topics although I am also interested
>>>> in the btrfs status discussion (particularly related to subpage size block
>>>> size topic), if we are having one. Most of my recent work in the kernel is
>>>> related to adding ppc64 support for different MM features. My current focus
>>>> is on adding Linux support for the new radix MMU model of Power9.
>>>>
>>>> Topics of interest include:
>>>>
>>>> * CMA allocator issues:
>>>> (1) order zero allocation failures:
>>>> We are observing order zero non-movable allocation failures in kernel
>>>> with CMA configured. We don't start a reclaim because our free memory check
>>>> does not consider free_cma. Hence the reclaim code assume we have enough free
>>>> pages. Joonsoo Kim tried to fix this with his ZOME_CMA patches. I would
>>>> like to discuss the challenges in getting this merged upstream.
>>>> https://lkml.org/lkml/2015/2/12/95 (ZONE_CMA)
>>>>
>>>> Others needed for the discussion:
>>>> Joonsoo Kim <iamjoonsoo.kim@lge.com>
>>>>
>>>> (2) CMA allocation failures due to pinned pages in the region:
>>>> We allow only movable allocation from the CMA region to enable us
>>>> to migrate those pages later when we get a CMA allocation request. But
>>>> if we pin those movable pages, we will fail the migration which can result
>>>> in CMA allocation failure. One such report can be found here.
>>>> http://article.gmane.org/gmane.linux.kernel.mm/136738
>>>>
>>>> Peter Zijlstra's VM_PINNED patch series should help in fixing the issue. I would
>>>> like to discuss what needs to be done to get this patch series merged upstream
>>>> https://lkml.org/lkml/2014/5/26/345 (VM_PINNED)
>>>>
>>>> Others needed for the discussion:
>>>> Peter Zijlstra <peterz@infradead.org>
>>>
>>> +1
>>>
>>> I agree CMA design is a concern. I also noticed that today all CMA pages come
>>> from one node. On a NUMA box you'll see cross traffic going to that region -
>>> although from kernel only text. It should be discussed at the summit and Aneesh
>>> would be a good representative
>>
>> I'm not really an mm guy but CMA has been discussed already last year, and
>> I think even the year before... Are we moving somewhere? So if this is
>> about hashing out what blocks VM_PINNED series (I think it may be just a
>> lack of Peter's persistence in pushing it ;) then that looks like a
>> sensible goal. Some other CMA architecture discussions need IMHO a more
>> concrete proposals...
>>
>> Honza
>>
>
> The conclusion from the CMA session last year was that pinned pages need to be
> fixed up at the caller sites doing the pinning. Each caller site really needs
> to be taken individually. I think the discussion last year was good but if
> it's going to end up with a different conclusion I agree there needs to be
> concrete proposals.
But that was not what was suggested in the kvm guest ram pin due to vfio
thread I linked above. I think we still need to have an agreement on
whether the callers should be migrating the pages or a generic framework
like VM_PINNED is needed.
>
> Something that could be worth discussing as well is Joonsoo Kim's proposal for
> page reference tracking http://thread.gmane.org/gmane.linux.kernel.api/16138
>
> Thanks,
> Laura
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [LSF/MM ATTEND] 2016: Requests to attend MM-summit
2016-01-25 7:08 ` Joonsoo Kim
2016-01-25 23:37 ` Laura Abbott
@ 2016-01-28 9:43 ` Aneesh Kumar K.V
1 sibling, 0 replies; 13+ messages in thread
From: Aneesh Kumar K.V @ 2016-01-28 9:43 UTC (permalink / raw)
To: Joonsoo Kim, Johannes Weiner
Cc: lsf-pc, Linux Memory Management List, Joonsoo Kim, Peter Zijlstra
Joonsoo Kim <js1304@gmail.com> writes:
> Hello,
>
> 2016-01-23 1:38 GMT+09:00 Johannes Weiner <hannes@cmpxchg.org>:
>> Hi,
>>
>> On Fri, Jan 22, 2016 at 10:11:12AM +0530, Aneesh Kumar K.V wrote:
>>> * CMA allocator issues:
>>> (1) order zero allocation failures:
>>> We are observing order zero non-movable allocation failures in kernel
>>> with CMA configured. We don't start a reclaim because our free memory check
>>> does not consider free_cma. Hence the reclaim code assume we have enough free
>>> pages. Joonsoo Kim tried to fix this with his ZOME_CMA patches. I would
>>> like to discuss the challenges in getting this merged upstream.
>>> https://lkml.org/lkml/2015/2/12/95 (ZONE_CMA)
>
> As far as I know, there is no disagreement on this patchset in last year LSF/MM.
> Problem may be due to my laziness... Sorry about that. I will handle it soon.
> Is there anything more that you concern?
>
>> The exclusion of cma pages from the watermark checks means that
>> reclaim is happening too early, not too late, which leaves memory
>> underutilized. That's what ZONE_CMA set out to fix.
>>
>> But unmovable allocations can still fail when the only free memory is
>> inside CMA regions. I don't see how ZONE_CMA would fix that.
>>
>> CC Joonsoo
>
> I understand what Aneesh's problem is.
>
> Assume that
>
> X = non movable free page
> Y = movable free page
> Z = cma free page
>
> X < min watermark
> X + Y > high watermark
> Z > high watermark
>
> If there are bunch of consecutive movable allocation requests,
> Y will decrease. After some time, Y will be exhausted. At that
> time, there is enough Z so movable allocation request still can be
> handled in fastpath and kswapd isn't waked up. In that situation,
> if atomic non-movable page allocation for order-0 comes,
> it would be failed.
>
> Although it isn't mentioned on ZONE_CMA patchset, it is also
> fixed by that patchset because with that patchset, all CMA pages
> are in CMA zone so freepage calculation is always precise.
>
That is the issue I am hitting and if we don't have any blocker against
ZONE_CMA then we can drop this topic.
-aneesh
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2016-01-28 9:44 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-22 4:41 [LSF/MM ATTEND] 2016: Requests to attend MM-summit Aneesh Kumar K.V
2016-01-22 9:17 ` Balbir Singh
2016-01-22 14:19 ` [Lsf-pc] " Jan Kara
2016-01-22 18:18 ` Laura Abbott
2016-01-27 19:07 ` Vlastimil Babka
2016-01-28 9:33 ` Aneesh Kumar K.V
2016-01-22 16:38 ` Johannes Weiner
2016-01-25 7:08 ` Joonsoo Kim
2016-01-25 23:37 ` Laura Abbott
2016-01-26 7:38 ` Joonsoo Kim
2016-01-26 18:53 ` Vlastimil Babka
2016-01-28 9:43 ` Aneesh Kumar K.V
2016-01-27 18:32 ` Peter Zijlstra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).