From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFAE8C433ED for ; Mon, 19 Apr 2021 22:57:22 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A21EE60FF1 for ; Mon, 19 Apr 2021 22:57:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A21EE60FF1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3AE446B006C; Mon, 19 Apr 2021 18:57:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 35D446B006E; Mon, 19 Apr 2021 18:57:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 225B96B0070; Mon, 19 Apr 2021 18:57:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0145.hostedemail.com [216.40.44.145]) by kanga.kvack.org (Postfix) with ESMTP id 086726B006C for ; Mon, 19 Apr 2021 18:57:22 -0400 (EDT) Received: from smtpin39.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id AE382180AD830 for ; Mon, 19 Apr 2021 22:57:21 +0000 (UTC) X-FDA: 78050629482.39.30BA7E9 Received: from mail-il1-f169.google.com (mail-il1-f169.google.com [209.85.166.169]) by imf25.hostedemail.com (Postfix) with ESMTP id 2CD06600011E for ; Mon, 19 Apr 2021 22:57:18 +0000 (UTC) Received: by mail-il1-f169.google.com with SMTP id v13so14491093ilj.8 for ; Mon, 19 Apr 2021 15:57:20 -0700 (PDT) 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=jrWwcCLWSyD+ImzZIaLb1cLmYM5uMBiR0FllZtNDzxM=; b=jOJltBUW9+vYXwVnBa736vFQtYjfp1kiezYjKSqyQ8BuyyhXx6nZXuu/D79E0l5/k3 wF5LrUYt/WlZSOI1bezDU9gaoMv6Se1yQKJ7LYBez80004gHG91eeCrxk0Anjf15cmqr cQrftp6mnkO9wanCA3FXG88oBoouxBAU5xt1OzTSiru+AFRwdDDCb6tVU7TnDfOME2b3 R22cPhHgIiRYuD7mUBxeoXYXW5eWNdzpRZJB/nRjv94X/M9xKXj17afhJVkaG83g6hag sn2Pexm+3p8klyzbyQ9Ez8H9QUmYjQUIZES2WmdOnZRXsk6usce/3q3kUtF67KLnba3K SLPw== X-Gm-Message-State: AOAM531ZNkqXlqgZLXmOG4acE0p0IZJ5WCml+ZBWWk6fZ6OOowHSQWaM +pYKKyVhxHBAc4DxDcnm3DE= X-Google-Smtp-Source: ABdhPJzYfwGn+0dXodaH6TI4sxioXh8kIS9bLA2EMu6Pk6tLlZ/nnrT8KM/Tsj1uAAh0u04EQ7zR2A== X-Received: by 2002:a05:6e02:20ef:: with SMTP id q15mr20482776ilv.167.1618873040559; Mon, 19 Apr 2021 15:57:20 -0700 (PDT) Received: from google.com (243.199.238.35.bc.googleusercontent.com. [35.238.199.243]) by smtp.gmail.com with ESMTPSA id r11sm6249069ilq.29.2021.04.19.15.57.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 15:57:20 -0700 (PDT) Date: Mon, 19 Apr 2021 22:57:18 +0000 From: Dennis Zhou To: Pratik Sampat Cc: Roman Gushchin , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 0/4] percpu: partial chunk depopulation Message-ID: References: <20210419225047.3415425-1-dennis@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210419225047.3415425-1-dennis@kernel.org> X-Rspamd-Queue-Id: 2CD06600011E X-Stat-Signature: x3rnofrqepoyam8dmet7pit4j19ehnqs X-Rspamd-Server: rspam02 Received-SPF: none (gmail.com>: No applicable sender policy available) receiver=imf25; identity=mailfrom; envelope-from=""; helo=mail-il1-f169.google.com; client-ip=209.85.166.169 X-HE-DKIM-Result: none/none X-HE-Tag: 1618873038-651510 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Apr 19, 2021 at 10:50:43PM +0000, Dennis Zhou wrote: > Hello, > > This series is a continuation of Roman's series in [1]. It aims to solve > chunks holding onto free pages by adding a reclaim process to the percpu > balance work item. > > The main difference is that the nr_empty_pop_pages is now managed at > time of isolation instead of intermixed. This helps with deciding which > chunks to free instead of having to interleave returning chunks to > active duty. > > The allocation priority is as follows: > 1) appropriate chunk slot increasing until fit > 2) sidelined chunks > 3) full free chunks > > The last slot for to_depopulate is never used for allocations. > > A big thanks to Roman for initiating the work and being available for > iterating on these ideas. > > This patchset contains the following 4 patches: > 0001-percpu-factor-out-pcpu_check_block_hint.patch > 0002-percpu-use-pcpu_free_slot-instead-of-pcpu_nr_slots-1.patch > 0003-percpu-implement-partial-chunk-depopulation.patch > 0004-percpu-use-reclaim-threshold-instead-of-running-for-.patch > > 0001 and 0002 are clean ups. 0003 implement partial chunk depopulation > initially from Roman. 0004 adds a reclaim threshold so we do not need to > schedule for every page freed. > > This series is on top of percpu$for-5.14 67c2669d69fb. > > diffstats below: > > Dennis Zhou (2): > percpu: use pcpu_free_slot instead of pcpu_nr_slots - 1 > percpu: use reclaim threshold instead of running for every page > > Roman Gushchin (2): > percpu: factor out pcpu_check_block_hint() > percpu: implement partial chunk depopulation > > mm/percpu-internal.h | 5 + > mm/percpu-km.c | 5 + > mm/percpu-stats.c | 20 ++-- > mm/percpu-vm.c | 30 ++++++ > mm/percpu.c | 252 ++++++++++++++++++++++++++++++++++++++----- > 5 files changed, 278 insertions(+), 34 deletions(-) > > Thanks, > Dennis Hello Pratik, Do you mind testing this series again on POWER9? The base is available here: https://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu.git/log/?h=for-5.14 Thanks, Dennis