From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752537AbcBOKG2 (ORCPT ); Mon, 15 Feb 2016 05:06:28 -0500 Received: from szxga02-in.huawei.com ([119.145.14.65]:47169 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750981AbcBOKG1 (ORCPT ); Mon, 15 Feb 2016 05:06:27 -0500 Message-ID: <56C1A310.9090305@huawei.com> Date: Mon, 15 Feb 2016 18:06:08 +0800 From: Xishi Qiu User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Joonsoo Kim CC: zhong jiang , Andrew Morton , Vlastimil Babka , Aaron Lu , Mel Gorman , Rik van Riel , David Rientjes , LKML , Linux Memory Management List Subject: Re: [PATCH v2 3/3] mm/compaction: speed up pageblock_pfn_to_page() when zone is contiguous References: <1454566775-30973-1-git-send-email-iamjoonsoo.kim@lge.com> <1454566775-30973-3-git-send-email-iamjoonsoo.kim@lge.com> <20160204164929.a2f12b8a7edcdfa596abd850@linux-foundation.org> <56C0550F.8020402@huawei.com> <20160215024220.GA30918@js1304-P5Q-DELUXE> In-Reply-To: <20160215024220.GA30918@js1304-P5Q-DELUXE> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.25.179] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020206.56C1A31C.00E2,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 4b63a3be478b4949eee28cde7a470c9c Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016/2/15 10:42, Joonsoo Kim wrote: >> >> I have a question about the zone continuity. because hole exists at >> arbitrary position in a page block. Therefore, only pageblock_pf_to_page() >> is insufficiency, whether pageblock aligned pfn or not , the pfn_valid_within() >> is necessary. >> >> eh: 120M-122M is a range of page block, but the 120.5M-121.5M is holes, only by >> pageblock_pfn_to_page() to conclude in the result is inaccurate > > contiguous may be misleading word. It doesn't represent there are no > hole. It only represents that all pageblocks within zone span belong to > corresponding zone and validity of all pageblock aligned pfn is > checked. So, if it is set, we can safely call pfn_to_page() for pageblock > aligned pfn in that zone without checking pfn_valid(). > > Thanks. > Hi Joonsoo, So "contiguous" here only means that struct page is exist, and don't care whether the memory is exist, right? Thanks, Xishi Qiu > > . >