Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1508868
| From | Vlastimil Babka <vbabka@suse.cz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v6 3/6] mm/cma: populate ZONE_CMA |
| Date | 2016-10-26 09:30 +0200 |
| Message-ID | <swqOS-pQ-5@gated-at.bofh.it> (permalink) |
| References | <ss12F-45Z-3@gated-at.bofh.it> <ss12F-45Z-9@gated-at.bofh.it> <stxjP-778-1@gated-at.bofh.it> <stxWy-7Ah-1@gated-at.bofh.it> <swoal-76a-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 10/26/2016 06:31 AM, Joonsoo Kim wrote: > Hello, > > Here comes fixed one. > > ----------->8------------ > From 93fb05a83d74f9e2c8caebc2fa6d1a8807c9ffb6 Mon Sep 17 00:00:00 2001 > From: Joonsoo Kim <iamjoonsoo.kim@lge.com> > Date: Thu, 24 Mar 2016 22:29:10 +0900 > Subject: [PATCH] mm/cma: populate ZONE_CMA > > Until now, reserved pages for CMA are managed in the ordinary zones > where page's pfn are belong to. This approach has numorous problems > and fixing them isn't easy. (It is mentioned on previous patch.) > To fix this situation, ZONE_CMA is introduced in previous patch, but, > not yet populated. This patch implement population of ZONE_CMA > by stealing reserved pages from the ordinary zones. > > Unlike previous implementation that kernel allocation request with > __GFP_MOVABLE could be serviced from CMA region, allocation request only > with GFP_HIGHUSER_MOVABLE can be serviced from CMA region in the new > approach. This is an inevitable design decision to use the zone > implementation because ZONE_CMA could contain highmem. Due to this > decision, ZONE_CMA will work like as ZONE_HIGHMEM or ZONE_MOVABLE. > > I don't think it would be a problem because most of file cache pages > and anonymous pages are requested with GFP_HIGHUSER_MOVABLE. It could > be proved by the fact that there are many systems with ZONE_HIGHMEM and > they work fine. Notable disadvantage is that we cannot use these pages > for blockdev file cache page, because it usually has __GFP_MOVABLE but > not __GFP_HIGHMEM and __GFP_USER. But, in this case, there is pros and > cons. In my experience, blockdev file cache pages are one of the top > reason that causes cma_alloc() to fail temporarily. So, we can get more > guarantee of cma_alloc() success by discarding that case. > > Implementation itself is very easy to understand. Steal when cma area is > initialized and recalculate various per zone stat/threshold. > > Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> > Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Acked-by: Vlastimil Babka <vbabka@suse.cz>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v6 3/6] mm/cma: populate ZONE_CMA js1304@gmail.com - 2016-10-14 05:10 +0200
Re: [PATCH v6 3/6] mm/cma: populate ZONE_CMA Vlastimil Babka <vbabka@suse.cz> - 2016-10-18 09:50 +0200
Re: [PATCH v6 3/6] mm/cma: populate ZONE_CMA Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2016-10-18 10:30 +0200
Re: [PATCH v6 3/6] mm/cma: populate ZONE_CMA Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2016-10-26 06:40 +0200
Re: [PATCH v6 3/6] mm/cma: populate ZONE_CMA Vlastimil Babka <vbabka@suse.cz> - 2016-10-26 09:30 +0200
csiph-web