Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp824649ybg; Wed, 3 Jun 2020 14:55:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxHZA03m3PRsuyNhiTtpvbhAvN5zkVc9zc8UZQ9Q83pmEUlmktJB6aneph6Zd2eZ7kJxux X-Received: by 2002:a17:906:4944:: with SMTP id f4mr1250373ejt.3.1591221308331; Wed, 03 Jun 2020 14:55:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591221308; cv=none; d=google.com; s=arc-20160816; b=V6ti5gWKhaUplx4+q42STMCLNLkfGx5QynsdBZ934IpDiqGo562o6t5aSX434hrSn9 jzAfzAS/sGUzohAVGefsrb4wlZ3LqVO1R4zBIHLWKZlkx0pMCWWoLIf4pdnnGCqXGD0N mkMPdXtAXZAkUUt6CPpKf7+dwJSHco7xG4dJ1IF/8KcXsuUmlyRzirv/91K2M9cxkWex eBD0j0J6EB7GS6DH1b/6srgBrzvrLuD+HrBU8n1w2rRDjjlz6bGGgT/DiJXWGq5jnmcr QiHC0sVimEzQSCgQWrz7NVY+T7/YAWkBphidA+4cjgcOVcE8rnOxIRzw8ZvTpL9rOlPu fg/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WFKjpmFPNO5zukj90rjGUlaZxkKudJBdthF2cSc+KfU=; b=HPXFtR+HVq9nPgn2wp3hL4tXOtP8PDXxKb/4SbrI9u6ZZDMibDgKqfNjN9ELnAqjb0 VzZQMfIUTbF73cGgXIJ4/+VQJyA/ZeXCawE7+bVn5KgJ0kqU41b+/1L83n1CjKDQ3hoj MwSnunQIYfWoFS97sSukqG9c9EXIfUjXz1x2qdyGU3CXVLLNx024s6s3k1nPnot1nQNO LKcAZfj9HAR5K0pD3pjdf3nec51bZbT6lwjxleJSZLCXzL1y9vzfwwXP2g5t+SlHanA5 DR+eaqc36sE7kPcSJtUTWckZpVJWqi29AXeb5UB2sC1CsesdGxpiT+7RvQWmybh5uQk6 RyMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eYh60STY; 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 g25si422607edy.603.2020.06.03.14.54.45; Wed, 03 Jun 2020 14:55:08 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eYh60STY; 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 S1726354AbgFCVva (ORCPT + 99 others); Wed, 3 Jun 2020 17:51:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbgFCVva (ORCPT ); Wed, 3 Jun 2020 17:51:30 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03E7BC08C5C0 for ; Wed, 3 Jun 2020 14:51:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=WFKjpmFPNO5zukj90rjGUlaZxkKudJBdthF2cSc+KfU=; b=eYh60STYrQxzv5V5oc2CXmvnzV eA/klZU0qTEOtdIvyxcym3o2couFDr7Xv6qIbf1VHAEFgEItJw0Of3iXeWkUkUSZIeuBBvadeMM3n Tqur5pMfe+/EDZQtY8wJi/zaKPDJDp6g+Li6zPr7Hlb8qeNabAVKTmQwC2e+IiRkEuoDyC7iNDMat bZJP2OQ+05fWiJpsxGU+j6nvSuZwxbj4svujd62PaYpL5NRIwkVx2ssqAqzw3JERk/sWosBaDoZM9 oSBVE5zI8zcFar2wnnYSPmEse/rTTszSr699hxWnpnv22xTeuDSVkJbwBQh7fFopv3144yHRMEkyg B59DqiKA==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jgbIB-0002Iy-1G; Wed, 03 Jun 2020 21:51:23 +0000 Date: Wed, 3 Jun 2020 14:51:22 -0700 From: Matthew Wilcox To: Hugh Dickins Cc: Johannes Weiner , Andrew Morton , Song Liu , "Kirill A. Shutemov" , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mm,thp: stop leaking unreleased file pages Message-ID: <20200603215122.GR19604@bombadil.infradead.org> References: <20200526160140.GC850116@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 27, 2020 at 02:28:10PM -0700, Hugh Dickins wrote: > Saying "source inspection" reminds me: there is another funny in there, > but I don't think it matters very much in practice, and might need > rather a lot of testing to justify any particular patch: where > page_cache_sync_readahead() asks for PAGE_SIZE pages! > > "end - index" seems a more reasonable number to me: but then we > might find that reading ahead into the next huge extent had actually > been a useful optimization (and those readahead functions impose > their own caps, so PAGE_SIZE shouldn't work out too outrageously). That readahead was only added in 99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0 so it probably hasn't really been performance tested yet.