linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Memory hotplug not increasing the total RAM
@ 2018-01-30  8:30 Bharata B Rao
  2018-01-30  9:16 ` Michal Hocko
  0 siblings, 1 reply; 8+ messages in thread
From: Bharata B Rao @ 2018-01-30  8:30 UTC (permalink / raw)
  To: linux-kernel, linux-mm; +Cc: pasha.tatashin

Hi,

With the latest upstream, I see that memory hotplug is not working
as expected. The hotplugged memory isn't seen to increase the total
RAM pages. This has been observed with both x86 and Power guests.

1. Memory hotplug code intially marks pages as PageReserved via
__add_section().
2. Later the struct page gets cleared in __init_single_page().
3. Next online_pages_range() increments totalram_pages only when
   PageReserved is set.

The step 2 has been introduced recently by the following commit:

commit f7f99100d8d95dbcf09e0216a143211e79418b9f
Author: Pavel Tatashin <pasha.tatashin@oracle.com>
Date:   Wed Nov 15 17:36:44 2017 -0800

    mm: stop zeroing memory during allocation in vmemmap
    
Reverting this commit restores the correct behaviour of memory hotplug.

Regards,
Bharata.

--
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] 8+ messages in thread

end of thread, other threads:[~2018-01-30 19:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-30  8:30 Memory hotplug not increasing the total RAM Bharata B Rao
2018-01-30  9:16 ` Michal Hocko
2018-01-30  9:28   ` Michal Hocko
2018-01-30  9:53     ` Bharata B Rao
2018-01-30 10:11       ` Michal Hocko
2018-01-30 18:11         ` Pavel Tatashin
2018-01-30 18:29           ` Michal Hocko
2018-01-30 19:12             ` Pavel Tatashin

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).