Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755528Ab3I3SGU (ORCPT ); Mon, 30 Sep 2013 14:06:20 -0400 Received: from mail-vc0-f175.google.com ([209.85.220.175]:54226 "EHLO mail-vc0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754637Ab3I3SGS convert rfc822-to-8bit (ORCPT ); Mon, 30 Sep 2013 14:06:18 -0400 MIME-Version: 1.0 In-Reply-To: <52499875.4060101@sr71.net> References: <1379937950-8411-1-git-send-email-kirill.shutemov@linux.intel.com> <20130924163740.4bc7db61e3e520798220dc4c@linux-foundation.org> <20130930100249.GB2425@suse.de> <52499875.4060101@sr71.net> From: Ning Qu Date: Mon, 30 Sep 2013 11:05:57 -0700 Message-ID: Subject: Re: [PATCHv6 00/22] Transparent huge page cache: phase 1, everything but mmap() To: Dave Hansen Cc: Mel Gorman , Andrew Morton , "Kirill A. Shutemov" , Andrea Arcangeli , Al Viro , Hugh Dickins , Wu Fengguang , Jan Kara , linux-mm@kvack.org, Andi Kleen , Matthew Wilcox , "Kirill A. Shutemov" , Hillf Danton , Alexander Shishkin , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1827 Lines: 37 Yes, I agree. For our case, we have tens of GB files and thp with page cache does improve the number as expected. And compared to hugetlbfs (static huge page), it's more flexible and beneficial to the system wide .... Best wishes, -- Ning Qu (曲宁) | Software Engineer | quning@google.com | +1-408-418-6066 On Mon, Sep 30, 2013 at 8:27 AM, Dave Hansen wrote: > On 09/30/2013 03:02 AM, Mel Gorman wrote: >> I am afraid I never looked too closely once I learned that the primary >> motivation for this was relieving iTLB pressure in a very specific >> case. AFAIK, this is not a problem in the vast majority of modern CPUs >> and I found it very hard to be motivated to review the series as a result. >> I suspected that in many cases that the cost of IO would continue to dominate >> performance instead of TLB pressure. I also found it unlikely that there >> was a workload that was tmpfs based that used enough memory to be hurt >> by TLB pressure. My feedback was that a much more compelling case for the >> series was needed but this discussion all happened on IRC unfortunately. > > FWIW, I'm mostly intrigued by the possibilities of how this can speed up > _software_, and I'm rather uninterested in what it can do for the TLB. > Page cache is particularly painful today, precisely because hugetlbfs > and anonymous-thp aren't available there. If you have an app with > hundreds of GB of files that it wants to mmap(), even if it's in the > page cache, it takes _minutes_ to just fault in. One example: > > https://lkml.org/lkml/2013/6/27/698 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/