Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1427216
| From | Chen Feng <puck.chen@hisilicon.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 0/6] Introduce ZONE_CMA |
| Date | 2016-06-21 04:20 +0200 |
| Message-ID | <rMjse-85d-13@gated-at.bofh.it> (permalink) |
| References | (3 earlier) <rDjrr-8iY-7@gated-at.bofh.it> <rDjKN-8ri-1@gated-at.bofh.it> <rDknw-rU-1@gated-at.bofh.it> <rKWHp-3Cb-51@gated-at.bofh.it> <rM1vk-58f-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2016/6/20 14:48, Joonsoo Kim wrote: > On Fri, Jun 17, 2016 at 03:38:49PM +0800, Chen Feng wrote: >> Hi Kim & feng, >> >> Thanks for the share. In our platform also has the same use case. >> >> We only let the alloc with GFP_HIGHUSER_MOVABLE in memory.c to use cma memory. >> >> If we add zone_cma, It seems can resolve the cma migrate issue. >> >> But when free_hot_cold_page, we need let the cma page goto system directly not the pcp. >> It can be fail while cma_alloc and cma_release. If we alloc the whole cma pages which >> declared before. > > Hmm...I'm not sure I understand your explanation. So, if I miss > something, please let me know. We calls drain_all_pages() when > isolating pageblock and alloc_contig_range() also has one > drain_all_pages() calls to drain pcp pages. And, after pageblock isolation, > freed pages belonging to MIGRATE_ISOLATE pageblock will go to the > buddy directly so there would be no problem you mentioned. Isn't it? > Yes, you are right. I mean if the we free cma page to pcp-list, it will goto the migrate_movable list. Then the alloc with movable flag can use the cma memory from the list with buffered_rmqueue. But that's not what we want. It will cause the migrate fail if all movable alloc can use cma memory. If I am wrong, please correct me. Thanks. > Thanks. > > . >
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v3 0/6] Introduce ZONE_CMA Chen Feng <puck.chen@hisilicon.com> - 2016-06-17 09:50 +0200
Re: [PATCH v3 0/6] Introduce ZONE_CMA Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2016-06-20 09:10 +0200
Re: [PATCH v3 0/6] Introduce ZONE_CMA Chen Feng <puck.chen@hisilicon.com> - 2016-06-21 04:20 +0200
Re: [PATCH v3 0/6] Introduce ZONE_CMA Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2016-06-21 09:00 +0200
csiph-web