From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753377AbbBRBJ2 (ORCPT ); Tue, 17 Feb 2015 20:09:28 -0500 Received: from TYO201.gate.nec.co.jp ([210.143.35.51]:63312 "EHLO tyo201.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751315AbbBRBJ1 convert rfc822-to-8bit (ORCPT ); Tue, 17 Feb 2015 20:09:27 -0500 From: Naoya Horiguchi To: Andrew Morton CC: Hugh Dickins , Michal Hocko , Mel Gorman , Johannes Weiner , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Naoya Horiguchi Subject: Re: [PATCH v2] mm, hugetlb: set PageLRU for in-use/active hugepages Thread-Topic: [PATCH v2] mm, hugetlb: set PageLRU for in-use/active hugepages Thread-Index: AQHQSpSZksWwNfy0Rkuwgn23UZ7hJ5z07wEAgAABbICAABIBgA== Date: Wed, 18 Feb 2015 01:07:29 +0000 Message-ID: <20150218010714.GD4823@hori1.linux.bs1.fc.nec.co.jp> References: <1424143299-7557-1-git-send-email-n-horiguchi@ah.jp.nec.com> <20150217093153.GA12875@hori1.linux.bs1.fc.nec.co.jp> <20150217155744.04db5a98d5a1820240eb2317@linux-foundation.org> <20150217160249.7d498e4bd0837748e8c6a5f0@linux-foundation.org> In-Reply-To: <20150217160249.7d498e4bd0837748e8c6a5f0@linux-foundation.org> Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.128.101.27] Content-Type: text/plain; charset="iso-2022-jp" Content-ID: <62B63264538FD04C974466688F58B5DC@gisp.nec.co.jp> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 17, 2015 at 04:02:49PM -0800, Andrew Morton wrote: > On Tue, 17 Feb 2015 15:57:44 -0800 Andrew Morton wrote: > > > So if I'm understanding this correctly, hugepages never have PG_lru set > > and so you are overloading that bit on hugepages to indicate that the > > page is present on hstate->hugepage_activelist? > > And maybe we don't need to overload PG_lru at all? There's plenty of > free space in the compound page's *(page + 1). Right, that's not necessary. So I'll use PG_private in *(page + 1), that's unused now and no worry about conflicting with other usage. Thanks, Naoya Horiguchi