Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2407869rwr; Fri, 21 Apr 2023 08:29:36 -0700 (PDT) X-Google-Smtp-Source: AKy350ZEkWmrz+QN5ezzTA7y0Rw/BQrbztFDEX0+0jV8yNZ86SN05LVaXwwBiuiyYF0+za+6TE8z X-Received: by 2002:a05:6a20:12c8:b0:f2:c9c:6e8b with SMTP id v8-20020a056a2012c800b000f20c9c6e8bmr6252817pzg.3.1682090975699; Fri, 21 Apr 2023 08:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682090975; cv=none; d=google.com; s=arc-20160816; b=lUIqVpUT96tkQ6DIkGxK7t/7iQie+1NVGNJcZpjtNdMVf6nYGeIxlYuIGiNQdBZOHd pViYPsBEsdqSInu7odJpbb0C0PgywuxIA1u0a5cJW7C0NK6KK0C6Ype6p4ze0TEDzMn5 DqDmHNzJpY5PNw89nTrKpoMUgcyt4Kgx2L8jFyMuAkemBoDfF3t4/UgHiwSog9PLprQu ay/hItOn59dsKK9HJcg/JPSkm7f8cCXL3PVdwE/vLdhd5p4YCqiM01zlTXGuoi4vv1vA ERJ4Z8NKh7dprxTBKFUtBJvAvZtyOclqkIPLBvQGTrBGYztVj9RWqJqMq7+la52ms9pB YN/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gx5GxGtrrjOAGUdwY+1Co2nSlcyUyAY3EIxCkRgyP34=; b=QbQQ6/+cLAbVVvF+tkpIfbC5NXvsFcM9BW281pFLLOyzRML4OuWh5bpK/vYIndj/ap 0egEa0XpIA0rI0hlbWK/sw9L+jnkF7i1oL+nASP8fcU8bee+aj/SEtpOd4AV3nC8WDHL Sgn8TJDH+Bpcj57Uzqyl5sJqs1hgm52jUkmmcrhTqdY4QXuAozQ8UQHCaNYFe1KNWPGL yEkc1fXYJthHFxSmEZzxSc7DhONGr6WAtlgd+RpdOBvbzXJ/7yx1k+iBOiZYzEFlJuaQ 6TtoLLLljRVFl6IC5I6Az0mfeFzGze1k8tRDxzDKDDtwEfVQaft1U76BdkfrQvRTUDmo lLaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dectris.com header.s=google header.b=PxSombqC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=dectris.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5-20020a655c45000000b004fb8fe66ef7si4763383pgr.221.2023.04.21.08.29.12; Fri, 21 Apr 2023 08:29:35 -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=@dectris.com header.s=google header.b=PxSombqC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=dectris.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232862AbjDUP1w (ORCPT + 99 others); Fri, 21 Apr 2023 11:27:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232851AbjDUP1u (ORCPT ); Fri, 21 Apr 2023 11:27:50 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEDFDBB95 for ; Fri, 21 Apr 2023 08:27:46 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5066ce4f490so2646153a12.2 for ; Fri, 21 Apr 2023 08:27:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dectris.com; s=google; t=1682090865; x=1684682865; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gx5GxGtrrjOAGUdwY+1Co2nSlcyUyAY3EIxCkRgyP34=; b=PxSombqCkAsg664VeNNmDxvmdjYf4dVj/5vyCqT9TwatG1st3eDRZnY9a5R4md+08R Wlj29tQkP0zchjP27MtI4tzvWqid3espmDxOLkS0u8O6ChXIbmPMFUBTkEXVXwV9/2rO G2km4+cC+4xjckG50ka0axJFD8eDMEfWiG8fo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682090865; x=1684682865; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gx5GxGtrrjOAGUdwY+1Co2nSlcyUyAY3EIxCkRgyP34=; b=DrouYPGNzuW9EbsuEccSKK8wCbc+H9b1ZBE1352J5MPkfO/noKHTizgI3YKR4wGMdd acqMoKttJss3c4SJu9VNi4xMH+4hvefpZWC0nS2VNHP7locin8GGArM63oaG/xtUyOl6 TlTy5ByNHDSnLgZDKje/hgczv6pRDLYSbhwrG8cOKB/4hXy7y4jBbxBJ/EMvkYz4tfyc Hivvoo+Ic1O+PvU63FCwdrkQhILc0IryrhYyMX9wof7aG5GgyIgY4gL3zLA80pSPhTo3 xiVCTTDnRuW8HfGAJLd8W8ounNsLRuRbB0nT0qiZ1xXy+ilO3TgHc8FEhTuc6WEJw6mm KAKg== X-Gm-Message-State: AAQBX9cklDgibgv9e0AZQMzJ6RiTPfMzPEqTfTMLJ/hg8fNCPhZcU07O t+g7VQ+pG9MVheOwT6iUAc9nSO+fEXPsaz7GI3mrOw== X-Received: by 2002:aa7:d81a:0:b0:504:98f1:464c with SMTP id v26-20020aa7d81a000000b0050498f1464cmr5176775edq.23.1682090865240; Fri, 21 Apr 2023 08:27:45 -0700 (PDT) MIME-Version: 1.0 References: <20230406130205.49996-2-kal.conley@dectris.com> <87sfdckgaa.fsf@toke.dk> <875ya12phx.fsf@toke.dk> <87ile011kz.fsf@toke.dk> <874jpdwl45.fsf@toke.dk> In-Reply-To: From: Kal Cutter Conley Date: Fri, 21 Apr 2023 17:27:33 +0200 Message-ID: Subject: Re: [PATCH bpf-next v3 1/3] xsk: Support UMEM chunk_size > PAGE_SIZE To: Maciej Fijalkowski Cc: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Magnus Karlsson , Jonathan Lemon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 > Here is the comparison between multi-buffer and jumbo frames that I did > for ZC ice driver. Configured MTU was 8192 as this is the frame size for > aligned mode when working with huge pages. I am presenting plain numbers > over here from xdpsock. > > Mbuf, packet size = 8192 - XDP_PACKET_HEADROOM > 885,705pps - rxdrop frame_size=4096 > 806,307pps - l2fwd frame_size=4096 > 877,989pps - rxdrop frame_size=2048 > 773,331pps - l2fwd frame_size=2048 > > Jumbo, packet size = 8192 - XDP_PACKET_HEADROOM > 893,530pps - rxdrop frame_size=8192 > 841,860pps - l2fwd frame_size=8192 Thanks so much for sharing these initial results! Do you have similar measurements for ~9000 byte packets in unaligned mode? We typically receive packets larger than 8192 bytes. > > Kal might say that multi-buffer numbers are imaginary as these patches > were never shown to the public ;) but now that we have extensive test > suite I am fixing some last issues that stand out, so we are asking for > some more patience over here... overall i was expecting that they will be > much worse when compared to jumbo frames, but then again i believe this > implementation is not ideal and can be improved. Nevertheless, jumbo > frames support has its value. You made me chuckle ;-) Any measurements people can provide are helpful, even if they must be taken with a grain of salt. ;-). How much of your test suite can be upstreamed in the future? My assumption was the difference should be measurable, at least you have confirmed that. :-)