Re: [PATCH] arm64: configurable sparsemem section size

2019-04-25 Thread Michal Hocko
On Thu 25-04-19 13:57:25, Pavel Tatashin wrote: > > > I gave *vague* memories of running out of bits in the page flags if we > > > changed this, but that was a while back. If that's no longer the case, > > > then I'm open to changing the value, but I really don't want to expose > > > it as a

Re: [PATCH] arm64: configurable sparsemem section size

2019-04-25 Thread Pavel Tatashin
> > I gave *vague* memories of running out of bits in the page flags if we > > changed this, but that was a while back. If that's no longer the case, > > then I'm open to changing the value, but I really don't want to expose > > it as a Kconfig option as proposed in this patch. People won't have a

Re: [PATCH] arm64: configurable sparsemem section size

2019-04-25 Thread Michal Hocko
On Thu 25-04-19 16:31:38, Will Deacon wrote: > On Thu, Apr 25, 2019 at 05:25:50PM +0200, Michal Hocko wrote: > > On Tue 23-04-19 16:38:43, Pavel Tatashin wrote: > > > sparsemem section size determines the maximum size and alignment that > > > is allowed to offline/online memory block. The bigger

Re: [PATCH] arm64: configurable sparsemem section size

2019-04-25 Thread Will Deacon
On Thu, Apr 25, 2019 at 05:25:50PM +0200, Michal Hocko wrote: > On Tue 23-04-19 16:38:43, Pavel Tatashin wrote: > > sparsemem section size determines the maximum size and alignment that > > is allowed to offline/online memory block. The bigger the size the less > > the clutter in

Re: [PATCH] arm64: configurable sparsemem section size

2019-04-25 Thread Michal Hocko
On Tue 23-04-19 16:38:43, Pavel Tatashin wrote: > sparsemem section size determines the maximum size and alignment that > is allowed to offline/online memory block. The bigger the size the less > the clutter in /sys/devices/system/memory/*. On the other hand, however, > there is less flexability

Re: [PATCH] arm64: configurable sparsemem section size

2019-04-24 Thread Anshuman Khandual
On 04/25/2019 01:18 AM, Pavel Tatashin wrote: > On Wed, Apr 24, 2019 at 5:07 AM Anshuman Khandual > wrote: >> >> On 04/24/2019 02:08 AM, Pavel Tatashin wrote: >>> sparsemem section size determines the maximum size and alignment that >>> is allowed to offline/online memory block. The bigger the

Re: [PATCH] arm64: configurable sparsemem section size

2019-04-24 Thread Pavel Tatashin
> This is yet another example of where we need to break down the section > alignment requirement for arch_add_memory(). > > https://lore.kernel.org/lkml/12633539.2015392.2477781120122237934.st...@dwillia2-desk3.amr.corp.intel.com/ Hi Dan, Yes, that is exactly what I am trying to solve with

Re: [PATCH] arm64: configurable sparsemem section size

2019-04-24 Thread Dan Williams
On Wed, Apr 24, 2019 at 12:54 PM Pavel Tatashin wrote: > > from original email > > On Wed, Apr 24, 2019 at 3:48 PM Pavel Tatashin > wrote: > > > > On Wed, Apr 24, 2019 at 5:07 AM Anshuman Khandual > > wrote: > > > > > > On 04/24/2019 02:08 AM, Pavel Tatashin wrote: > > > > sparsemem section

Re: [PATCH] arm64: configurable sparsemem section size

2019-04-24 Thread Pavel Tatashin
from original email On Wed, Apr 24, 2019 at 3:48 PM Pavel Tatashin wrote: > > On Wed, Apr 24, 2019 at 5:07 AM Anshuman Khandual > wrote: > > > > On 04/24/2019 02:08 AM, Pavel Tatashin wrote: > > > sparsemem section size determines the maximum size and alignment that > > > is allowed to

Re: [PATCH] arm64: configurable sparsemem section size

2019-04-24 Thread Pavel Tatashin
On Wed, Apr 24, 2019 at 5:07 AM Anshuman Khandual wrote: > > On 04/24/2019 02:08 AM, Pavel Tatashin wrote: > > sparsemem section size determines the maximum size and alignment that > > is allowed to offline/online memory block. The bigger the size the less > > the clutter in

Re: [PATCH] arm64: configurable sparsemem section size

2019-04-24 Thread Anshuman Khandual
On 04/24/2019 02:08 AM, Pavel Tatashin wrote: > sparsemem section size determines the maximum size and alignment that > is allowed to offline/online memory block. The bigger the size the less > the clutter in /sys/devices/system/memory/*. On the other hand, however, > there is less flexability

[PATCH] arm64: configurable sparsemem section size

2019-04-23 Thread Pavel Tatashin
sparsemem section size determines the maximum size and alignment that is allowed to offline/online memory block. The bigger the size the less the clutter in /sys/devices/system/memory/*. On the other hand, however, there is less flexability in what granules of memory can be added and removed.