From nobody Tue Oct 21 17:30:22 2025 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4crfT81CBxz6Cdmt for ; Tue, 21 Oct 2025 17:30:36 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: from plan-b.pwste.edu.pl (plan-b.pwste.edu.pl [IPv6:2001:678:618::40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (prime256v1) client-digest SHA256) (Client CN "plan-b.pwste.edu.pl", Issuer "GEANT TLS ECC 1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4crfT76fyXz3ZZX for ; Tue, 21 Oct 2025 17:30:35 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Authentication-Results: mx1.freebsd.org; none Received: from [192.168.7.70] (dom.potoki.eu [62.133.140.50]) (authenticated bits=0) by plan-b.pwste.edu.pl (8.18.1/8.17.2) with ESMTPSA id 59LHUNr7018940 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Tue, 21 Oct 2025 19:30:24 +0200 (CEST) (envelope-from zarychtam@plan-b.pwste.edu.pl) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=plan-b.pwste.edu.pl; s=plan-b-mailer; t=1761067824; bh=JUTqggvB0jTJqg0efa7BqGkzos+rIhwvlswdKTvt/uA=; h=Date:Subject:To:References:From:In-Reply-To; b=MNkiOylD8oL8YS7OtN3mVF9uD6s9kwuRw/JFX3NE665SiBCkyUjWF5doVGHOe39Ub IK/p0yESRzSHdlbHHDDiaen2ONWn0fvmiimG8WGTjX6ddXYwyHggV3hIKPswOOsrTM 6hn2dHdqQ9yydp5h6+YCc+Qxv3BE7YlfF+ASvw+rJZQYpNrOcnOMVkq2mX80z7nSgz J7n9nJUb036ho2mcfv2ukSidCNTi7Rq3/OMXOy8KxXrgjkDuxKNGzTwyOz7UuL+Iru Wvp6px8cyt8jUey1uRRSnMz7UJNZOrF0Svdzsm5cvWmG/qzjUxLQnfojq9+MWUnjtp uolWb9kIMuJhg== X-Authentication-Warning: plan-b.pwste.edu.pl: Host dom.potoki.eu [62.133.140.50] claimed to be [192.168.7.70] Message-ID: Date: Tue, 21 Oct 2025 19:30:22 +0200 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: No KERNCONFs w/ RSS? To: Ravi Pokala , "freebsd-net@freebsd.org" References: <1271F554-8F70-41B6-9D25-CDA48A29FBE6@freebsd.org> Content-Language: en-US From: Marek Zarychta Autocrypt: addr=zarychtam@plan-b.pwste.edu.pl; keydata= xsBNBFfi3cMBCADLecMTFXad4uDXqv3eRuB4qJJ8G9tzzFezeRnnwxOsPdytW5ES2z1ibSrR IsiImx6+PTqrAmXpTInxAi7yiZGdSiONRI4CCxKY9d1YFiNYT/2WyNXCekm9x29YeIU7x0JB Llbz0f/9HC+styBIu2H+PY/X98Clzm110CS+n/b9l1AtiGxTiVFj7/uavYAKxH6LNWnbkuc5 v8EVNc7NkEcl5h7Z9X5NEtzDxTOiBIFQ/kOT7LAtkYUPo1lqLeOM2DtWSXTXQgXl0zJI4iP1 OAu4qQYm2nXwq4b2AH9peknelvnt1mpfgDCGSKnhc26q6ibTfMwydp+tvUtQIQYpA6b9ABEB AAHNN01hcmVrIFphcnljaHRhIChQbGFuLWIpIDx6YXJ5Y2h0YW1AcGxhbi1iLnB3c3RlLmVk dS5wbD7CwHcEEwEIACEFAlfi4LkCGwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQHZW8 vIFppoJXdgf8D9X3VRFSNaR9lthS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qf/Ip9V4= In-Reply-To: <1271F554-8F70-41B6-9D25-CDA48A29FBE6@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4crfT76fyXz3ZZX W dniu 20.10.2025 o 19:48, Ravi Pokala pisze: > Hi folks, > > I remember watching support for Receive-Side Scaling going into the source tree years ago. AFAIK, it is a fairly mature feature at this point. > > I was surprised to see that it is not included in any KERNCONF, or even in NOTES so it is part of LINT. Is there a particular reason why it's not at least in NOTES? > > Thanks, > > Ravi (rpokala@) > When I first tried to learn about RSS implementation a few years ago, it seemed like a mystery - almost a "holy grail". But as I investigated further, step by step, I realized that hardly anyone is actually using it. The code still exists here and there, but it’s rarely built. People seem either cautious or unconvinced about any real advantages of these code samples hidden under #ifdefs. At times, RSS feels like a kind of "snake oil" among kernel options. That said, the code is still buildable. One genuinely beneficial feature for me is the change in ECMP routing - the way hashing, tuples, etc, are calculated differs depending on whether "options RSS" is enabled. When RSS is used, the paths are just more predictable for UDP. I have not really read or studied the code, but rather looked how packets are forwarded. ECMP routing with FreeBSD is quite a new feature, introduced by melifaro@ with netlink(4). People rarely use FreeBSD as a router nowadays, so the feedback is limited and very narrow. Another, perhaps more subjective, observation is that when a BGP session is established and the router is pulling the full-view routing table - or when it’s stressed by a high packet-per-second load in a congested network - performance seems better with both "options RSS" and net.isr.dispatch="deferred" enabled. In these cases, routing feels faster, packet latency is lower, and the improvement is noticeable, for example, in the audio quality of VoIP calls, I had not taken any measures though. Good luck with adding "options RSS" to one of the standard kernel configs! Cheers! Marek