Received: by 2002:a05:6512:23a5:0:0:0:0 with SMTP id c37csp503272lfv; Tue, 15 Feb 2022 07:33:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYuFD0k/5CtUtO5rUxl+wgmgRHAaKfWXVynzir6mfKkrUefe19aUCQV7VxyI5FxB4HkMmN X-Received: by 2002:a05:6402:1ac7:: with SMTP id ba7mr4588264edb.456.1644939236710; Tue, 15 Feb 2022 07:33:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644939236; cv=none; d=google.com; s=arc-20160816; b=SjU0niiBb0J5Ou6wc1HezNqJIouSY6SCPvi//osRinfzao7ARtaQxkdWPlh+YaJ6va BThGQXwvsWWoIDcC5ZTZgXCCBig9eo+0Iw9hZ2egrmL8BmQzZ1RDt30VUNcywm6kbYUr vzX8q2kxK1GrUGT4aDafUWtpWJBiXWb8cNICoixu3nmPuZs/bJs7HJ10A7s4R5Edzrdy qlKY3Vit+ukAHz+fIT8sEukJMFZSjDV0NKyxnKcMICPWBQUhSZAB6CiozLVS/UhzM/Ly rd1yqWWS89HKPYtd6hgsP4lyWaIc3eIsiPFfLgFeQQ82bQcSgeWUjnDZjv5qFOYcjy+K r7vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Wn7YgVQi4Nhndv0cNySb9gbDbGs89tIt5/n2PqXGtIo=; b=RJFv4ApECLKyuZd1zjIMOmnpfBdwdiMgOskCKwfMw0wU9NgZ352tcBXkCvgjpelfaO mChjTcRjMisXsDNcjzkDRcyUV4zEesXA2vMj9JeR5kYNKPf3KGn6qfpytvmRrQjiwc4D la4f1+RpsXk1pnb5tKoUP2GkGykuh9Nb03y2Vgvp/uEiok8jJqgr/Oz6qpAfBYIewyce mAL62IPSEBQ8sitdkJd5A9ELWzmlfoTSmv5ctZtFD9R5at1YDhKjDCf8WtzQbdHaYpiH LaP4qjDDT4R6g69RTgh1a9ZNYwpZQWguHeQ59+bb5aRqvFFUk7UG4PPt9E1KsLthVdh8 3Tmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ck5si68048edb.0.2022.02.15.07.33.34; Tue, 15 Feb 2022 07:33:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230270AbiBOOws (ORCPT + 99 others); Tue, 15 Feb 2022 09:52:48 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238708AbiBOOv6 (ORCPT ); Tue, 15 Feb 2022 09:51:58 -0500 Received: from outbound-smtp21.blacknight.com (outbound-smtp21.blacknight.com [81.17.249.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26E91120 for ; Tue, 15 Feb 2022 06:51:23 -0800 (PST) Received: from mail.blacknight.com (pemlinmail04.blacknight.ie [81.17.254.17]) by outbound-smtp21.blacknight.com (Postfix) with ESMTPS id AADE0CCB67 for ; Tue, 15 Feb 2022 14:51:22 +0000 (GMT) Received: (qmail 13583 invoked from network); 15 Feb 2022 14:51:22 -0000 Received: from unknown (HELO stampy.112glenside.lan) (mgorman@techsingularity.net@[84.203.17.223]) by 81.17.254.9 with ESMTPA; 15 Feb 2022 14:51:22 -0000 From: Mel Gorman To: Andrew Morton Cc: Aaron Lu , Dave Hansen , Vlastimil Babka , Michal Hocko , Jesper Dangaard Brouer , LKML , Linux-MM , Mel Gorman Subject: [PATCH 0/5] Follow-up on high-order PCP caching Date: Tue, 15 Feb 2022 14:51:06 +0000 Message-Id: <20220215145111.27082-1-mgorman@techsingularity.net> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 44042b449872 ("mm/page_alloc: allow high-order pages to be stored on the per-cpu lists") was primarily aimed at reducing the cost of SLUB cache refills of high-order pages in two ways. Firstly, zone lock acquisitions was reduced and secondly, there were fewer buddy list modifications. This is a follow-up series fixing some issues that became apparant after merging. Patch 1 is a functional fix. It's harmless but inefficient. Patches 2-4 reduce the overhead of bulk freeing of PCP pages. While the overhead is small, it's cumulative and noticable when truncating large files. The changelog for patch 4 includes results of a microbench that deletes large sparse files with data in page cache. Sparse files were used to eliminate filesystem overhead. Patch 5 addresses issues with high-order PCP pages being stored on PCP lists for too long. Pages freed on a CPU potentially may not be quickly reused and in some cases this can increase cache miss rates. Details are included in the changelog. mm/page_alloc.c | 128 ++++++++++++++++++++++++------------------------ 1 file changed, 64 insertions(+), 64 deletions(-) -- 2.31.1