]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxkpi: Use pageproc instead of vmproc
authorBen Widawsky <bwidawsk@FreeBSD.org>
Wed, 21 Nov 2018 04:34:18 +0000 (04:34 +0000)
committerBen Widawsky <bwidawsk@FreeBSD.org>
Wed, 21 Nov 2018 04:34:18 +0000 (04:34 +0000)
commitf82dd310bb7595df632c154e0a9f5645cb414db6
tree53278414b05ec2c2c6830ddea9f8684c03b2fb2c
parent14b520eaa25e291e54a19cf0b680ab909c671886
linuxkpi: Use pageproc instead of vmproc

According to markj@:
pageproc contains the page daemon and laundry threads, which are
responsible for managing the LRU page queues and writing back dirty
pages.  vmproc's main task is to swap out kernel stacks when the system
is under memory pressure, and swap them back in when necessary.  It's a
somewhat legacy component of the system and isn't required.  You can
build a kernel without it by specifying "options NO_SWAPPING" (which is
a somewhat misleading name), in which vm_swapout_dummy.c is compiled
instead of vm_swapout.c.

Based on this, we want pageproc to emulate kswapd, not vmproc.

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D18061
sys/compat/linuxkpi/common/include/linux/swap.h
sys/vm/vm_pageout.h
sys/vm/vm_swapout.c