Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0791C6379F for ; Tue, 21 Feb 2023 12:28:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234211AbjBUM2Z (ORCPT ); Tue, 21 Feb 2023 07:28:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233590AbjBUM2Y (ORCPT ); Tue, 21 Feb 2023 07:28:24 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0D8D6EBC for ; Tue, 21 Feb 2023 04:27:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676982464; 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=aH9Zs3Ynup8QEj3M7umA2rpBmSqMBswm4cOHxTio+fY=; b=DaBEhc2LETB0uD+d8kic2GXh0dCawlfAGcfPmJBWsSTj3k9Wm+U7aBRxz8I5sFc2KGSEBi FOIOV1LMFbByLBnD+E1xU+Ch1pP5ofHsjjcanrhdHXG/qdUTr1b+POgE9PSk2GHuvscG0R 14tNKb3Kc4hy/VgqeIfJgjPMNr58m8A= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-493-z7j7yvrvPdyw34_H87sLEA-1; Tue, 21 Feb 2023 07:27:42 -0500 X-MC-Unique: z7j7yvrvPdyw34_H87sLEA-1 Received: by mail-wm1-f71.google.com with SMTP id t1-20020a7bc3c1000000b003dfe223de49so2024081wmj.5 for ; Tue, 21 Feb 2023 04:27:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1676982461; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=aH9Zs3Ynup8QEj3M7umA2rpBmSqMBswm4cOHxTio+fY=; b=bex0QYjjR4Dk3t2SAvCvaa18p93G8FbAysM+uYfevQcEQTvcm/S7YzNBeO753XbqFh njgU25aFYIjI3wwFI3SeWH+7wfH8Z3+Rk2iDlFyHEcoWb7YEe3mq+jaZbb8Kewn36PHv bjvvoVfXS8mPwZ1jVqkcp3o1f20Q25j4NMQP4vd4jGt8s4P+uEkLpdhuJ8IKbzvQpwaQ 7lfJDjuO2MNC1kcXeFJmebDjJMioi4sOc6F+kNEXzl3TE65RTQt9+TWcxed6GrZHox3q +zjCCYzbz40aEEX7H8CCXph4nEDIA80n4CfvLflT/nDEmz8pOdP5yVyNSApOL8lBhd1a lqCA== X-Gm-Message-State: AO0yUKWaby4sOW9v3dF4RrXPU/yYAzmjtYyovZweMW/WH1AZCl9+ijgB PWI8XeN85cgMyeH8RBjiRJ6djiBz04Qt582E/9sr1jFdaNA6HjcN6qtciLyPzTusIINQJt3Z3a9 V6gVtciZ2iAWG2upE X-Received: by 2002:a5d:5956:0:b0:2c5:595a:1c92 with SMTP id e22-20020a5d5956000000b002c5595a1c92mr2875382wri.6.1676982461555; Tue, 21 Feb 2023 04:27:41 -0800 (PST) X-Google-Smtp-Source: AK7set9a3kH8ia6rTQ7nRpyFWjsQn3JJlzvkPw+s98kN7nZ74eIb64/SpsJ2QhQdjDYzZAo5zrZSiA== X-Received: by 2002:a5d:5956:0:b0:2c5:595a:1c92 with SMTP id e22-20020a5d5956000000b002c5595a1c92mr2875370wri.6.1676982461215; Tue, 21 Feb 2023 04:27:41 -0800 (PST) Received: from gerbillo.redhat.com (146-241-121-8.dyn.eolo.it. [146.241.121.8]) by smtp.gmail.com with ESMTPSA id e16-20020adfe390000000b002c54c8e70b1sm4705292wrm.9.2023.02.21.04.27.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:27:40 -0800 (PST) Message-ID: <48429c16fdaee59867df5ef487e73d4b1bf099af.camel@redhat.com> Subject: Re: [PATCH net] udp: fix memory schedule error From: Paolo Abeni To: Jason Xing , willemdebruijn.kernel@gmail.com, davem@davemloft.net, dsahern@kernel.org, edumazet@google.com, kuba@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Jason Xing Date: Tue, 21 Feb 2023 13:27:39 +0100 In-Reply-To: <20230221110344.82818-1-kerneljasonxing@gmail.com> References: <20230221110344.82818-1-kerneljasonxing@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, 2023-02-21 at 19:03 +0800, Jason Xing wrote: > From: Jason Xing >=20 > Quoting from the commit 7c80b038d23e ("net: fix sk_wmem_schedule() > and sk_rmem_schedule() errors"): >=20 > "If sk->sk_forward_alloc is 150000, and we need to schedule 150001 bytes, > we want to allocate 1 byte more (rounded up to one page), > instead of 150001" I'm wondering if this would cause measurable (even small) performance regression? Specifically under high packet rate, with BH and user-space processing happening on different CPUs. Could you please provide the relevant performance figures? Thanks! Paolo