Re: [RFC PATCH 0/5] mm, memory_hotplug: allocate memmap from hotadded memory

2017-08-01 Thread Michal Hocko
On Mon 31-07-17 19:58:30, Gerald Schaefer wrote: > On Mon, 31 Jul 2017 17:53:50 +0200 > Michal Hocko wrote: > > > On Mon 31-07-17 17:04:59, Gerald Schaefer wrote: [...] > > > Well, it still looks like we cannot do w/o splitting up add_memory(): > > > 1) (only) set up section map during our initia

Re: [RFC PATCH 0/5] mm, memory_hotplug: allocate memmap from hotadded memory

2017-08-01 Thread Igor Mammedov
On Mon, 31 Jul 2017 19:58:30 +0200 Gerald Schaefer wrote: > On Mon, 31 Jul 2017 17:53:50 +0200 > Michal Hocko wrote: > > > On Mon 31-07-17 17:04:59, Gerald Schaefer wrote: > > > On Mon, 31 Jul 2017 14:53:19 +0200 > > > Michal Hocko wrote: > > > > > > > On Mon 31-07-17 14:35:21, Gerald Sch

Re: [RFC PATCH 0/5] mm, memory_hotplug: allocate memmap from hotadded memory

2017-07-31 Thread Gerald Schaefer
On Mon, 31 Jul 2017 17:53:50 +0200 Michal Hocko wrote: > On Mon 31-07-17 17:04:59, Gerald Schaefer wrote: > > On Mon, 31 Jul 2017 14:53:19 +0200 > > Michal Hocko wrote: > > > > > On Mon 31-07-17 14:35:21, Gerald Schaefer wrote: > > > > On Fri, 28 Jul 2017 14:19:41 +0200 > > > > Michal Hocko wr

Re: [RFC PATCH 0/5] mm, memory_hotplug: allocate memmap from hotadded memory

2017-07-31 Thread Michal Hocko
On Mon 31-07-17 17:04:59, Gerald Schaefer wrote: > On Mon, 31 Jul 2017 14:53:19 +0200 > Michal Hocko wrote: > > > On Mon 31-07-17 14:35:21, Gerald Schaefer wrote: > > > On Fri, 28 Jul 2017 14:19:41 +0200 > > > Michal Hocko wrote: > > > > > > > On Thu 27-07-17 08:56:52, Michal Hocko wrote: > > >

Re: [RFC PATCH 0/5] mm, memory_hotplug: allocate memmap from hotadded memory

2017-07-31 Thread Gerald Schaefer
On Mon, 31 Jul 2017 14:53:19 +0200 Michal Hocko wrote: > On Mon 31-07-17 14:35:21, Gerald Schaefer wrote: > > On Fri, 28 Jul 2017 14:19:41 +0200 > > Michal Hocko wrote: > > > > > On Thu 27-07-17 08:56:52, Michal Hocko wrote: > > > > On Wed 26-07-17 17:06:59, Jerome Glisse wrote: > > > > [...] >

Re: [RFC PATCH 0/5] mm, memory_hotplug: allocate memmap from hotadded memory

2017-07-31 Thread Michal Hocko
On Mon 31-07-17 14:35:21, Gerald Schaefer wrote: > On Fri, 28 Jul 2017 14:19:41 +0200 > Michal Hocko wrote: > > > On Thu 27-07-17 08:56:52, Michal Hocko wrote: > > > On Wed 26-07-17 17:06:59, Jerome Glisse wrote: > > > [...] > > > > This does not seems to be an opt-in change ie if i am reading pa

Re: [RFC PATCH 0/5] mm, memory_hotplug: allocate memmap from hotadded memory

2017-07-31 Thread Gerald Schaefer
On Fri, 28 Jul 2017 14:19:41 +0200 Michal Hocko wrote: > On Thu 27-07-17 08:56:52, Michal Hocko wrote: > > On Wed 26-07-17 17:06:59, Jerome Glisse wrote: > > [...] > > > This does not seems to be an opt-in change ie if i am reading patch 3 > > > correctly if an altmap is not provided to __add_pag

Re: [RFC PATCH 0/5] mm, memory_hotplug: allocate memmap from hotadded memory

2017-07-28 Thread Michal Hocko
On Thu 27-07-17 08:56:52, Michal Hocko wrote: > On Wed 26-07-17 17:06:59, Jerome Glisse wrote: > [...] > > This does not seems to be an opt-in change ie if i am reading patch 3 > > correctly if an altmap is not provided to __add_pages() you fallback > > to allocating from begining of zone. This wil

Re: [RFC PATCH 0/5] mm, memory_hotplug: allocate memmap from hotadded memory

2017-07-28 Thread Michal Hocko
On Wed 26-07-17 10:33:28, Michal Hocko wrote: [...] > There is also one potential drawback, though. If somebody uses memory > hotplug for 1G (gigantic) hugetlb pages then this scheme will not work > for them obviously because each memory section will contain 2MB reserved > area. Actually I am wron

Re: [RFC PATCH 0/5] mm, memory_hotplug: allocate memmap from hotadded memory

2017-07-26 Thread Michal Hocko
On Wed 26-07-17 17:06:59, Jerome Glisse wrote: [...] > This does not seems to be an opt-in change ie if i am reading patch 3 > correctly if an altmap is not provided to __add_pages() you fallback > to allocating from begining of zone. This will not work with HMM ie > device private memory. So at ve

Re: [RFC PATCH 0/5] mm, memory_hotplug: allocate memmap from hotadded memory

2017-07-26 Thread Jerome Glisse
On Wed, Jul 26, 2017 at 10:33:28AM +0200, Michal Hocko wrote: > Hi, > this is another step to make the memory hotplug more usable. The primary > goal of this patchset is to reduce memory overhead of the hot added > memory (at least for SPARSE_VMEMMAP memory model). Currently we use > kmalloc to pop

Re: [RFC PATCH 0/5] mm, memory_hotplug: allocate memmap from hotadded memory

2017-07-26 Thread Michal Hocko
On Wed 26-07-17 10:33:28, Michal Hocko wrote: > The patches is based on the current mmotm tree (mmotm-2017-07-12-15-11) Btw. the patchset is also git://git.kernel.org/pub/scm/linux/kernel/git/mhocko/mm.git branch attempts/memmap-in-section-hotplug -- Michal Hocko SUSE Labs