Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp546044ybb; Fri, 3 Apr 2020 07:36:53 -0700 (PDT) X-Google-Smtp-Source: APiQypIEfMf/e6J1JBL7cyEYhZPDp/8SLalezodSld8bJZqoLlhUDOM1ALvwiJnikoJTYtx2QkQ0 X-Received: by 2002:a9d:32b6:: with SMTP id u51mr6725539otb.268.1585924613644; Fri, 03 Apr 2020 07:36:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585924613; cv=none; d=google.com; s=arc-20160816; b=uFWqsthKHNJcuzaEHmP5j8YwuB8DNhxnDOI73H5oImtLtdoiUb77NIJACFac0WIaf7 HTGy0Dz5Yc44/juUF/GNAnM+tepnkEjft556w4xTwrDivwW4a2tEpGLX7VZCrWD4SKN3 6s8BGRndmeZgcWqSfUkOFYRBENWj8Eex4z9G3mQfP9gIwC4VqnDpAI6jFoZj6wQr1dUO IOFYoC+p7NydQim105tRC63LoDOvaTleZcCs5j3m0UBCVTkvDkj+LLaGcBnFh+cw414D Tb43XqpARlZzMbs+HnYYTgUnnj/u5fGKVJcT/fbnaBPI3zL2Ml5gNvU3JocT7G/yS6iq OvEQ== 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=zmPYYW3fxClIYaAQ3d5kwhebWv1mnQ+1ShHjdxdDtmU=; b=TfpfyH29H7J9xk0GTN5YN7xMVGV5caNoyJ12GVq8i/ADfRLRa4An+fRK5FZvwJtf/G u1Zhr/DD+ScnQavSzphIWsNVVPrWdiPSA+sIN5yLpiesYpqF+MuLfKvsZKLaqViUcf/V XbdCR47mPayzqAN27RjNtxfa07q+QzUdFVcNytoJ8qCyVxVBhHkuSFNkK9aw8jZYbGfR LEKqNkxCSzb08x/kr34M3H76CRTkq7xH+KZdRgCa9Ohv7Z/8rpkhsqbd16/QIi8Y4LuZ qTp5XJrnzUztxJa2BLrhgzRlj7FpAOklQUaZehlP304V2gX/wPmUHItcPMvHnoNCcoOZ v5aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=Hf1KZ1qQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m22si4076726otn.81.2020.04.03.07.36.41; Fri, 03 Apr 2020 07:36:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=Hf1KZ1qQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391056AbgDCOgD (ORCPT + 99 others); Fri, 3 Apr 2020 10:36:03 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:34102 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728060AbgDCOgD (ORCPT ); Fri, 3 Apr 2020 10:36:03 -0400 Received: by mail-lj1-f194.google.com with SMTP id p10so7213413ljn.1 for ; Fri, 03 Apr 2020 07:36:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=zmPYYW3fxClIYaAQ3d5kwhebWv1mnQ+1ShHjdxdDtmU=; b=Hf1KZ1qQmdj/mjtE6P1FKY3Ud/bzbLAgQS3JOTKm2ISSGkHwg51cYv/VioKxVCzdQp faSw1d9n5ma/2y5jkAkLT9AM+nz5dJwa08TSRC3KmEl6tehcIshqDmgOu4EogubN1dJk /JDmM5l+j5eM+9wEeOQqAugI7/x38sVvEmhQ6XBZdKTSP6ywp2e4s+5nQeCL4CAfDdVt GO7eOfw+2WyrGTCC1kJdLSrvPAYoUXIMmrt9Je3F8+7XXG6sJUNz3cizBYC2Agu8Kh0e wDla8AziaQ2B1yRbT2cOBRXBceBm9b1WZdFh68d9lHbQ1OtQA2donIqzy1o5DLmnjyl8 cacw== 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:message-id:references :mime-version:content-disposition:in-reply-to; bh=zmPYYW3fxClIYaAQ3d5kwhebWv1mnQ+1ShHjdxdDtmU=; b=fF1yMnaK+SCMFbVPtpAGmThURHuVFftu5ABowqMp3iym2/mvf0cMzJE05FBrd9JCME k82fKBWbtC3JpePKbhMyhw13Z1MY11sLG5nUPPcn2XKsP7cvRxliPqkrv/4N/dzBzofg pVsCl9Tsf2zlAjUmlAMhg7txpYSzVdP83OsAsc0Z2Ax9p15GF98qWVQFbZGJVgGdJdy6 h9IdE3uXr88Pe1z//WMBQ4cvjBNRRHn05EoMaegOUgIPggZ6dzvM6vO72EOAdA4GtCbM M1eUWBP6MlrEFiUrS90/TRwo3MyElf8ZyfBTfLhvNqFBCHOhi6N8OjI+CY/pH2rrlKdK MHGg== X-Gm-Message-State: AGi0PuYpxNvz1Enq8VIzMgho+P8Ch0e4WLkI4rhFOmR9zHN1xdj+B8Ix nCvSy6bSWT9Yz89+7Ncd/ZJ93LZwJEo= X-Received: by 2002:a2e:6809:: with SMTP id c9mr4915106lja.251.1585924561034; Fri, 03 Apr 2020 07:36:01 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id p5sm5923335ljn.99.2020.04.03.07.35.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2020 07:36:00 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id 94A6D10132D; Fri, 3 Apr 2020 17:35:59 +0300 (+03) Date: Fri, 3 Apr 2020 17:35:59 +0300 From: "Kirill A. Shutemov" To: Yang Shi Cc: kirill.shutemov@linux.intel.com, hughd@google.com, aarcange@redhat.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: thp: don't need drain lru cache when splitting and mlocking THP Message-ID: <20200403143559.aex2w7utvkf5rr5y@box> References: <1585337380-97368-1-git-send-email-yang.shi@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1585337380-97368-1-git-send-email-yang.shi@linux.alibaba.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 28, 2020 at 03:29:40AM +0800, Yang Shi wrote: > Since the commit 8f182270dfec ("mm/swap.c: flush lru pvecs on compound > page arrival") THP would not stay in pagevec anymore. So the > optimization made by commit d965432234db ("thp: increase > split_huge_page() success rate") doesn't make sense anymore, which tries > to unpin munlocked THPs from pagevec by draining pagevec. > > And draining lru cache before isolating THP in mlock path is unnecessary > either. > > Cc: Kirill A. Shutemov > Cc: Hugh Dickins > Cc: Andrea Arcangeli > Signed-off-by: Yang Shi Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov