[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190801071709.GE11627@dhcp22.suse.cz>
Date: Thu, 1 Aug 2019 09:17:09 +0200
From: Michal Hocko <mhocko@...nel.org>
To: Rashmica Gupta <rashmica.g@...il.com>
Cc: Oscar Salvador <osalvador@...e.de>,
David Hildenbrand <david@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Dan Williams <dan.j.williams@...el.com>,
pasha.tatashin@...een.com, Jonathan.Cameron@...wei.com,
anshuman.khandual@....com, Vlastimil Babka <vbabka@...e.cz>,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 0/5] Allocate memmap from hotadded memory
On Thu 01-08-19 09:06:40, Rashmica Gupta wrote:
> On Wed, 2019-07-31 at 14:08 +0200, Michal Hocko wrote:
> > On Tue 02-07-19 18:52:01, Rashmica Gupta wrote:
> > [...]
> > > > 2) Why it was designed, what is the goal of the interface?
> > > > 3) When it is supposed to be used?
> > > >
> > > >
> > > There is a hardware debugging facility (htm) on some power chips.
> > > To use
> > > this you need a contiguous portion of memory for the output to be
> > > dumped
> > > to - and we obviously don't want this memory to be simultaneously
> > > used by
> > > the kernel.
> >
> > How much memory are we talking about here? Just curious.
>
> From what I've seen a couple of GB per node, so maybe 2-10GB total.
OK, that is really a lot to keep around unused just in case the
debugging is going to be used.
I am still not sure the current approach of (ab)using memory hotplug is
ideal. Sure there is some overlap but you shouldn't really need to
offline the required memory range at all. All you need is to isolate the
memory from any existing user and the page allocator. Have you checked
alloc_contig_range?
--
Michal Hocko
SUSE Labs
Powered by blists - more mailing lists