Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1739726
| From | Hui Zhu <zhuhui@xiaomi.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC 2/2] Change limit of HighAtomic from 1% to 10% |
| Date | 2017-09-26 11:10 +0200 |
| Message-ID | <utU2m-2KN-21@gated-at.bofh.it> (permalink) |
| References | <utU2m-2KN-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
After "Try to use HighAtomic if try to alloc umovable page that order is not 0". The result is still not very well because the the limit of HighAtomic make kernel cannot reserve more pageblock to HighAtomic. The patch change max_managed from 1% to 10% make HighAtomic can get more pageblocks. Signed-off-by: Hui Zhu <zhuhui@xiaomi.com> --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index b54e94a..9322458 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2101,7 +2101,7 @@ static void reserve_highatomic_pageblock(struct page *page, struct zone *zone, * Limit the number reserved to 1 pageblock or roughly 1% of a zone. * Check is race-prone but harmless. */ - max_managed = (zone->managed_pages / 100) + pageblock_nr_pages; + max_managed = (zone->managed_pages / 10) + pageblock_nr_pages; if (zone->nr_reserved_highatomic >= max_managed) return; -- 1.9.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[RFC 2/2] Change limit of HighAtomic from 1% to 10% Hui Zhu <zhuhui@xiaomi.com> - 2017-09-26 11:10 +0200
csiph-web