freebsd-nq/sys
Konstantin Belousov 77d6fd97ef Improve vm_object_scan_all_shadowed() to also check swap backing objects.
As noted in the removed comment, it is possible and not prohibitively
costly to look up the swap blocks for the given page index.  Implement
a swap_pager_find_least() function to do that, and use it to iterate
simultaneously over both backing object page queue and swap
allocations when looking for shadowed pages.

Testing shows that number of new succesful scans, enabled by this
addition, is small but non-zero.  When worked out, the change both
further reduces the depth of the shadow object chain, and frees unused
but allocated swap and memory.

Suggested and reviewed by:	alc
Tested by:	pho (previous version)
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2016-12-18 20:56:14 +00:00
..
amd64 Fix typo. Remove spurious blank line. 2016-12-18 09:32:23 +00:00
arm ofw_spi: Parse property for the SPI mode and CS polarity. 2016-12-18 14:54:20 +00:00
arm64 Add virtio_pci to GENERIC arm64 conf 2016-12-18 11:15:31 +00:00
boot Reduce boot loader version string duplication 2016-12-18 13:57:23 +00:00
bsm
cam Don't treat informational exceptions (warnings and impending failures) 2016-12-18 15:02:50 +00:00
cddl Remove extra DOF_SEC_XLIMPORT from the DOF_SEC_ISLOADABLE macro 2016-12-16 20:44:14 +00:00
compat linuxkpi: Fix not-found case of linux_pci_find_irq_dev 2016-12-13 19:58:21 +00:00
conf Add WITH_REPRODUCIBLE_BUILD src.conf(5) knob to disable kernel metadata 2016-12-15 21:26:58 +00:00
contrib Add a FREEBSD-Xlist file for CK. 2016-11-28 21:16:03 +00:00
crypto Add accelerated AES with using the ARMv8 crypto instructions. This is based 2016-11-21 11:18:00 +00:00
ddb Use casts to force an unsigned comparison in db_search_symbol(). 2016-12-14 00:18:12 +00:00
dev After r310171, the kernel version of sscanf() has format string checking 2016-12-18 15:21:38 +00:00
fs When tmpfs and POSIX shm pagein a page for the sole purpose of performing 2016-12-11 19:24:41 +00:00
gdb
geom Add support for encrypted kernel crash dumps. 2016-12-10 16:20:39 +00:00
gnu Add Ingenic X1000 DTS files (unofficial). 2016-11-19 15:03:49 +00:00
i386 Enable EARLY_AP_STARTUP on amd64 and i386 kernels by default. 2016-12-16 21:10:37 +00:00
isa
kern Switch from stdatomic.h to atomic.h for kernel. 2016-12-16 17:41:20 +00:00
kgssapi
libkern Update r309143 to prevent false sharing. 2016-11-25 17:20:23 +00:00
mips ofw_spi: Parse property for the SPI mode and CS polarity. 2016-12-18 14:54:20 +00:00
modules cxgbe(4): Update firmwares from version 1.16.12.0 to 1.16.22.0. 2016-12-06 12:43:07 +00:00
net Fix panic during lagg destruction with simultaneous status check 2016-12-16 22:39:30 +00:00
net80211 [net80211] sigh, course I would miss a commit from the 11ac prep commit. 2016-12-16 04:44:14 +00:00
netgraph Changes to allow the patching of packets with an offset (and other changes.. see man page) 2016-12-02 10:47:10 +00:00
netinet Fix the handling of buffered messages in stream reset deferred handling. 2016-12-17 22:31:30 +00:00
netinet6 Modify IPv6 statistic accounting in ip6_input(). 2016-12-12 11:26:59 +00:00
netipsec Add a missing header 2016-11-26 23:15:11 +00:00
netnatm
netpfil Improve upon r309394 2016-12-10 03:31:38 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed Move the ConnectX-3 and ConnectX-2 driver from sys/ofed into sys/dev/mlx4 2016-09-30 08:23:06 +00:00
opencrypto Add support for the fpu_kern(9) KPI on arm64. It hooks into the existing 2016-10-20 09:22:10 +00:00
pc98 Add a COMPAT_FREEBSD11 kernel option. 2016-12-09 18:54:12 +00:00
powerpc Fix disassembly by adding back some deleted lines. 2016-12-16 04:47:29 +00:00
riscv Disable superpages reservations as we don't have implemented them yet. 2016-11-21 12:00:31 +00:00
rpc
security Audit 'fd' and 'cmd' arguments to fcntl(2), and when generating BSM, 2016-11-22 00:41:24 +00:00
sparc64 Add support for encrypted kernel crash dumps. 2016-12-10 16:20:39 +00:00
sys Add __scanflike attributes to the kernel's sscanf() and vsscanf() 2016-12-16 19:49:22 +00:00
teken
tests
tools Consider CROSS_BINUTILS_PREFIX environment variable so we use correct 2016-08-10 13:49:17 +00:00
ufs Release laundered vnode pages to the head of the inactive queue. 2016-11-23 17:53:07 +00:00
vm Improve vm_object_scan_all_shadowed() to also check swap backing objects. 2016-12-18 20:56:14 +00:00
x86 Don't run the MCA record refill task during boot. 2016-12-14 19:00:08 +00:00
xdr
xen xen: add a grant-table user-space device 2016-10-31 13:12:58 +00:00
Makefile