From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1164109AbdEXNu2 (ORCPT ); Wed, 24 May 2017 09:50:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:34261 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750987AbdEXNuZ (ORCPT ); Wed, 24 May 2017 09:50:25 -0400 Date: Wed, 24 May 2017 15:50:21 +0200 From: Michal Hocko To: Igor Mammedov Cc: linux-mm@kvack.org, Andrew Morton , Mel Gorman , Vlastimil Babka , Andrea Arcangeli , Jerome Glisse , Reza Arbab , Yasuaki Ishimatsu , qiuxishi@huawei.com, Kani Toshimitsu , slaoub@gmail.com, Joonsoo Kim , Andi Kleen , David Rientjes , Daniel Kiper , Vitaly Kuznetsov , LKML Subject: Re: [RFC PATCH 2/2] mm, memory_hotplug: drop CONFIG_MOVABLE_NODE Message-ID: <20170524135020.GI14733@dhcp22.suse.cz> References: <20170524122411.25212-1-mhocko@kernel.org> <20170524122411.25212-3-mhocko@kernel.org> <20170524153017.7a66368d@nial.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170524153017.7a66368d@nial.brq.redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 24-05-17 15:30:17, Igor Mammedov wrote: > On Wed, 24 May 2017 14:24:11 +0200 > Michal Hocko wrote: > > [...] > > index facc20a3f962..ec7d6ae01c96 100644 > > --- a/Documentation/admin-guide/kernel-parameters.txt > > +++ b/Documentation/admin-guide/kernel-parameters.txt > > @@ -2246,8 +2246,11 @@ > [...] > > + movable. This means that the memory of such nodes > > + will be usable only for movable allocations which > > + rules out almost all kernel allocations. Use with > > + caution! > maybe dumb question but, is it really true that kernel won't ever > do kernel allocations from movable zone? > > looking at kmalloc(slab): we can get here: > > get_page_from_freelist() -> > rmqueue() -> > __rmqueue() -> > __rmqueue_fallback() -> > find_suitable_fallback() > > and it might return movable fallback and page could be stolen from there. No, you are mixing movable/unmovable pageblocks and movable zones. Movable zone basically works the same way as the Highmem zone. Have a look at gfp_zone() and high_zoneidx usage in get_page_from_freelist -- Michal Hocko SUSE Labs