Received: by 10.213.65.68 with SMTP id h4csp1651966imn; Thu, 5 Apr 2018 01:07:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx487z0ST2g2J9YlDmPec27IATgFOqa3ckIywryUpXO1nlQVekuCSbRmpHp1Rn6ojA4qHdH1s X-Received: by 2002:a17:902:2943:: with SMTP id g61-v6mr22237955plb.238.1522915655250; Thu, 05 Apr 2018 01:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522915655; cv=none; d=google.com; s=arc-20160816; b=nUxmGj1yKhw3QbSNnUp6xTzj5/sOqBgatX0x2S7rvVtqepAiO4CEwN8LaNiwMmGRj+ emtDDSxfHjXLvKA0+1GRcwmvO/EOPbkwW93jXTu7WRuttcuor0vKMbCrs1nOhvrLof9d DYvOeDP+OtOXlCMsv4HZ/Oj+ad3XdmeaQ2VbExTIPQtQmre40ePKNvxAV0ZYy3RkHYut 6EGwq9ml1v6eZtVEQ/yYjhKk6MHduSe9WhPT20rxzM9zeSztFILHjXIiqbw5/FBge+sW DnB9X8Fk1SXq+U96imDEPW7PSn/m5amBFvK7k6YjEV1hIL7dkBpVOxOI3Cn9x0vbaTi5 xY5w== 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=we5u5G/GERNoxBQkNy7OmioANbbgEZUTATLjVX9EVXA=; b=spWB2uG+HQC87HBCbgNj7FB9BXO6La1kmLhgoWmsSnvZiKMXxTt9aXNS6t1azYFmXq yeOKyj/2Ddk/wMb6wVwpxit0MfKbslrEJwcR7W3GMl/wmdJsEGCfK0dxdpC7u4lP2ne0 rRuSbM5JEq5n4P3lqD9gTvpwyP9bhVLhoPz2BAQ7Gw4dVNxoosNpb1UYjc+VqDIS9oC9 kWmPLtYpba8hjoPzzUaMJJFheOHEoMToX187mmfn88L5EVGgE7oDL1KuRjG7coWM0ah7 31arw7SQTosPgQYCRPrOtYqxQ5xDzyfgskSOF/97VfHouA6MDxs61PBbSpWyiLafXDT5 Wurw== 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 d13si5237026pgn.334.2018.04.05.01.07.21; Thu, 05 Apr 2018 01:07:35 -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 S1751941AbeDEIF5 (ORCPT + 99 others); Thu, 5 Apr 2018 04:05:57 -0400 Received: from lgeamrelo12.lge.com ([156.147.23.52]:52769 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751852AbeDEIFx (ORCPT ); Thu, 5 Apr 2018 04:05:53 -0400 Received: from unknown (HELO lgeamrelo01.lge.com) (156.147.1.125) by 156.147.23.52 with ESMTP; 5 Apr 2018 17:05:50 +0900 X-Original-SENDERIP: 156.147.1.125 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Received: from unknown (HELO localhost) (10.177.220.142) by 156.147.1.125 with ESMTP; 5 Apr 2018 17:05:50 +0900 X-Original-SENDERIP: 10.177.220.142 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Thu, 5 Apr 2018 17:05:39 +0900 From: Joonsoo Kim To: Michal Hocko Cc: Andrew Morton , "Kirill A . Shutemov" , Mel Gorman , Vlastimil Babka , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/thp: don't count ZONE_MOVABLE as the target for freepage reserving Message-ID: <20180405080539.GA631@js1304-desktop> References: <1522913236-15776-1-git-send-email-iamjoonsoo.kim@lge.com> <20180405075753.GZ6312@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180405075753.GZ6312@dhcp22.suse.cz> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 05, 2018 at 09:57:53AM +0200, Michal Hocko wrote: > On Thu 05-04-18 16:27:16, Joonsoo Kim wrote: > > From: Joonsoo Kim > > > > ZONE_MOVABLE only has movable pages so we don't need to keep enough > > freepages to avoid or deal with fragmentation. So, don't count it. > > > > This changes min_free_kbytes and thus min_watermark greatly > > if ZONE_MOVABLE is used. It will make the user uses more memory. > > OK, but why does it matter. Has anybody seen this as an issue? There was a regression report for CMA patchset and I think that it is related to this problem. CMA patchset makes the system uses one more zone (ZONE_MOVABLE) and then increase min_free_kbytes. It reduces usable memory and it could cause regression. http://lkml.kernel.org/r/20180102063528.GG30397@yexl-desktop Thanks.