freebsd-dev/sys
Andrew Gallatin 8b0dafdb2f vm: implement vm_page_reclaim_contig_domain_ext()
Implement vm_page_reclaim_contig_domain_ext() to reclaim multiple
contiguous regions at once.  This makes it more efficient for users
that need multiple contiguous regions to reclaim those regions
efficiently.

This is needed because callers like ktls may need to reclaim many
contiguous regions, and each scan of physical memory can take
multiple seconds on a large memory machine (order of 100GB of
RMA).  Rather than modifying the core algorithm, I extended
vm_page_reclaim_contig_domain() to take a "desired_runs" argument to
allow the caller to request that it reclaim more than just a single
run. There is no functional change intended for all existing
callers.

The first user for this interface is the ktls code
(https://reviews.freebsd.org/D39421). By reclaiming multiple runs,
ktls goes from consuming hours of CPU to refill its buffer zone to
just seconds or minutes.

Differential Revision: https://reviews.freebsd.org/D39739
Sponsored by:	Netflix
Reviewed by:	alc, jhb, markj
2023-05-09 13:09:34 -04:00
..
amd64 amd64 MINIMAL: SysV IPC syscalls are loadable 2023-05-09 18:30:07 +03:00
arm hwpmc: use kstack_contains() 2023-05-06 14:49:19 -03:00
arm64 arm64/disassem.c: Add detection of xzr and sp 2023-05-08 10:59:35 -03:00
bsm
cam
cddl
compat
conf
contrib zfs: merge openzfs/zfs@d96e29576 2023-05-03 12:04:55 +02:00
crypto
ddb
dev Revert "uart(4): add Sunrise Point UART controllers" 2023-05-09 01:38:32 -05:00
dts
fs unionfs(): destroy root vnode if upper registration fails 2023-05-07 18:30:43 -05:00
gdb
geom
gnu
i386 hwpmc: use kstack_contains() 2023-05-06 14:49:19 -03:00
isa
kern locks: fix two potential overflows in the lock delay code 2023-05-09 16:20:49 +00:00
kgssapi
libkern
modules zfs: merge openzfs/zfs@d96e29576 2023-05-03 12:04:55 +02:00
net if_ovpn: notify userspace when we've used half of the sequence numbers 2023-05-08 16:43:25 +02:00
net80211
netgraph
netinet bblog: inherit TCP_LOG option from listener 2023-05-06 11:21:16 +02:00
netinet6
netipsec
netlink netlink: fix compiler warnings 2023-05-09 15:26:16 +00:00
netpfil sys/netpfil/ipfw/ip_fw2.c: typo (Compatiblity) 2023-05-05 01:23:08 +01:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc imgact_elf: Change header_supported to return bool instead of boolean_t. 2023-05-04 12:29:29 -07:00
riscv hwpmc: use kstack_contains() 2023-05-06 14:49:19 -03:00
rpc
security
sys Revert "cpuset: increase userland maximum size to 1024" 2023-05-09 13:05:00 -04:00
teken
tests
tools
ufs
vm vm: implement vm_page_reclaim_contig_domain_ext() 2023-05-09 13:09:34 -04:00
x86 sys/x86/x86/mptable.c: typo (compatiblity) 2023-05-05 01:23:09 +01:00
xdr
xen
Makefile
README.md

FreeBSD Kernel Source:

This directory contains the source files and build glue that make up the FreeBSD kernel and its modules, including both original and contributed software.

Kernel configuration files are located in the conf/ subdirectory of each architecture. GENERIC is the configuration used in release builds. NOTES contains documentation of all possible entries. LINT is a compile-only configuration used to maximize build coverage and detect regressions.

Source Roadmap:

Directory Description
amd64 AMD64 (64-bit x86) architecture support
arm 32-bit ARM architecture support
arm64 64-bit ARM (AArch64) architecture support
cam Common Access Method storage subsystem - cam(4) and ctl(4)
cddl CDDL-licensed optional sources such as DTrace
conf kernel build glue
compat Linux compatibility layer, FreeBSD 32-bit compatibility
contrib 3rd-party imported software such as OpenZFS
crypto crypto drivers
ddb interactive kernel debugger - ddb(4)
fs most filesystems, excluding UFS, NFS, and ZFS
dev device drivers and other arch independent code
gdb kernel remote GDB stub - gdb(4)
geom GEOM framework - geom(4)
i386 i386 (32-bit x86) architecture support
kern main part of the kernel
libkern libc-like and other support functions for kernel use
modules kernel module infrastructure
net core networking code
net80211 wireless networking (IEEE 802.11) - net80211(4)
netgraph graph-based networking subsystem - netgraph(4)
netinet IPv4 protocol implementation - inet(4)
netinet6 IPv6 protocol implementation - inet6(4)
netipsec IPsec protocol implementation - ipsec(4)
netpfil packet filters - ipfw(4), pf(4), and ipfilter(4)
opencrypto OpenCrypto framework - crypto(7)
powerpc PowerPC/POWER (32 and 64-bit) architecture support
riscv 64-bit RISC-V architecture support
security security facilities - audit(4) and mac(4)
sys kernel headers
tests kernel unit tests
ufs Unix File System - ffs(7)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures