Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1457518
| From | zhongjiang <zhongjiang@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] mm: fix the incorrect hugepages count |
| Date | 2016-08-08 05:00 +0200 |
| Message-ID | <s3IXg-3Tl-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
From: zhong jiang <zhongjiang@huawei.com> when memory hotplug enable, free hugepages will be freed if movable node offline. therefore, /proc/sys/vm/nr_hugepages will be incorrect. The patch fix it by reduce the max_huge_pages when the node offline. Signed-off-by: zhong jiang <zhongjiang@huawei.com> --- mm/hugetlb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index f904246..3356e3a 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1448,6 +1448,7 @@ static void dissolve_free_huge_page(struct page *page) list_del(&page->lru); h->free_huge_pages--; h->free_huge_pages_node[nid]--; + h->max_huge_pages--; update_and_free_page(h, page); } spin_unlock(&hugetlb_lock); -- 1.8.3.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] mm: fix the incorrect hugepages count zhongjiang <zhongjiang@huawei.com> - 2016-08-08 05:00 +0200
Re: [PATCH] mm: fix the incorrect hugepages count Mike Kravetz <mike.kravetz@oracle.com> - 2016-08-08 19:20 +0200
Re: [PATCH] mm: fix the incorrect hugepages count zhong jiang <zhongjiang@huawei.com> - 2016-08-09 12:40 +0200
Re: [PATCH] mm: fix the incorrect hugepages count Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> - 2016-08-10 02:20 +0200
csiph-web