Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp842192ybg; Wed, 3 Jun 2020 15:25:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkq2rR/IBUnbEs2YRrxvQxZKuKi8kKNlJwrsZekqyp1dxh68OfykmrZimgaNCb6aqxAsil X-Received: by 2002:a05:6402:17af:: with SMTP id j15mr1509802edy.67.1591223111342; Wed, 03 Jun 2020 15:25:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591223111; cv=none; d=google.com; s=arc-20160816; b=dZU/HO+ZIkXygY6eF2yKmrfQ1hCGO89gqfoMG0yptUPe0JgVeTiNiRPPMWgw3kf/uL V/53nps4QMYpGX48uMbGH7le0WGhUPz+gv7Hnw0PZauMVMu36DEuRfGgXNbIh+pymUI4 asI4FsZVNtjZ4cm2ZUjATkL9hYMS+rPUXvSWBWi6a32ylbibN8lWfCcNwXjday2Rn6gj aKiNTrCG98h+KvLfAEp32qHg1lYy5azoQmxONydDyBYxCOM1vPvIQngSTzT0FePjX6VK ytDdSbCi7MhCkOck18cWJ9ghEatQagRRqWoCBwbGbQZFgChdSVzhzo8X3xzFDeMNthyd SYng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=u8bt+zJqcOzYuwXNEkBi3TSw8qIySQwkMwxxZhfbW18=; b=EWtkWz/3wPeEGMSxHxQdzdmGtmCpUh37QeigWztHjcPvmJOls7QEuEwPkv0vch1L+7 F8Cr4vMjMBr+EFgzgH8MKUYHuclbHMyPuHs4ycIqTdYiS/VrAx5HKPYbVHQ38J99fhOr OOpX7AT5ksUqbmlcyfiUMbWyG/To0K6o8s3NGOhgToCZ7CbcGYDc93evbZs52TOPodS0 nZpcMpKnUPnJXC3Gw0V4uC0Tvpvb0DBrcAYVV1BagyPdpoxfqIt2xXJMUnkS/Lde3wsS tIUzNKuSmBpQqsqDJGoOB950/NxvJw/6JaZCOAN0Hqz/sVNyGQaBXYKOf2RByhKVvOHa bGgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=q2j+NT0e; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d14si502926edp.573.2020.06.03.15.24.45; Wed, 03 Jun 2020 15:25:11 -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=pass header.i=@google.com header.s=20161025 header.b=q2j+NT0e; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726837AbgFCWUB (ORCPT + 99 others); Wed, 3 Jun 2020 18:20:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbgFCWUA (ORCPT ); Wed, 3 Jun 2020 18:20:00 -0400 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7B7EC08C5C0 for ; Wed, 3 Jun 2020 15:20:00 -0700 (PDT) Received: by mail-qk1-x743.google.com with SMTP id c14so3974075qka.11 for ; Wed, 03 Jun 2020 15:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=u8bt+zJqcOzYuwXNEkBi3TSw8qIySQwkMwxxZhfbW18=; b=q2j+NT0eKKrPZcaZj7zOdpJf6VRJKe1lfRidzOhPqGQQMYv9LP6cbgWlNpGtOAYYYo 1F8XkS4JBGT45vJQcJQiseFEIZiJsyHIUcmahuuHUvUbA/O3i1sn2RFFPH0LAOu338Lq GZL7uPZ8PPfpOlH9nV2nXPeChGR8mwkfvRcICVF30rJQkLPmMZV+7KLUbHHd98jItvaK aAEfNVpnz2AjS8AUxcd5vS9qSXZk8xJvlC7cOMaR3PuBj35OXO76ZIH1K/aUrhfv5XEn pdTzFxFZs9KXENZRy5YgVfW5jMX61cOnTsCK/Q9xLc7aqEhNi2vQ3DahE9d+fAVSefdf tlpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=u8bt+zJqcOzYuwXNEkBi3TSw8qIySQwkMwxxZhfbW18=; b=hYhoSWhLkudNpkoOdN7opWpY8pkvDOIL6YYO8pi5NqMy5V9WIPyy0EGOCXRs6WT+/G xuZKj8s8qJqF4ltGS6Ezamv8jkTNDkVO8ITGsn+wmmsfCVid0lW3HGOd54vbHBJfDurk SVCZoFjjgeMdH56HcY87ID6+h7NFE3c1XZPJObsixaCjPlS5CZUsmylLKoZ+BkgC4GOA Z7q3e6kWlp6L6pn77NWiL2v4uVo/0fOu3JfuEHFXQI2AvG8BhXi8Wvk/ntcKByFpcEAV jOIrNnf+j85Rle0JQ81x18JpP3sEIW4RlcgPZkCVvKgfakRB7Ayc8mDTAS/wN1pUTSQT XhbQ== X-Gm-Message-State: AOAM531+qj9lB21Whx7J/2HldlIuR8WDVcu7Os8f4y8DDqyT0vfHKxXJ wpUGVhVqrQa1vC6qVYqYi4z3Mg== X-Received: by 2002:a37:9586:: with SMTP id x128mr1874208qkd.312.1591222799472; Wed, 03 Jun 2020 15:19:59 -0700 (PDT) Received: from eggly.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id h50sm3328294qte.25.2020.06.03.15.19.56 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Wed, 03 Jun 2020 15:19:58 -0700 (PDT) Date: Wed, 3 Jun 2020 15:19:42 -0700 (PDT) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Matthew Wilcox cc: Hugh Dickins , 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 In-Reply-To: <20200603215122.GR19604@bombadil.infradead.org> Message-ID: References: <20200526160140.GC850116@cmpxchg.org> <20200603215122.GR19604@bombadil.infradead.org> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 3 Jun 2020, Matthew Wilcox wrote: > 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. I can well imagine that an entirely new body of code, exercised in the background by khugepaged, will not be a leading candidate for performance comparisons - rightly so; but arguing that by the commit being in the tree for only eight months seems... odd :) Hugh