Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932069AbcCUQ73 (ORCPT ); Mon, 21 Mar 2016 12:59:29 -0400 Received: from resqmta-ch2-11v.sys.comcast.net ([69.252.207.43]:36425 "EHLO resqmta-ch2-11v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752150AbcCUQ71 (ORCPT ); Mon, 21 Mar 2016 12:59:27 -0400 Date: Mon, 21 Mar 2016 11:59:25 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@east.gentwo.org To: "Kirill A. Shutemov" cc: Andrew Morton , Alexander Viro , Linus Torvalds , Matthew Wilcox , Hugh Dickins , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 0/3] fs, mm: get rid of PAGE_CACHE_* and page_cache_{get,release} macros In-Reply-To: <20160321163404.GA141069@black.fi.intel.com> Message-ID: References: <1458561998-126622-1-git-send-email-kirill.shutemov@linux.intel.com> <20160321163404.GA141069@black.fi.intel.com> Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 777 Lines: 20 On Mon, 21 Mar 2016, Kirill A. Shutemov wrote: > We do have anon-THP pages on LRU. My huge tmpfs patchset also put > file-THPs on LRU list. So they are on the LRU as 4k units? Tried to look it up. > > Will this actually work if we have really huge memory (100s of TB) where > > almost everything is a huge page? Guess we have to use hugetlbfs and we > > need to think about this as being exempt from paging. > > Sorry, I failed to understand your message. > > Look on huge tmpfs patchset. It allows both small and huge pages in page > cache. Thus my wonder about this patchset. It seems then that the huge pages are treated as 4k pages? Otherwise we would have two sizes for pages in the page cache. Sorry I did not follow that too closely. Will try finding that patchset.