Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26521699rwd; Mon, 3 Jul 2023 10:49:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlF3okdIOa1QA+oZHRsO4C6RkwEM/2XPITlieEx3sAuiFKWMWkO9t5eQRddhB1w2vrapKRPC X-Received: by 2002:a05:6871:450a:b0:1b0:8b59:8b24 with SMTP id nj10-20020a056871450a00b001b08b598b24mr10788717oab.22.1688406568752; Mon, 03 Jul 2023 10:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688406568; cv=none; d=google.com; s=arc-20160816; b=RrpLrLsQg4+oSUgzxH2b41XZVtT4VKrNJHRZt7xMSGHHekbTzI47BQX+xTuYAw8fRh kIexDHRyMQzW0Nf6ss5WXCxBGrTKQ3EWFVLmyA9dOyQlsaR1jkQkl9mstk4SvHltinb/ qHvLX5dwGRznP9NBHg37j3BcY5enxn3ZXorTozenr2XhSThUjFvY9m5Pc1ZkpmfaCnwT p/9CO8YF5+JCHq4POCY9b96h+Jjcvtazt5pVBRgMklsWVvIetisifKQKs9h77nWvYGLM seJ7mFSeYoZyupNyfu2t0X6zLYsZ0zLHw1+QCgrr+duaXR4KYgQ3jrZBTbZ8xEdH7DT1 iCYQ== 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; bh=JHuXO6KmM7rVS64RAceoAo/OEGuOfsDBHbble3DzY0A=; fh=y77uYSV9NvDrMLiGYii1K01BYWWngQDk2HlQ+uBvnsw=; b=qn17H2DszZLWI/HtKZNmqUO/x9XimXt2wsPPa19CcTlprlcJSXkOltH3ZWEv7XDT7F KounKoOhVvIYjLyvrPlRqY42UWz+SHVYJTcSYnHu9gP20kzYA6THZBk5xGlu6iRlfTHY oxIqbMc+TAPm5UuFNvswQJP7XSGPDq8CAY9cGobq/mkljzg0XHuzX7m4+t2IMatXSlSS wvqHMmWTnZQb8Fcm9e7KOntsuEBK5P5gnrwfQK40Oj/NB22Aw0ZWxLuSIORiGYZrG2D7 zU4CizkckxusQV2PnUTln/WfMCgA5CDktqE2rJi/imCWcpcqm2lmgeo/P8blydZsNat5 0l3w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 27-20020a17090a195b00b0026392f5758bsi6008257pjh.105.2023.07.03.10.49.13; Mon, 03 Jul 2023 10:49:28 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230156AbjGCRPN (ORCPT + 99 others); Mon, 3 Jul 2023 13:15:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbjGCRPM (ORCPT ); Mon, 3 Jul 2023 13:15:12 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E9C89B2; Mon, 3 Jul 2023 10:15:10 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0A1662F4; Mon, 3 Jul 2023 10:15:53 -0700 (PDT) Received: from FVFF77S0Q05N (unknown [10.57.27.109]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6D85E3F663; Mon, 3 Jul 2023 10:15:08 -0700 (PDT) Date: Mon, 3 Jul 2023 18:15:02 +0100 From: Mark Rutland To: Daniel Borkmann Cc: Puranjay Mohan , ast@kernel.org, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, catalin.marinas@arm.com, bpf@vger.kernel.org, kpsingh@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH bpf-next v4 0/3] bpf, arm64: use BPF prog pack allocator in BPF JIT Message-ID: References: <20230626085811.3192402-1-puranjay12@gmail.com> <7e05efe1-0af0-1896-6f6f-dcb02ed8ca27@iogearbox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7e05efe1-0af0-1896-6f6f-dcb02ed8ca27@iogearbox.net> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 On Mon, Jul 03, 2023 at 06:40:21PM +0200, Daniel Borkmann wrote: > Hi Mark, Hi Daniel, > On 6/26/23 10:58 AM, Puranjay Mohan wrote: > > BPF programs currently consume a page each on ARM64. For systems with many BPF > > programs, this adds significant pressure to instruction TLB. High iTLB pressure > > usually causes slow down for the whole system. > > > > Song Liu introduced the BPF prog pack allocator[1] to mitigate the above issue. > > It packs multiple BPF programs into a single huge page. It is currently only > > enabled for the x86_64 BPF JIT. > > > > This patch series enables the BPF prog pack allocator for the ARM64 BPF JIT. > If you get a chance to take another look at the v4 changes from Puranjay and > in case they look good to you reply with an Ack, that would be great. Sure -- this is on my queue of things to look at; it might just take me a few days to get the time to give this a proper look. Thanks, Mark.