Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1927666ybk; Thu, 21 May 2020 19:59:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywWgh9HXrv5HpeiMw3pxHORKBrn5b/nBTFMGG0fi8N3/eHvtsLEz6cAk9EvHLDoP8pyslM X-Received: by 2002:a17:906:14db:: with SMTP id y27mr6582778ejc.427.1590116385837; Thu, 21 May 2020 19:59:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590116385; cv=none; d=google.com; s=arc-20160816; b=fRMj9MNP/wAkkZcIOf8BaEEqvcsnntABBTgK9V6SuQu1yjwCSXeLGkx/vpROdrBdcp LRTMF01YNxfxJtNKmGmXUexPpfLaXwtwhXBoClyloZkjcEdYPs6drkd3aV8HI8+XcZmd RTcr1mfjgEyBiHFh10+KZsnDV0JRHGPGjRT/JYNBDwAH4xcj+Yh/Wm8sJjjQm820A8Fx erYtnGAgXIAw/2Myv9XdettYo8qxk7Ey7OHe6Yg94ThOyk0VEt8i6pxkeu/kHAHNKWhn 4tjDu1TFOnzg3apEiJh8aEJOGhZSc61OZ1NMYL8c8aETopEg+iWQsmt/CDwnjZPgN0Zh eqGg== 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; bh=g++fGkldAra8zS4Kxymn4JMxm+Tyo723fzj10Uy7dK0=; b=Ys9+ruqdUFsxJMdLLGULtAzlT49sMCHS+Jna8SJqT3d4fF1+FYFh1NFs8dtOkxT5BO Lli0+9FlqvF07pTz6s1j+WD9Qj/TyyZMRvqujbttxfEcaZTMZRv7Aw0nn7i4ADs+cDXR c6FpNeKoubm8lSeIG23qnrWMfMXXtFEkqcR6F42Wf+Q5AVgk3e949mK6L9Qu5EcbWXmx A9S1d0LVDt63OlygYQfpiPGq1uEeJAnU4XeD6gkaNaOqdnj2XaOR43QjZD45GV5vx+dx Rxt9M9yHqX2nAJkZO2opcRLd5NCD6srautCubEu2rOaFILPSTp+YRlX+TtBLkkpD5I6n U8bw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r13si3840942edt.263.2020.05.21.19.59.22; Thu, 21 May 2020 19:59:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727818AbgEVC57 (ORCPT + 99 others); Thu, 21 May 2020 22:57:59 -0400 Received: from mail107.syd.optusnet.com.au ([211.29.132.53]:58249 "EHLO mail107.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727050AbgEVC57 (ORCPT ); Thu, 21 May 2020 22:57:59 -0400 Received: from dread.disaster.area (pa49-195-157-175.pa.nsw.optusnet.com.au [49.195.157.175]) by mail107.syd.optusnet.com.au (Postfix) with ESMTPS id 9E70FD59A09; Fri, 22 May 2020 12:57:55 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1jbxsd-0002Cn-Gu; Fri, 22 May 2020 12:57:51 +1000 Date: Fri, 22 May 2020 12:57:51 +1000 From: Dave Chinner To: Matthew Wilcox Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 00/36] Large pages in the page cache Message-ID: <20200522025751.GX2005@dread.disaster.area> References: <20200515131656.12890-1-willy@infradead.org> <20200521224906.GU2005@dread.disaster.area> <20200522000411.GI28818@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200522000411.GI28818@bombadil.infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=W5xGqiek c=1 sm=1 tr=0 a=ONQRW0k9raierNYdzxQi9Q==:117 a=ONQRW0k9raierNYdzxQi9Q==:17 a=kj9zAlcOel0A:10 a=sTwFKg_x9MkA:10 a=7-415B0cAAAA:8 a=Eun5lWKXtKsMZPUNUOgA:9 a=CjuIK1q_8ugA:10 a=biEYGPWJfzWAr4FL6Ov7:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 21, 2020 at 05:04:11PM -0700, Matthew Wilcox wrote: > On Fri, May 22, 2020 at 08:49:06AM +1000, Dave Chinner wrote: > > Ok, so the main issue I have with the filesystem/iomap side of > > things is that it appears to be adding "transparent huge page" > > awareness to the filesysetm code, not "large page support". > > > > For people that aren't aware of the difference between the > > transparent huge and and a normal compound page (e.g. I have no idea > > what the difference is), this is likely to cause problems, > > especially as you haven't explained at all in this description why > > transparent huge pages are being used rather than bog standard > > compound pages. > > The primary reason to use a different name from compound_* > is so that it can be compiled out for systems that don't enable > CONFIG_TRANSPARENT_HUGEPAGE. So THPs are compound pages, as they always > have been, but for a filesystem, using thp_size() will compile to either > page_size() or PAGE_SIZE depending on CONFIG_TRANSPARENT_HUGEPAGE. Again, why is this dependent on THP? We can allocate compound pages without using THP, so why only allow the page cache to use larger pages when THP is configured? i.e. I don't know why this is dependent on THP because you haven't explained why this only works for THP and not just plain old compound pages.... > Now, maybe thp_size() is the wrong name, but then you need to suggest > a better name ;-) First you need to explain why THP is requirement for large pages in the page cache when most of the code changes I see only care if the page is a compound page or not.... Cheers, Dave. -- Dave Chinner david@fromorbit.com