1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00
Mirror of the FreeBSD src repository https://git.FreeBSD.org/src.git .
Go to file
Kevin Bowling a527aa7a7f e1000: Re-add AIM
We originally left this out because iflib modulates interrupts and
accomplishes some level of batching versus the custom queues in the
older driver. Upon more detailed study of the Linux driver which has a
newer implementation, it finally became clear to me this is actually a
holdoff timer and not an interrupt limit as it is conventionally
(statically) programmed and displayed as an interrupt rate. The data
sheets also make this somewhat clear.

Thus, AIM accomplishes two beneficial things for a wide variety of
workloads[1]:

1. At low throughput/packet rates, it will significantly lower latency
(by counter-intuitively "increasing" the interrupt rate.. better
thought of as decreasing the holdoff timer because you will modulate
down before coming anywhere near these interrupt rates).
2. At bulk data rates, it is tuned to achieve a lower interrupt rate
(by increasing the holdoff timer) than the current static 8000/s. This
decreases processing overhead and yields more headroom for other work
such as packet filters or userland.

For a single NIC this might be worth a few sys% on common CPUs, but may
be meaningful when multiplied such as if_lagg, if_bridge and forwarding
setups.

The AIM algorithm was re-introduced from the older igb or out of tree
driver, and then modernized with permission to use Intel code from other
drivers.

I have retroactively added it to lem(4) and em(4) where the same concept
applies, albeit to a single ITR register.

[1]: http://iommu.com/datasheets/ethernet/controllers-nics/intel/e1000/gbe-controllers-interrupt-moderation-appl-note.pdf

Tested by:	cc (https://wiki.freebsd.org/chengcui/testD46768)
Relnotes:	yes
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Sponsored by:	BBOX.io
Differential Revision:	https://reviews.freebsd.org/D46768

(cherry picked from commit 3e501ef896)
2024-10-17 18:42:32 -07:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2022-02-09 12:39:50 -05:00
.github/workflows .github: Update the path used for the homebrew LLVM install on macOS 2024-05-14 12:56:33 -04:00
bin pax: Clear arcn in each read function. 2024-08-01 18:42:34 +02:00
cddl zfs: merge openzfs/zfs@fb6d53206 (zfs-2.1-release) into stable/13 2024-03-01 15:16:06 +01:00
contrib unbound: Vendor import 1.21.1 2024-10-10 12:53:24 -07:00
crypto sshd: remove blacklist call from grace_alarm_timer 2024-08-06 15:46:01 -04:00
etc env: Add a handful of test cases. 2024-10-15 05:26:12 +00:00
gnu Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
include Ensure that soft updates are not enabled by default when using mdmfs(8) 2024-10-12 15:33:05 -07:00
kerberos5 Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
lib Bump lld LINKER_FREEBSD_VERSION for reproducibility fix 2024-10-08 10:37:09 +02:00
libexec rc.d/sendmail: Fix stopping service during shutdown 2024-10-14 12:23:44 +02:00
release release.sh: Pass ARCH_FLAGS when setting VMSIZE 2024-10-15 21:16:18 -07:00
rescue rescue: include ping iff at least one of INET & INET6 is enabled 2023-09-24 11:48:33 -04:00
sbin sysctl.8: fix format typo 2024-10-15 07:18:39 +02:00
secure caroot: routine update 2024-02-13 13:15:13 -06:00
share khelp: Sprinkle const qualifiers where appropriate 2024-10-08 18:07:18 +08:00
stand loader: Change version calculation to be more consistent. 2024-10-17 13:08:21 -06:00
sys e1000: Re-add AIM 2024-10-17 18:42:32 -07:00
targets Merge llvm-project main llvmorg-17-init-19304-gd0b54bb50e51 2024-01-08 00:04:38 +01:00
tests Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-09-07 12:30:19 -04:00
tools stale-symlink-buildworld.sh: improve documentation 2024-09-16 08:32:45 +00:00
usr.bin cmp: Style and type issues. 2024-10-15 05:26:24 +00:00
usr.sbin bhyve: avoid buffer overflow in pci_vtcon_control_send 2024-10-17 08:34:11 -04:00
.arcconfig arcconfig: add callsign again 2020-11-23 04:39:29 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml Cirrus-CI: bump Clang versions to 16 and 17 2024-04-24 10:06:09 -04:00
.clang-format Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore gitignore: whack dead architectures 2023-08-06 21:05:36 +02:00
COPYRIGHT copyrights: Happy New Year 2021 2020-12-31 10:29:44 -05:00
LOCKS Remove $FreeBSD$: one-line bare tag 2023-08-23 11:43:33 -06:00
MAINTAINERS Remove $FreeBSD$: one-line bare tag 2023-08-23 11:43:33 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
Makefile.inc1 Merge llvm-project main llvmorg-17-init-19304-gd0b54bb50e51 2024-01-08 00:04:38 +01:00
Makefile.libcompat Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
ObsoleteFiles.inc Add a few missed libclang_rt files to ObsoleteFiles.inc 2024-04-24 23:26:28 +02:00
README.md hier(7): remove text describing /usr/src layout 2022-12-05 12:37:07 -04:00
RELNOTES Remove $FreeBSD$: one-line bare tag 2023-08-23 11:43:33 -06:00
UPDATING Add UPDATING note about running make delete-old after libc++ 18 upgrade 2024-09-08 09:51:37 +02:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING* for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.