Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1125184rwl; Wed, 12 Apr 2023 08:34:10 -0700 (PDT) X-Google-Smtp-Source: AKy350a4YsOVy1pBP/jr9FE8jfs3Ehyj3I0viLO/okMDDNusHUF1ymgzyOIqsYPFvgF0OTcUxMHi X-Received: by 2002:a17:90b:1b0a:b0:234:ba34:71bf with SMTP id nu10-20020a17090b1b0a00b00234ba3471bfmr23755885pjb.1.1681313650064; Wed, 12 Apr 2023 08:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681313650; cv=none; d=google.com; s=arc-20160816; b=x197Pcx5Ticbtcre3JF4gk7D36Jf/Prq8HroSpFP/4udFXxerSIjBnb3P+jUc+6Ax7 ThWYhpb/GIMbCGINmw/YaV4l5XKvSUEwaGp8/cGfhLmMEp1rQ/JKg0AHLIChhRm1whYG p8oTak1UKwSbnrC1/aNmch36F8tCMtewOr4yEl7JNCzOQCoRMJxNqT+fmZbjD5EYxZEn AyxAjEDSia0d2/FF9bZsBpJTis4s7zgMVMsj/TUlTLrOt3hrzp1LX2ssKGGby8I/A8sR x+t7b08P15ZcH+XBK4GGK117Ao8RGBv8lVZ6euPk3qAOtg4dopuABNG0yjZz4XHldgSG pK4g== 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=jVIUX30CHSeuMRIZ4MbX/VFPgD+9bUpANKvI3RmLVRc=; b=lh/towmW9HfDEWJ7CK/drZ3vuLmJEPVKnNSMhgNwpv+G/Q7Jk15PdoGcL5y0ul5z8q vKcJn6UNlFQkHAHyRhjPEfWrVtb8GF7EfGE5swrCKRG0Ytc7vJFhgoGjtfS/DJMEBHKE keLAT9PjA8N5LwQRjFm0h8IKFdj10++MtUK8CplVXjeuA00idNouGSCUXnYklIeabO59 98orrSpwuzsIyyrrGKNxUfBr3bRAoWZJ+7XJELmADct3XKtfkDDycLutxr9E5xa5/fkd hsZRLBfRHnlChzf5krEJEJRoXjIsIu4jhT9GZNLT5stCXHS/OvOQCGJKDNetHkmAyrKA 7VFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=y5JRgZIJ; 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 h7-20020a17090aea8700b0023d1bcea88bsi2145874pjz.66.2023.04.12.08.33.58; Wed, 12 Apr 2023 08:34:10 -0700 (PDT) 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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=y5JRgZIJ; 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 S230267AbjDLPcC (ORCPT + 99 others); Wed, 12 Apr 2023 11:32:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229826AbjDLPcA (ORCPT ); Wed, 12 Apr 2023 11:32:00 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4ACC65A6; Wed, 12 Apr 2023 08:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=jVIUX30CHSeuMRIZ4MbX/VFPgD+9bUpANKvI3RmLVRc=; b=y5JRgZIJ8RY6GdBqYVEE/YVMEp dqmS2vYU/39+lDvSEZChJo8KFFmv8H+CObQ8w7xEEbiDMJhtF/yb+Sl/X5fUSnZLlwk5OQrb+Uu7o ZkIPfe/2ZZeZXXOqAzImp8FRwvcc9X0cS72YSeedaNoOOZNDB5A+r6WbRAOn5ceLv6Me3d41Soyoe BJBLTcoAnPbOOhKgq5tMK0+vkFJBKfg8+/OO9XGGllNz7hfJ5qiiEcg6g9PP3Or4q28T5+OLNIggI i48okYGNvg3shRsABwU6JgMeVEKYWVJtUTT6ZRFivxtjHE15fUaUidKVR+Nc1Uxpghun2l+zXXadg v88nBQMw==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pmcRi-003dp9-1Q; Wed, 12 Apr 2023 15:31:42 +0000 Date: Wed, 12 Apr 2023 08:31:42 -0700 From: Christoph Hellwig To: David Howells Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , David Ahern , Matthew Wilcox , Al Viro , Christoph Hellwig , Jens Axboe , Jeff Layton , Christian Brauner , Chuck Lever III , Linus Torvalds , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Jeroen de Borst , Catherine Sullivan , Shailend Chand , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Lorenzo Bianconi , Matthias Brugger , AngeloGioacchino Del Regno , Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , Chaitanya Kulkarni , Andrew Morton , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-nvme@lists.infradead.org Subject: Re: [PATCH net-next v6 04/18] mm: Make the page_frag_cache allocator use per-cpu Message-ID: References: <20230411160902.4134381-1-dhowells@redhat.com> <20230411160902.4134381-5-dhowells@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230411160902.4134381-5-dhowells@redhat.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED 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 On Tue, Apr 11, 2023 at 05:08:48PM +0100, David Howells wrote: > Make the page_frag_cache allocator have a separate allocation bucket for > each cpu to avoid racing. This means that no lock is required, other than > preempt disablement, to allocate from it, though if a softirq wants to > access it, then softirq disablement will need to be added. Can you show any performance numbers? > Make the NVMe, mediatek and GVE drivers pass in NULL to page_frag_cache() > and use the default allocation buckets rather than defining their own. Let me ask a third time as I've not got an answer the last two times: why are these callers treated different from the others?