Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3891834rwe; Mon, 17 Apr 2023 05:15:51 -0700 (PDT) X-Google-Smtp-Source: AKy350YEfVdWWWA4jYubwEjQvjpi8bZOrdtRVbLRdYQmsupAabYFMXChgbtEX4gXyBcbmJIy1fup X-Received: by 2002:a17:90a:ea94:b0:247:afed:6d62 with SMTP id h20-20020a17090aea9400b00247afed6d62mr831167pjz.46.1681733750994; Mon, 17 Apr 2023 05:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681733750; cv=none; d=google.com; s=arc-20160816; b=s0RV8sjtEnlOASRPyRetTpi6niBpikhIx4KTSqs7SnMpcFkvJrzfOQwUPzQwXJ3JXz vQHS/C5suB/nC0mKlSRAbBJ3W05vn+E7YRROz3wejGgcoqzwRwbrgmVQNURHpoCfuRHh 5Rw166miwd2MKwxIcyWZmN7TLYZwjfW/0itXQHd4KcP70XMQMy22xCvR/nbAAo9lPK9g UIeKGkJMYY/ptf5Yay0I4z9V3WQqGh55NFAkMznZ3IvSzUxk7nvYpfVTIuBHG8NWWmeG mSCVL8Vau71cnRe2c547r79ttKgzOgBWWr3s0EatMEUwzWoP0N/jGWOPs88BObmtYAJc qZTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=SHhPz+EuIXTc1mVy+d6/xeEAaq2+DiiC9QI7fkSBxRM=; b=wwhyUEYIbnqOx+H/fsE+OcIt4P+CnqQqJNcQ5vyfRlNRb16KMVQiMVran0/1KZF9Zx YUFT4CyGW68ce9aW/KerVce0G1kk5dy67Pt2WkwkDDBThYE/tW/jjwxpW2+HV3Pwhq1q PffMI1pJJkhSmPK16pLR2DfTM3J7QgLkIY8RxMYgPIdgsJdQ4ig3/FIkbIm9VcFP2WBe l4LbmID2Wa9P7KuxNpAqxoHtt5bRDFeeDK79Xm9zMGy1ujUexYFF1vPIdBUY8Yp1vNbc w3Q7YVuspTxMowz4qX2d6zX01X+6BHh9dnG5WFWTGSkHagg08TXx/vb9sprhP1J9U4pH D2jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=BbNpNiGb; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pc9-20020a17090b3b8900b002478235d3e7si4089740pjb.134.2023.04.17.05.15.39; Mon, 17 Apr 2023 05:15:50 -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=@gmail.com header.s=20221208 header.b=BbNpNiGb; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229841AbjDQMN6 (ORCPT + 99 others); Mon, 17 Apr 2023 08:13:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230323AbjDQMNz (ORCPT ); Mon, 17 Apr 2023 08:13:55 -0400 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A395D4EF1; Mon, 17 Apr 2023 05:13:20 -0700 (PDT) Received: by mail-yb1-xb2e.google.com with SMTP id j15so4428007ybl.10; Mon, 17 Apr 2023 05:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681733598; x=1684325598; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=SHhPz+EuIXTc1mVy+d6/xeEAaq2+DiiC9QI7fkSBxRM=; b=BbNpNiGbmO3q3OE3llCQvT+0cvIcVVESgUqwP8dut5rK3te/4mV2aRs5xtYkhQvdru iGRFHuEBEWCe//1QQNQLiUimO7oiSF4ir2Htu2JU6CmiYEafd+gXthH/+zfYPXh/t7h5 9NLD++wSaozK12jZ8chWzGHWcsLsKfJct47lB5Xb1F4MfkF7BwkwpIDl7MhBbUeW/M3B npoj13RyjRsdrMbuvc3KzJT1ZIMl9ykYe5tbccpAht/h2ipRndQ1/5f68DI8YX2Qs17I hE5aoarx/cm8AKuRLp57e6Dnme68istUazyQVeRZdsGnfZkSXKQrWDDP0e9WaAsOv3H5 oRoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681733598; x=1684325598; h=content-transfer-encoding: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=SHhPz+EuIXTc1mVy+d6/xeEAaq2+DiiC9QI7fkSBxRM=; b=f6yjL6GyHXhP/MI2aa90uMnB0h/pYFhFhIYlzWMFHL240OhvQHqUebhPBKuf09OXiL DvyzOMeleAwNzSppCF6fN8elIxXkGpq07o2xpBQRii8xx7FhOhsrBLFeb7Y+8w4rh4lY QGAu4enB3bY4hVAYF5a4/5WaL6ripMAEvWf3mmm9oD47KDs5anS9r/ld3e2ew8v9pfT2 ffBvq1oT6KHGe37sVEbiYKZyDFzK5BD6fwgMMpT7FrumHOLu2/ssdjOPjHY+X/IgjnXh L49KYa6nWulUB//4eoW2MW0unCjxEum4IjGFIUa5YD+LH5Ia4jBNV516hrO632FniJ2f nJaw== X-Gm-Message-State: AAQBX9ed9/C3v1va5mGOqIaneLgJmZ/zS5ej810aEKlwYl35GlF0h+Tu 9FQz4ceo89dRdE07aHLCmc+WR4uqu1wzQ0dVGD0= X-Received: by 2002:a25:da0b:0:b0:b8f:6f3f:ed20 with SMTP id n11-20020a25da0b000000b00b8f6f3fed20mr7039281ybf.5.1681733597805; Mon, 17 Apr 2023 05:13:17 -0700 (PDT) MIME-Version: 1.0 References: <20230406130205.49996-1-kal.conley@dectris.com> <20230406130205.49996-2-kal.conley@dectris.com> <87sfdckgaa.fsf@toke.dk> <875ya12phx.fsf@toke.dk> <87ile011kz.fsf@toke.dk> <87o7nrzeww.fsf@toke.dk> In-Reply-To: <87o7nrzeww.fsf@toke.dk> From: Magnus Karlsson Date: Mon, 17 Apr 2023 14:13:06 +0200 Message-ID: Subject: Re: [PATCH bpf-next v3 1/3] xsk: Support UMEM chunk_size > PAGE_SIZE To: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= Cc: Kal Cutter Conley , Maciej Fijalkowski , =?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" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Thu, 13 Apr 2023 at 22:52, Toke H=C3=B8iland-J=C3=B8rgensen wrote: > > Kal Cutter Conley writes: > > >> Well, you mentioned yourself that: > >> > >> > The disadvantage of this patchset is requiring the user to allocate > >> > HugeTLB pages which is an extra complication. > > > > It's a small extra complication *for the user*. However, users that > > need this feature are willing to allocate hugepages. We are one such > > user. For us, having to deal with packets split into disjoint buffers > > (from the XDP multi-buffer paradigm) is a significantly more annoying > > complication than allocating hugepages (particularly on the RX side). > > "More annoying" is not a great argument, though. You're basically saying > "please complicate your code so I don't have to complicate mine". And > since kernel API is essentially frozen forever, adding more of them > carries a pretty high cost, which is why kernel developers tend not to > be easily swayed by convenience arguments (if all you want is a more > convenient API, just build one on top of the kernel primitives and wrap > it into a library). > > So you'll need to come up with either (1) a use case that you *can't* > solve without this new API (with specifics as to why that is the case), > or (2) a compelling performance benchmark showing the complexity is > worth it. Magnus indicated he would be able to produce the latter, in > which case I'm happy to be persuaded by the numbers. We will measure it and get back to you. Would be good with some numbers. > In any case, however, the behaviour needs to be consistent wrt the rest > of XDP, so it's not as simple as just increasing the limit (as I > mentioned in my previous email). > > -Toke >