Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3508867rdb; Wed, 13 Sep 2023 14:25:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG53vLJxEmLVmSSjaSqCtU/21Ph0PUAbDfNFLOxdJ8Ats9enBnnRs3d48Z8bKR3yuiJAjDK X-Received: by 2002:a05:6358:5715:b0:142:d40a:82a9 with SMTP id a21-20020a056358571500b00142d40a82a9mr3918799rwf.2.1694640355337; Wed, 13 Sep 2023 14:25:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694640355; cv=none; d=google.com; s=arc-20160816; b=c78LzzO1GFeWX5Pujy3B7wRlbtqW6DszA2RC0Oc3bbmkl5QZoOV/iInNcOwfKGOS6w KQilT/zz077XtlcN2jJZ7b/PNdNNctce78vYjVZxBCF5/M3uvu0XCGZ/qNfr/zUCKWSy 3H0Nzjh1HCnG3McfQ3GE+QDLJwNEUBEgGRDr62KVKFZkFCQagXyCayTacsedDtTwi1Kx E6y0RpW5iAS/w4Uez+o1QZ82sR0+uzJKNp26Ad/z/AAWKlA3cjJZO9sywSOWE53G5+HL NyzpW212I9f7Fqd5N0kIynOcqjG0naowlPQtcZoOg7Rd6EHidH9eUulJnlof8FWdpMzA O1qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IAf3ai1JuGA4NVKNvsJwZNxVrsDBH8DKtDQzp9gt1XQ=; fh=+KmY7Fu4Rqd+UuMxTa02SLBPUTWXvWKXT0NdYeUuruI=; b=0GoDx4meBDzISdR0xCwzxWYRvWiLeTBow1P29bUXu7HkjFGX6kVGMnow15odrK5BR7 qb1nCKhxCDsu75Gup1d0mVRqoBi7T3+vjyg8t0GA68roh6d2KPM+pVpiHm3VtIRJ7EcD 1UovxcXRbHKB0JtaQtS3LTSeuhTe2JyjjmpVFNxMQqmSc2XqTJV423Baun9en9nZqXrQ eNdQ8HhCxKcrvoU9IO45HjZcaiTXy6qzdRnZRj6N7wQHCOkgpFJvx5IIN3x6zBEEnlF4 7TYRRlt3doDdv6BXyrDbs2zlomGS9FC+vw+uhcKVRZePXx2tH3XQemFzdBySuQrHZjjz 5SGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20230601.gappssmtp.com header.s=20230601 header.b=RMZagdEj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id e12-20020a63db0c000000b0055bc23bdde5si11252136pgg.176.2023.09.13.14.25.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 14:25:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20230601.gappssmtp.com header.s=20230601 header.b=RMZagdEj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id E6FED808DB5F; Wed, 13 Sep 2023 06:24:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240727AbjIMNYT (ORCPT + 99 others); Wed, 13 Sep 2023 09:24:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235126AbjIMNYS (ORCPT ); Wed, 13 Sep 2023 09:24:18 -0400 Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A65F19B1 for ; Wed, 13 Sep 2023 06:24:14 -0700 (PDT) Received: by mail-qv1-xf2d.google.com with SMTP id 6a1803df08f44-655d81971ceso24032216d6.2 for ; Wed, 13 Sep 2023 06:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20230601.gappssmtp.com; s=20230601; t=1694611454; x=1695216254; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=IAf3ai1JuGA4NVKNvsJwZNxVrsDBH8DKtDQzp9gt1XQ=; b=RMZagdEjGVAB6Kr6edTbwYoCmks45nPeJ2ZdAryJbpvmbXyBcUoHdA2DZ7zmFguyK/ j4yodQCkyKqOX8WnO5+b/2bmn4JUai9uhQEurDEDk92qENJbl6RWr0NuskzS39tRQRhx exiidvrQbYoNU5PUfRLNBlDQjk2dv0FGY8oaMnTCSEOXDFyr+BKoKQDCgBY21uVTjpuR mj1IEm0EFyFLEdx413tkGT7StVHvv2oNnsJPLX8QIAlXYfxplDry4DQ5d+0GU1S5sSQZ u+xJYGo09x0S+EYScN9SHlfumHOcBMVb93dW1ERTWR90xbarAz8l2eEMce4g4/eSP8OD eK/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694611454; x=1695216254; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IAf3ai1JuGA4NVKNvsJwZNxVrsDBH8DKtDQzp9gt1XQ=; b=sctbxZkPzOtBmrjfpL38hK6SiCRLQSP1ktxnjZiqBS7C5h/hyRcfTA1kl4LJpqD5HM JbdCulRpXyrlTKsny8dVJX3z4HcrcAKyIxT8Gz9WfVUzjecEmASIlJQSghkQwGlxBRye 5OChro1K7ABwDqrGxaEH+083fRmRYj41NQ2RIaBzfKGZSzo0WKoXTxc+xFIf2/OJOcP5 clqciZedEhmNb32hc6tjXzgQeyHq/c1Y523iK43QtaucIo8ityiwYhlehYA1omlj0tJQ EUFRjhiGFnsRTcCKdNyiAZviDHQ6Q9p13VvzRfQMrCnSSVNHNh5bEN9nmvwmiddIsnGa Tq2A== X-Gm-Message-State: AOJu0Yyp7eWdtF/caLUIFINPbGchNRLBxvgNkDUw3LLdEdt82gASrhjK J92lO8cNPOymSs4YiHyTuL4GPQ== X-Received: by 2002:a0c:f804:0:b0:64f:5228:d4bf with SMTP id r4-20020a0cf804000000b0064f5228d4bfmr2241319qvn.62.1694611453706; Wed, 13 Sep 2023 06:24:13 -0700 (PDT) Received: from localhost (2603-7000-0c01-2716-3012-16a2-6bc2-2937.res6.spectrum.com. [2603:7000:c01:2716:3012:16a2:6bc2:2937]) by smtp.gmail.com with ESMTPSA id d3-20020a0caa03000000b0064f741d2a97sm4480552qvb.40.2023.09.13.06.24.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 06:24:13 -0700 (PDT) Date: Wed, 13 Sep 2023 09:24:12 -0400 From: Johannes Weiner To: Vlastimil Babka Cc: Andrew Morton , Mel Gorman , Miaohe Lin , Kefeng Wang , Zi Yan , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/6] mm: page_alloc: remove pcppage migratetype caching Message-ID: <20230913132412.GA45543@cmpxchg.org> References: <20230911195023.247694-1-hannes@cmpxchg.org> <20230911195023.247694-2-hannes@cmpxchg.org> <20230912145028.GA3228@cmpxchg.org> <320c16a7-96b7-65ec-3d80-2eace0ddb290@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <320c16a7-96b7-65ec-3d80-2eace0ddb290@suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Sep 2023 06:24:23 -0700 (PDT) Hello Vlastimil, On Wed, Sep 13, 2023 at 11:33:52AM +0200, Vlastimil Babka wrote: > On 9/12/23 16:50, Johannes Weiner wrote: > > From 429d13322819ab38b3ba2fad6d1495997819ccc2 Mon Sep 17 00:00:00 2001 > > From: Johannes Weiner > > Date: Tue, 12 Sep 2023 10:16:10 -0400 > > Subject: [PATCH] mm: page_alloc: optimize free_unref_page_list() > > > > Move direct freeing of isolated pages to the lock-breaking block in > > the second loop. This saves an unnecessary migratetype reassessment. > > > > Minor comment and local variable scoping cleanups. > > Looks like batch_count and locked_zone could be moved to the loop scope as well. Hm they both maintain values over multiple iterations, so I don't think that's possible. Am I missing something? > > Suggested-by: Vlastimil Babka > > Signed-off-by: Johannes Weiner > > Reviewed-by: Vlastimil Babka Thanks! I'll send this out properly with your tag.