Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp982130ybm; Wed, 27 May 2020 12:51:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrklgW4Zu9ePVHC2AOSDEWaQZhJiiTa0hVyVI6fnJSTnh+5HSmeZHvx4aEj/+Ku5DA6PZA X-Received: by 2002:a17:906:3a0d:: with SMTP id z13mr7393464eje.122.1590609112736; Wed, 27 May 2020 12:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590609112; cv=none; d=google.com; s=arc-20160816; b=tQkYg1BNc5UIJ2WwdgeB3CZ6cSuwqeaM60fznSsiTownwcE/ph7d0zIS0+bT7CDqwg wfoK1mQXXfMP3HLn3OQhVmRms9CQN7l0y9d4Piv4f9d/oHdILi7e3K56Q/1HWV4BENAi BmyXxrRs3fnFVa1vq748hFO44HVpLsQpUS1TisAJvToh+88LMWB/fdDmPWcBUkF+3IJt /AVBh/rOcdI1zf15lqOj3y5r1cQRGaTMORA74FVPPfX04LK15U1JDQEdoDD7gCS9f6h6 WNh5szBGthJRa6QfvJExr48XfX8ecZG8SLJ9+yIRX7yQ9lU3kRpMLi59CX2VC0sEPYTd /bmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5aQnJXyiQA3IowsNfVoOSqHgT1OkRmP0E5K+YnP6bZ0=; b=TDzxJpDi6QsmAFFLDwRolVvwBG4AcHs2heXr6scEeEtQTkAVI9IG1ICLRbA1S9hiQb uM1qezdgL74XXpTUeCAKaJJYKYAHdgTqtsjQS+Avn+D1kkPx8tgZzkoeq0326MTzRRPF QiRbertCIzJMsXvIAM41ncI1WAN0wZdg9wHhcqSYgxLlyRrVq5AhfsO/0+50vfdHrGRv PNGG6kFCvmblaqKKYQaEjdnHAtGVzOvUXwC9TINSFsrEPofFwlCcLE9FZx3U08xulVEi SxpobxDzgtB5ar2La8x41kNsQukj7gmNpOYscaWKL8hh+2AMiREBKpapGaCMTGkexcgQ lPWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=TnvOhSKl; 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 c14si2186009edw.287.2020.05.27.12.51.29; Wed, 27 May 2020 12:51:52 -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=TnvOhSKl; 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 S1728472AbgE0Tsf (ORCPT + 99 others); Wed, 27 May 2020 15:48:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726129AbgE0Tse (ORCPT ); Wed, 27 May 2020 15:48:34 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A70EC05BD1E for ; Wed, 27 May 2020 12:48:33 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id m18so30422911ljo.5 for ; Wed, 27 May 2020 12:48:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5aQnJXyiQA3IowsNfVoOSqHgT1OkRmP0E5K+YnP6bZ0=; b=TnvOhSKlFxE31tFdDGs7QlyMOK6Y7cUfkHrTbOmzpDgDbGW+JPoveR4i0MYR41TeBh z3XnFBVgJIiV5+i6dphaBvKpRVeqDNoT8mp9flwB3oLqK1X+fKUW4N0cq1KlbOxLaPD9 Oa23F4+5CyZa0ZuPBk7SL9bZg/5tT/T3VwRO4DQnpNMjhqK/pwF2PDzUOFa1n1wSpaeh EwhNhB4cA+b/YBoGMYrYiD2SZEprrV0KkYUySrjMaaqPGLzkzYx+J+ACdgcVMl8lAxwC 0oA2BItbx/b+YNSeQcDZX1HHFzlW05hAPbrEyTQnb8VcyMMKWD1rAKGjasJC4kcIOcN/ ZeIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5aQnJXyiQA3IowsNfVoOSqHgT1OkRmP0E5K+YnP6bZ0=; b=lQpR2X08XheWcLAjLEIxUJdEzU1yr5Vip8YRMiF/zgCE7YN4D2NMxWlm7IF+TeeF88 SyfsqWef4mGs5zscbWBCZsSDv6T0GvD2j9NiTH7OjDFXrYX5fYKSwDsdSGJ4/gurTbwZ NesSPeRvMKAop7R7isJqlrFEunbJ0XVKmAUsdnas0XVA8tAvJW66QD9q3G7xJjMGF152 fjCO8r8Gxlgncyi21Icy8gljpmrgiP8wmGPJ9ZiPCyrgu7h/ln7ovq1FnZw35W+G9+Jz mqviJu7nQPOWhn5rl240vRPHr0G4lJBQp9qdUO105T8cmBBrO1yfNNcdCp454XfouP/Y n+Sg== X-Gm-Message-State: AOAM530el0J8GBStTHCntUm8yyk5C5vh5PZbFKlrT24ymZvWl/S5b2bS RJqGR1vIZsYyrgBYin6Go3KEhWP9yZVi25zgxbpKBg== X-Received: by 2002:a2e:8e79:: with SMTP id t25mr4050863ljk.446.1590608911447; Wed, 27 May 2020 12:48:31 -0700 (PDT) MIME-Version: 1.0 References: <20200520232525.798933-1-hannes@cmpxchg.org> <20200520232525.798933-2-hannes@cmpxchg.org> In-Reply-To: <20200520232525.798933-2-hannes@cmpxchg.org> From: Shakeel Butt Date: Wed, 27 May 2020 12:48:20 -0700 Message-ID: Subject: Re: [PATCH 01/14] mm: fix LRU balancing effect of new transparent huge pages To: Johannes Weiner Cc: Linux MM , Rik van Riel , Minchan Kim , Michal Hocko , Andrew Morton , Joonsoo Kim , LKML , Kernel Team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 20, 2020 at 4:28 PM Johannes Weiner wrote: > > Currently, THP are counted as single pages until they are split right > before being swapped out. However, at that point the VM is already in > the middle of reclaim, and adjusting the LRU balance then is useless. > > Always account THP by the number of basepages, and remove the fixup > from the splitting path. > > Signed-off-by: Johannes Weiner > Reviewed-by: Rik van Riel > Acked-by: Michal Hocko > Acked-by: Minchan Kim Reviewed-by: Shakeel Butt