Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107166514
D3439.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
994 B
Referenced Files
None
Subscribers
None
D3439.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D3439: Prevent ticks rollover from preventing vm_lowmem event
Attached
Detach File
Event Timeline
Log In to Comment