Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp243353ybn; Thu, 3 Oct 2019 04:33:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3UDKUfQYFnSevoE2B4evwyZROFDrqFDQ94o7c5UFz+ITAik2XVgFsAYGTM470Ri4NQgJ8 X-Received: by 2002:a17:906:b742:: with SMTP id fx2mr7117469ejb.205.1570102380505; Thu, 03 Oct 2019 04:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570102380; cv=none; d=google.com; s=arc-20160816; b=wMRHrd50zpzpv3deqDsLUxehJ7YQPMwlp7IIk+LrkdqU3s9sqbwaxZ85N01RTmD7ht eIYyroIkZq35BfWlhtnesDfLemZ6fAIqHtaWslZcmkMWwA/4T9S19uK44MVs6VL+Qtxj drUMkG6do9Y7bQSGWKz1OlD17hPqzv7JTecKG5izCv1r704/adEPg3SGfgZylr4wb2TE 1YXzXuJJJvdK4dfxtGO+8SG4fIdejjUCAloIuqcWN6jM0FaXnirEBwvPvixZfzFxyh5x cwFynKEuyAIq+xZA4yg6pG38rPh+i0rjd4fKiP+JSjRViy1ed8AIqsX485pcUKAySvbQ TupQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=HoupWpBMKatIkSQs85rIi4UlVm5j2WKnJe+0NgJebvc=; b=XlSUevl9bQWATXpSuR4MQbbGw41NLHtZaZfHSHYs0TrWHZst0XHpbWJMH1AHHmSHRA 69FaL1vhM/55U/ZU8clWPtwLdOaqQSDk6VqHMizNruBxiGzvGBTCBp0tWnrFCBWwrGN2 tUXiivtW2DgReubFBIgbsndy/GcCTzg5wp292n+WDmKja08pI77+CajhWNOTO/rB/QMV j5vOrIq0lizHBbhMo7G5jxtIEsohRlr2CNgjR1XCDCDNG4qzyPw7BjzECSdpu0ew+L3N mqtgDRMO1pYw5ggIau/OF5cSxRXt8ydnOjz/HjGx2XKjjMtmrGRCGs6KsqQYe3iaxezL v4Vg== 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 d8si1020199ejt.206.2019.10.03.04.32.35; Thu, 03 Oct 2019 04:33:00 -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 S1730087AbfJCLby (ORCPT + 99 others); Thu, 3 Oct 2019 07:31:54 -0400 Received: from foss.arm.com ([217.140.110.172]:42318 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729987AbfJCLby (ORCPT ); Thu, 3 Oct 2019 07:31:54 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 97378337; Thu, 3 Oct 2019 04:31:53 -0700 (PDT) Received: from [10.162.40.180] (p8cg001049571a15.blr.arm.com [10.162.40.180]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 695B83F706; Thu, 3 Oct 2019 04:31:50 -0700 (PDT) Subject: Re: [PATCH] mm/page_alloc: Add a reason for reserved pages in has_unmovable_pages() To: Qian Cai Cc: linux-mm@kvack.org, Andrew Morton , Michal Hocko , Vlastimil Babka , Oscar Salvador , Mel Gorman , Mike Rapoport , Dan Williams , Pavel Tatashin , linux-kernel@vger.kernel.org References: <37b43978-5652-576c-8990-451e751b7c67@arm.com> <285C0297-BF27-4095-87B6-AFC88C1F3C0F@lca.pw> From: Anshuman Khandual Message-ID: Date: Thu, 3 Oct 2019 17:02:11 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <285C0297-BF27-4095-87B6-AFC88C1F3C0F@lca.pw> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/03/2019 04:49 PM, Qian Cai wrote: > > >> On Oct 3, 2019, at 5:32 AM, Anshuman Khandual wrote: >> >> Even though page flags does contain reserved bit information, the problem >> is that we are explicitly printing the reason for this page dump. In this >> case it is caused by the fact that it is a reserved page. >> >> page dumped because: >> >> The proposed change makes it explicit that the dump is caused because a >> non movable page with reserved bit set. It also helps in differentiating >> between reserved bit condition and the last one "if (found > count)". > > Then, someone later would like to add a reason for every different page flags just because they *think* they are special. > Ohh, never meant that the 'Reserved' bit is anything special here but it is a reason to make a page unmovable unlike many other flags.