Received: by 10.213.65.68 with SMTP id h4csp1249647imn; Wed, 4 Apr 2018 15:38:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx49EOjvtVwiNv8LpXAyeWipu19A5PWF7/KA+rzzFDCM1wKr4gTcRSPtpnSvz5gjhe7DXIzFL X-Received: by 10.101.93.71 with SMTP id e7mr12855980pgt.171.1522881510394; Wed, 04 Apr 2018 15:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522881510; cv=none; d=google.com; s=arc-20160816; b=Z0VI+Os5AzT3rY5fEWCankWvI4MywE873s1i2ei7v1kGYAiD1H4uTBGX2WI7NT9AWF drAMndQmaedK1x3zr4peLXMSDOJk0jelmFVzxAVzHRMLuWO7lB+oa5PdjIrRb+4s+FHJ koJgD7VSKonDnHaTCMlj5uMRB9xKJtByqiFPkU8yD/hPaoR60kIJ9fKRhNBGS/8uYBFe 15ETGL46IXwMbpmI7CA1dUX/pSy11KIIr48VK061rF1eaKBQjHyhFk+hyfe/9mJlA6t0 CjW0EHB4bQJGUmlHGGm1yi/vfE4V9ViGShm3N3cE1WcBJEks3I8W6Cr66FdGRPEFfOO8 IG0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=PwifeWUtOEBYtOBDEf1KlfSFjv9iPPodXIE8UrTiAI0=; b=vy2nneSSSd6GssHnRkhqVXXJ4vgV9YQJBz0rnZYb0sksjv6usfyCGqSRLcnrrVvsVr NBiwJCK3hd2CKhUb5TZhQ1cNumbrSTBG8K+z06wAX+PTeywTeOuVvBDCHnnSLc288pZm QZdU7kRoNrBkpPCbjAQgJSRGXwUfsVgQwmjn74L8Gi5IgKJiwRfYYh17U/A4BSfO5Phf Wmi8mrFc3L+ROcWFrc1ldjlRfzQdwB6HuQkCn354SsrE5r/Na1hUZfpQYYZe/8soCgh6 GKwcS1HUtYBCFo1Cz1T4m38MVjJQDtKn7X6f4OppPJOVzcujmRqFkufOUaoetbolj7YG 0dDw== 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 j8-v6si5070099pli.9.2018.04.04.15.38.16; Wed, 04 Apr 2018 15:38:30 -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 S1752520AbeDDWhG (ORCPT + 99 others); Wed, 4 Apr 2018 18:37:06 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50750 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752322AbeDDWhF (ORCPT ); Wed, 4 Apr 2018 18:37:05 -0400 Received: from akpm3.svl.corp.google.com (unknown [104.133.9.71]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 87F31BD7; Wed, 4 Apr 2018 22:37:04 +0000 (UTC) Date: Wed, 4 Apr 2018 15:37:03 -0700 From: Andrew Morton To: Joonsoo Kim Cc: Michal Hocko , Zhaoyang Huang , zhaoyang.huang@spreadtrum.com, Vlastimil Babka , Mel Gorman , Johannes Weiner , vel Tatashin , Tetsuo Handa , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-patch-test@lists.linaro.org Subject: Re: [PATCH v1] mm: help the ALLOC_HARDER allocation pass the watermarki when CMA on Message-Id: <20180404153703.8f9f04df4c991554f3bf0434@linux-foundation.org> In-Reply-To: <20180404003028.GA6628@js1304-desktop> References: <1521791852-7048-1-git-send-email-zhaoyang.huang@spreadtrum.com> <20180323083847.GJ23100@dhcp22.suse.cz> <20180323093327.GM23100@dhcp22.suse.cz> <20180323130408.0c6451fac02c49b535ec7485@linux-foundation.org> <20180404003028.GA6628@js1304-desktop> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 4 Apr 2018 09:31:10 +0900 Joonsoo Kim wrote: > On Fri, Mar 23, 2018 at 01:04:08PM -0700, Andrew Morton wrote: > > On Fri, 23 Mar 2018 10:33:27 +0100 Michal Hocko wrote: > > > > > On Fri 23-03-18 17:19:26, Zhaoyang Huang wrote: > > > > On Fri, Mar 23, 2018 at 4:38 PM, Michal Hocko wrote: > > > > > On Fri 23-03-18 15:57:32, Zhaoyang Huang wrote: > > > > >> For the type of 'ALLOC_HARDER' page allocation, there is an express > > > > >> highway for the whole process which lead the allocation reach __rmqueue_xxx > > > > >> easier than other type. > > > > >> However, when CMA is enabled, the free_page within zone_watermark_ok() will > > > > >> be deducted for number the pages in CMA type, which may cause the watermark > > > > >> check fail, but there are possible enough HighAtomic or Unmovable and > > > > >> Reclaimable pages in the zone. So add 'alloc_harder' here to > > > > >> count CMA pages in to clean the obstacles on the way to the final. > > > > > > > > > > This is no longer the case in the current mmotm tree. Have a look at > > > > > Joonsoo's zone movable based CMA patchset http://lkml.kernel.org/r/1512114786-5085-1-git-send-email-iamjoonsoo.kim@lge.com > > > > > > > > > Thanks for the information. However, I can't find the commit in the > > > > latest mainline, is it merged? > > > > > > Not yet. It is still sitting in the mmomt tree. I am not sure what is > > > the merge plan but I guess it is still waiting for some review feedback. > > > > http://lkml.kernel.org/r/20171222001113.GA1729@js1304-P5Q-DELUXE > > > > That patchset has been floating about since December and still has > > unresolved issues. > > > > Joonsoo, can you please let us know the status? > > Hello, Andrew. > Sorry for a late response. > > Today, I finally have answered the question from Michal and it seems > that there is no problem at all. > > http://lkml.kernel.org/r/CAAmzW4NGv7RyCYyokPoj4aR3ySKub4jaBZ3k=pt_YReFbByvsw@mail.gmail.com > > You can merge the patch as is. > hm. There was also a performance regression reported: http://lkml.kernel.org/r/20180102063528.GG30397@yexl-desktop