Page MenuHomeFreeBSD

D3439.diff
No OneTemporary

D3439.diff

Index: head/sys/vm/vm_pageout.c
===================================================================
--- head/sys/vm/vm_pageout.c
+++ head/sys/vm/vm_pageout.c
@@ -93,6 +93,7 @@
#include <sys/sdt.h>
#include <sys/signalvar.h>
#include <sys/smp.h>
+#include <sys/time.h>
#include <sys/vnode.h>
#include <sys/vmmeter.h>
#include <sys/rwlock.h>
@@ -171,7 +172,7 @@
static int defer_swap_pageouts;
static int disable_swap_pageouts;
static int lowmem_period = 10;
-static int lowmem_ticks;
+static time_t lowmem_uptime;
#if defined(NO_SWAPPING)
static int vm_swap_enabled = 0;
@@ -1034,7 +1035,7 @@
* some. We rate limit to avoid thrashing.
*/
if (vmd == &vm_dom[0] && pass > 0 &&
- (ticks - lowmem_ticks) / hz >= lowmem_period) {
+ (time_uptime - lowmem_uptime) >= lowmem_period) {
/*
* Decrease registered cache sizes.
*/
@@ -1045,7 +1046,7 @@
* drained above.
*/
uma_reclaim();
- lowmem_ticks = ticks;
+ lowmem_uptime = time_uptime;
}
/*

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 12, 3:35 AM (21 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15760662
Default Alt Text
D3439.diff (994 B)

Event Timeline