Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3922376rwe; Mon, 17 Apr 2023 05:43:29 -0700 (PDT) X-Google-Smtp-Source: AKy350bEIN9m/E43ZWKdYCLQ6xRztiM0v/iXRPB7utuM/Za9KY5RpD1N9wHT+sO+zm2bVFblhwqt X-Received: by 2002:a05:6a00:1822:b0:63b:68bf:f764 with SMTP id y34-20020a056a00182200b0063b68bff764mr15926817pfa.7.1681735409625; Mon, 17 Apr 2023 05:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681735409; cv=none; d=google.com; s=arc-20160816; b=tCPt3OFhvBzjLMGgFUr9R2R8dJpLW3+PTWWFv5k4Ew7c+FMEp7iqRlX8CMyF1VhOJg NJMwO5mgml6HDyyJDIPJzgLBVrzH6xnceFIVlTbPByiTnP74iNa/t3L1+FoqwAlGdrmh a2now3/wN9FC4mx0wlkI7iCYe6Jtpc4F62Vw6cMnIBL6ideWo+dUBdsnMJtB9CT6Yb9R yI3F0QwMEXNcE5MKdHFFbm++5+BryrNh6gJn/dQ1NGRIqvazy9KJsYfS7D45fPvFWQsU DiqxA1mWiQwt661PKDgpNSZcyJ+EsAwrcR3WQpZFxjC9lvouUFpLam8/epzWOIgpiyJS qZwA== 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:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=d8R/DyfPuxRJq8lFo64wBLNVpfrgX/DMbIH8EiFz9DI=; b=ekCkGYKsCny1ggcsBUvzdGQZ/tvsaHCUg/TjG4wOAiYQg+O4zrOhGK6YmIhrz558WP VhznGELDPZQzwGcrh5COax9lhLGc9DETy4IWmrncuU7dN2eq2YAyC9I/LXaVWQ6VaCrg Zn8vs0C6etkZAUVd6hKEo50q+/Kt7/MwOv4ug8BQ1pcTDL1HYuPqyrwaT4Q9RjELmoiS vvxnY7ccBUzSeug3oG4OUBVqp+MAhDx/U+VVzO/i/LZjjO5Zty4ZPve2OF3B7MwTD1GX d/uQrf2qVpswBS+euLgZVoeh4mFj6AfqMS1jvNRchfBQrZU9x07Qab3XSsIgIYkkoyk/ N0lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UMHcNDB1; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020aa79dc9000000b0063af5d600cfsi7886201pfq.302.2023.04.17.05.43.18; Mon, 17 Apr 2023 05:43:29 -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=@redhat.com header.s=mimecast20190719 header.b=UMHcNDB1; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231219AbjDQMlJ (ORCPT + 99 others); Mon, 17 Apr 2023 08:41:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231216AbjDQMk5 (ORCPT ); Mon, 17 Apr 2023 08:40:57 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 792A35B90 for ; Mon, 17 Apr 2023 05:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681735210; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=d8R/DyfPuxRJq8lFo64wBLNVpfrgX/DMbIH8EiFz9DI=; b=UMHcNDB1jMrgHEhRmsyfqDz+JSI4qLExyMI2Erngpqs5g86AtjqsYaqPEsJKvS60AsXojC fwisWZqyAROu2xncRdjujw3Y2VxKH6OE6+3/8JdGZYs6AM2Qu5cDqnHAIwUP+zl3kZxqjt SROV+D202jNpRJHRMfKzAoARtEfASpo= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-316-Z6kkADfHPEOoA1k2mn35Cg-1; Mon, 17 Apr 2023 08:40:07 -0400 X-MC-Unique: Z6kkADfHPEOoA1k2mn35Cg-1 Received: by mail-ed1-f71.google.com with SMTP id b60-20020a509f42000000b00504eca73d05so8733391edf.18 for ; Mon, 17 Apr 2023 05:40:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681735206; x=1684327206; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d8R/DyfPuxRJq8lFo64wBLNVpfrgX/DMbIH8EiFz9DI=; b=GJWAHCintr/I/IHz1XeiIxJtodp5QdqhNKkgR6N+KJdBoToCq5Tn0MPGiSv9yz+Y47 xDnGZKp5Jpv/E4KFy+iDAy8cbpFKN1cgYcYGe6IA3/AOfN8buIz7I+4GnL8KS488yoMu NweS2yzf/60Nq7eOMI7aN+IlKhto0UedmEIRTRjFgvJXWyd+yKV4gDsZQHf6l8AU/ALh 5Oeo8Rblmvh8nLFg6wEfJwy2jinNTrc1oGLFV2sfrLjSFp+GVj/OlqhxPH7/BAvvvo4z NOe/juPbCfkrrk/+A7C/dQ7Vct4B4OXaQI6lCfzX/s7IKGVvjemhNj6m8g8Kwwo2YvRx saog== X-Gm-Message-State: AAQBX9cztLVUH4vB4A49VYWHjl5bmJEpISUiahUTL8KvAQX23oa07Xie R/VFW1nD5L9qCSYZC6tBMH5xreJd2Uy/WyQvtOj7jc0hAyVwQQ/k53+xCSwWFamdBKObj003SgP voOfm6+9DNTISo1FbzcP6l8A5 X-Received: by 2002:a17:906:ae56:b0:932:1af9:7386 with SMTP id lf22-20020a170906ae5600b009321af97386mr7169630ejb.27.1681735206438; Mon, 17 Apr 2023 05:40:06 -0700 (PDT) X-Received: by 2002:a17:906:ae56:b0:932:1af9:7386 with SMTP id lf22-20020a170906ae5600b009321af97386mr7169594ejb.27.1681735206008; Mon, 17 Apr 2023 05:40:06 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id 14-20020a17090601ce00b0094a671c2298sm1119966ejj.62.2023.04.17.05.40.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 05:40:05 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id B7E40AA8452; Mon, 17 Apr 2023 14:40:04 +0200 (CEST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Magnus Karlsson 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 Subject: Re: [PATCH bpf-next v3 1/3] xsk: Support UMEM chunk_size > PAGE_SIZE In-Reply-To: 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> X-Clacks-Overhead: GNU Terry Pratchett Date: Mon, 17 Apr 2023 14:40:04 +0200 Message-ID: <87o7nmwul7.fsf@toke.dk> MIME-Version: 1.0 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,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Magnus Karlsson writes: > 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. Sounds good, thanks! :) -Toke