Received: by 10.192.165.156 with SMTP id m28csp1870370imm; Thu, 12 Apr 2018 05:05:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/1MrL/zQ4waaPHX1y/qmBKerE0fzWcchk9wyK+bJW4JEUsoKGEWHatnqvkRNvACvqIqdk1 X-Received: by 2002:a17:902:8d96:: with SMTP id v22-v6mr720475plo.373.1523534719710; Thu, 12 Apr 2018 05:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523534719; cv=none; d=google.com; s=arc-20160816; b=M6MjFG79z4QU0GyeoK3oBe2utH4z5u6P9oybgdyohJe04YTuyJlp7H+JDNB/BxoQBf CZJbXOMsjVhj1+2vcDxfvu7bT0quLLE6TpvnAQxJtmsBoWWW3MvRvnlx5q5rswVrWyau Zlg4pcpZTMA5OhFp2sOOG7stDSEZH7XwbYanAV4mU8qC5bNgBtg8Vee8KMi8Rc7jtRj1 HCoZys1AhQ0bsWxDpefx7mn5MGYSDqUyBzhAK+vTek9bi6Wix+nMyzPGs300KavVwrvh GU7DMz4EocPp/2Z/knQDL6s3jajb7EAuMQ0f9JndUb/S/n6iYarp75rAJwAyEkMwl0Wr fJFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=yw4Os2QKoU4O1CCZGbTuogG5cBDtJhn7uykzWiML/qU=; b=owZoU6jqMZW4l4zdtBOrGoJj3Xg+6pcVgyw/i1InxseLFiDEJYSdNNHNm4wRibyzd7 tNc2u6y5swp+Rmga+84Rjj0fqiIpwgAHNDp2EjI+Ex0IrTUbCxrpb3TfK0qs82co9ubL rKjT1S6QhN9ehgN2Ca/YEdT2O3TasFypk1Lg6+xJzRVykg7FjJIfSp/h9qQgOIozsYQK KJYi7VwJDPZ/BRy7czz/w2lmMxunKlMVTqHw3c4HXSxmWRY2uoEPl+z8yvvjiuHF9cNg +HTsNSJAiTM8kL1frif8xXq4qgWJbpaOm1qTze3e6mv+zyCVbLTblkmXTvVwFtsFPdJM D4Rw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x24-v6si3324882pll.25.2018.04.12.05.04.42; Thu, 12 Apr 2018 05:05:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752320AbeDLMBh (ORCPT + 99 others); Thu, 12 Apr 2018 08:01:37 -0400 Received: from mx2.suse.de ([195.135.220.15]:50520 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751589AbeDLMBg (ORCPT ); Thu, 12 Apr 2018 08:01:36 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 1867AAEC5; Thu, 12 Apr 2018 12:01:35 +0000 (UTC) Date: Thu, 12 Apr 2018 14:01:33 +0200 From: Michal Hocko To: Joonsoo Kim Cc: Andrew Morton , Vlastimil Babka , Mel Gorman , Johannes Weiner , "Aneesh Kumar K . V" , Minchan Kim , Linux Memory Management List , LKML , Joonsoo Kim , linux-api@vger.kernel.org Subject: Re: [PATCH] mm/page_alloc: don't reserve ZONE_HIGHMEM for ZONE_MOVABLE request Message-ID: <20180412120133.GD23400@dhcp22.suse.cz> References: <1504672525-17915-1-git-send-email-iamjoonsoo.kim@lge.com> <20170914132452.d5klyizce72rhjaa@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 04-04-18 09:24:06, Joonsoo Kim wrote: > 2017-09-14 22:24 GMT+09:00 Michal Hocko : > > [Sorry for a later reply] > > > > On Wed 06-09-17 13:35:25, Joonsoo Kim wrote: > >> From: Joonsoo Kim > >> > >> Freepage on ZONE_HIGHMEM doesn't work for kernel memory so it's not that > >> important to reserve. > > > > I am still not convinced this is a good idea. I do agree that reserving > > memory in both HIGHMEM and MOVABLE is just wasting memory but removing > > the reserve from the highmem as well will result that an oom victim will > > allocate from lower zones and that might have unexpected side effects. > > Looks like you are confused. > > This patch only affects the situation that ZONE_HIGHMEM and ZONE_MOVABLE is > used at the same time. In that case, before this patch, ZONE_HIGHMEM has > reserve for GFP_HIGHMEM | GFP_MOVABLE request, but, with this patch, no reserve > in ZONE_HIGHMEM for GFP_HIGHMEM | GFP_MOVABLE request. This perfectly > matchs with your hope. :) I have forgot all the details but my vague recollection is that the concern was that GFP_HIGHUSER_MOVABLE etc. wouldn't keep any reserve in the highmem zone and so emergency allocations - e.g. those during OOM will have to fallback to kernel zones and might lead to hard to predict results. Am I still confused and this will not happen after the patch? -- Michal Hocko SUSE Labs