]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Swap in processes unless there's a global memory shortage.
authormarkj <markj@FreeBSD.org>
Mon, 22 Oct 2018 17:04:04 +0000 (17:04 +0000)
committermarkj <markj@FreeBSD.org>
Mon, 22 Oct 2018 17:04:04 +0000 (17:04 +0000)
commit9ce499cca5504738452b124ec388eba69e7cd684
tree3041c6241d3e7dff4e1f2966364d982f071850a8
parent782d004253cbe3d456d1843f4fa710a811948dae
Swap in processes unless there's a global memory shortage.

On NUMA systems, we would not swap in processes unless all domains
had some free pages.  This is too conservative in general.  Instead,
permit swapins so long as at least one domain has free pages, and add
a kernel stack NUMA policy which ensures that we will try to allocate
kernel stack pages from any domain.

Reported and tested by: pho, Jan Bramkamp <crest@bultmann.eu>
Reviewed by: alc, kib
Discussed with: jeff
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17304
sys/vm/vm_glue.c
sys/vm/vm_swapout.c