diff options
author | kib <kib@FreeBSD.org> | 2015-05-23 09:14:29 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-05-23 09:14:29 +0000 |
commit | 09f1502b693cf27aaf4e8510864396fdb5cdccd7 (patch) | |
tree | aea5b47d7ef5ce1fabc967b70de6e263e1634d2b /sys/vm/vm_pageout.c | |
parent | a072eaae06913629d597381a0413a365c3f82344 (diff) | |
download | FreeBSD-src-09f1502b693cf27aaf4e8510864396fdb5cdccd7.zip FreeBSD-src-09f1502b693cf27aaf4e8510864396fdb5cdccd7.tar.gz |
MFC r282690:
Call uma_reclaim() from the additional pagedaemon thread to reclaim kmem
arena address space.
Diffstat (limited to 'sys/vm/vm_pageout.c')
-rw-r--r-- | sys/vm/vm_pageout.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 3cd1e54..db10fa4 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -1726,8 +1726,9 @@ vm_pageout_init(void) static void vm_pageout(void) { + int error; #if MAXMEMDOM > 1 - int error, i; + int i; #endif swap_pager_swap_init(); @@ -1741,6 +1742,10 @@ vm_pageout(void) } } #endif + error = kthread_add(uma_reclaim_worker, NULL, curproc, NULL, + 0, 0, "uma"); + if (error != 0) + panic("starting uma_reclaim helper, error %d\n", error); vm_pageout_worker((void *)(uintptr_t)0); } |