Received: by 10.223.164.202 with SMTP id h10csp1196894wrb; Tue, 7 Nov 2017 23:56:14 -0800 (PST) X-Google-Smtp-Source: ABhQp+Q//I+EJQHVbiObu6ZINQGIjTIh/kkwJ0LDNCag011ebs00d2hiEJRKQO4/WpD1O8KzY/E0 X-Received: by 10.159.244.18 with SMTP id x18mr1460157plr.338.1510127774112; Tue, 07 Nov 2017 23:56:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510127774; cv=none; d=google.com; s=arc-20160816; b=z0TC1tSC6l57BJdDQnZaAhXtPSzRmFq46dzVM78GGs3eUJfEqujq5cSD4ZjurOtRWw RfYXq8tPBxEZWPBzbAkWaHPOq1UndAvYPexPtQAFH/hrwwpLvs08OmLwdSThR8N0DmYQ jr6xh2ByVtseMX0jwMmyQh+NSMyxeefNKocGoLNki6ntj+Y60leAxdPxfjQWCs+m4jh4 C5Co9hjSjkdwHPaaYMFttYk8d3XMEIXgexZzfIlc7LruIBeTPANsbf99+wKk6E2me+IZ PaV0T5DjhfhRnJ3yiHIJqHuQmsfZe69etXbeUzM/ec/v8Cu93ADb4DUQvFTK83+dwv5p Yjmg== 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=w0Tj3LnAppFkpW2m/kvsgJAPD4RT+NbjwqgCdugeIds=; b=kY9nUrsKCfpLcZpq93rP2mHglE5Ec8c4bW428YdwhBa8/L+dKB74npNhifsHym05nX L8UCLqTUDIZthlVVAkr4I+ZvTH6isow/KB8AB1rLwufBKiOUULPt9FL+sxMfkQQGVRQQ D0pulb2smE3JsrPrTqWYzoXuSbk2bLM6jCrv+2LV3EWiWX6AaHSzdBaa5oaxmOj3G/rP LRcbvzEy4M2HUdx42ssfb7tKef9r/JsMzJWl3UYR3deJwxDZ7lD8K8kr/XFy4dQt6j7z QGXSXlkCMbQy3hl6nMDisfqt97BVYl7TchYXOj39A1tDCXPSIpzLsAk6wzNGXu8UPgjV Rf5g== 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 q29si3444397pfk.394.2017.11.07.23.56.01; Tue, 07 Nov 2017 23:56:14 -0800 (PST) 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 S1751748AbdKHHr6 (ORCPT + 89 others); Wed, 8 Nov 2017 02:47:58 -0500 Received: from LGEAMRELO13.lge.com ([156.147.23.53]:59942 "EHLO lgeamrelo13.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750951AbdKHHrz (ORCPT ); Wed, 8 Nov 2017 02:47:55 -0500 Received: from unknown (HELO lgeamrelo04.lge.com) (156.147.1.127) by 156.147.23.53 with ESMTP; 8 Nov 2017 16:47:53 +0900 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Received: from unknown (HELO localhost) (10.177.222.138) by 156.147.1.127 with ESMTP; 8 Nov 2017 16:47:52 +0900 X-Original-SENDERIP: 10.177.222.138 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Wed, 8 Nov 2017 16:52:42 +0900 From: Joonsoo Kim To: Jaewon Kim Cc: akpm@linux-foundation.org, mhocko@suse.com, vbabka@suse.cz, minchan@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, jaewon31.kim@gmail.com Subject: Re: [PATCH] mm: page_ext: allocate page extension though first PFN is invalid Message-ID: <20171108075242.GB18747@js1304-P5Q-DELUXE> References: <20171107094447.14763-1-jaewon31.kim@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171107094447.14763-1-jaewon31.kim@samsung.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 07, 2017 at 06:44:47PM +0900, Jaewon Kim wrote: > online_page_ext and page_ext_init allocate page_ext for each section, but > they do not allocate if the first PFN is !pfn_present(pfn) or > !pfn_valid(pfn). > > Though the first page is not valid, page_ext could be useful for other > pages in the section. But checking all PFNs in a section may be time > consuming job. Let's check each (section count / 16) PFN, then prepare > page_ext if any PFN is present or valid. I guess that this kind of section is not so many. And, this is for debugging so completeness would be important. It's better to check all pfn in the section. Thanks. From 1583432714503940064@xxx Tue Nov 07 18:25:11 +0000 2017 X-GM-THRID: 1583432714503940064 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread