From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755538AbcFQLbT (ORCPT ); Fri, 17 Jun 2016 07:31:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:52439 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755436AbcFQLbR (ORCPT ); Fri, 17 Jun 2016 07:31:17 -0400 Subject: Re: [PATCH 25/27] mm: page_alloc: Cache the last node whose dirty limit is reached To: Mel Gorman , Andrew Morton , Linux-MM References: <1465495483-11855-1-git-send-email-mgorman@techsingularity.net> <1465495483-11855-26-git-send-email-mgorman@techsingularity.net> Cc: Rik van Riel , Johannes Weiner , LKML From: Vlastimil Babka Message-ID: <654783c8-ffcb-af3f-90be-d6bd62e554e1@suse.cz> Date: Fri, 17 Jun 2016 13:31:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <1465495483-11855-26-git-send-email-mgorman@techsingularity.net> Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/09/2016 08:04 PM, Mel Gorman wrote: > If a page is about to be dirtied then the page allocator attempts to limit > the total number of dirty pages that exists in any given zone. The call > to node_dirty_ok is expensive so this patch records if the last pgdat > examined hit the dirty limits. In some cases, this reduces the number > of calls to node_dirty_ok(). > > Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka