freebsd-dev/sys
Mark Johnston 369706a6f8 buf: Fix the dirtybufthresh check
dirtybufthresh is a watermark, slightly below the high watermark for
dirty buffers.  When a delayed write is issued, the dirtying thread will
start flushing buffers if the dirtybufthresh watermark is reached.  This
helps ensure that the high watermark is not reached, otherwise
performance will degrade as clustering and other optimizations are
disabled (see buf_dirty_count_severe()).

When the buffer cache was partitioned into "domains", the dirtybufthresh
threshold checks were not updated.  Fix this.

Reported by:	Shrikanth R Kamath <kshrikanth@juniper.net>
Reviewed by:	rlibby, mckusick, kib, bdrewery
Sponsored by:	Juniper Networks, Inc., Klara, Inc.
Fixes:		3cec5c77d6
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D28901
2021-02-25 10:04:44 -05:00
..
amd64 Limit when we call DELAY from KCSAN on amd64 2021-02-25 12:38:05 +00:00
arm Remove __XSCALE__ checks from the arm code 2021-02-19 15:31:26 +00:00
arm64 arm64: Include NUMA locality info in the CPU topology 2021-02-18 10:51:38 -05:00
bsm Add aio_writev and aio_readv 2021-01-02 19:57:58 -07:00
cam Bump CTL block backend threads from 14 to 32 per LUN. 2021-02-23 11:03:32 -05:00
cddl Reimplement the arm64 dtrace_gethrtime(), which provides the 2021-02-19 09:00:39 +00:00
compat Use atomic loads/stores when updating td->td_state 2021-02-18 14:02:48 +00:00
conf smbios: Move smbios driver out from x86 machdep code 2021-02-23 21:17:09 +00:00
contrib ice_ddp: Update package file to 1.3.19.0 2021-02-22 18:02:19 -08:00
crypto OpenSSL: Regen assembly files for OpenSSL 1.1.1j 2021-02-17 00:35:11 -05:00
ddb ddb: just move cursor when the lexer backs up 2021-02-24 15:56:16 -08:00
dev Use pmap_qenter in the N1SDP PCIe driver 2021-02-25 12:38:05 +00:00
dts Remove DTS files for arm boards we don't support 2021-01-27 10:02:01 +00:00
fs Fix makefs bootstrap after d485c77f20 2021-02-22 17:55:45 +00:00
gdb Use atomic loads/stores when updating td->td_state 2021-02-18 14:02:48 +00:00
geom opencrypto: Introduce crypto_dispatch_async() 2021-02-08 09:19:19 -05:00
gnu Remove the old dts imported tree. 2021-01-15 20:09:55 +01:00
i386 smbios: Move smbios driver out from x86 machdep code 2021-02-23 21:17:09 +00:00
isa
kern buf: Fix the dirtybufthresh check 2021-02-25 10:04:44 -05:00
kgssapi opencrypto: Introduce crypto_dispatch_async() 2021-02-08 09:19:19 -05:00
libkern Restore the augmented strlen commentary 2021-02-08 19:15:21 +00:00
mips Add a VA_IS_CLEANMAP() macro. 2021-02-17 16:32:11 -08:00
modules smbios: Move smbios driver out from x86 machdep code 2021-02-23 21:17:09 +00:00
net bridgestp: Ensure we send STP on VLAN interfaces 2021-02-25 10:16:25 +01:00
net80211
netgraph netgraph/ng_bridge: Add counters for the first link, too 2021-02-10 19:05:37 +01:00
netinet net: remove legacy in_addmulti() 2021-02-25 10:13:52 +01:00
netinet6 Fix crash with rtadv-originated multipath IPv6 routes. 2021-02-24 16:44:10 +00:00
netipsec Revert "SO_RERROR indicates that receive buffer overflows should be handled as errors." 2021-02-08 22:32:32 +00:00
netpfil pf: Fix osfp configuration 2021-02-18 08:38:28 +01:00
netsmb
nfs
nfsclient
nfsserver nfs: Mark unused statistics variable as reserved 2020-11-18 04:35:49 +00:00
nlm
ofed ofed: quiet gcc -Wint-in-bool-context 2021-02-24 15:56:16 -08:00
opencrypto cryptosoft: Support per-op keys for AES-GCM and AES-CCM. 2021-02-18 09:53:25 -08:00
powerpc Add a VA_IS_CLEANMAP() macro. 2021-02-17 16:32:11 -08:00
riscv Add a VA_IS_CLEANMAP() macro. 2021-02-17 16:32:11 -08:00
rpc nfs-over-tls: handle res.gid.gid_val correctly for memory allocation 2021-01-12 13:59:52 -08:00
security close_range: add audit support 2021-02-23 17:47:07 +00:00
sys atomic: add atomic_interrupt_fence() 2021-02-24 22:45:24 +02:00
teken loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
tests Enable running fib tests inside vnet jail. 2021-01-17 20:32:26 +00:00
tools syscalls.master: Add a new syscall type: RESERVED 2021-01-26 18:27:44 +00:00
ufs Call softdep_prealloc() before taking ffs_lock_ea(), if unlock is committing 2021-02-24 09:55:21 +02:00
vm vm pqbatch: move unmanaged page assert under pagequeue lock 2021-02-24 15:56:16 -08:00
x86 smbios: Move smbios driver out from x86 machdep code 2021-02-23 21:17:09 +00:00
xdr
xen xen: remove .swp file from public headers 2021-01-11 18:14:11 +01:00
Makefile