[PATCH 1/1] Drivers: base: memory: Export symbols for onlining memory blocks

KY Srinivasan kys at microsoft.com
Thu Jul 25 11:14:18 UTC 2013



> -----Original Message-----
> From: Michal Hocko [mailto:mhocko at suse.cz]
> Sent: Thursday, July 25, 2013 3:57 AM
> To: Dave Hansen
> Cc: KY Srinivasan; Dave Hansen; gregkh at linuxfoundation.org; linux-
> kernel at vger.kernel.org; devel at linuxdriverproject.org; olaf at aepfle.de;
> apw at canonical.com; andi at firstfloor.org; akpm at linux-foundation.org; linux-
> mm at kvack.org; kamezawa.hiroyuki at gmail.com; hannes at cmpxchg.org;
> yinghan at google.com; jasowang at redhat.com; kay at vrfy.org
> Subject: Re: [PATCH 1/1] Drivers: base: memory: Export symbols for onlining
> memory blocks
> 
> On Wed 24-07-13 14:02:32, Dave Hansen wrote:
> > On 07/24/2013 12:45 PM, KY Srinivasan wrote:
> > > All I am saying is that I see two classes of failures: (a) Our
> > > inability to allocate memory to manage the memory that is being hot added
> > > and (b) Our inability to bring the hot added memory online within a
> reasonable
> > > amount of time. I am not sure the cause for (b) and I was just speculating that
> > > this could be memory related. What is interesting is that I have seen failure
> related
> > > to our inability to online the memory after having succeeded in hot adding the
> > > memory.
> >
> > I think we should hold off on this patch and other like it until we've
> > been sufficiently able to explain how (b) happens.
> 
> Agreed.

As promised, I have sent out the patches for (a) an implementation of an in-kernel API
for onlining  and a consumer for this API. While I don't know the exact reason why the
user mode code is delayed (under some low memory conditions), what is the harm in having
a mechanism to online memory that has been hot added without involving user space code.
Based on Michal's feedback, the onlininig API hides all of the internal details and presents a
generic interface.

Regards,

K. Y





More information about the devel mailing list