Page MenuHomeFreeBSD

D13308.id.diff
No OneTemporary

D13308.id.diff

Index: sys/vm/vm_pageout.c
===================================================================
--- sys/vm/vm_pageout.c
+++ sys/vm/vm_pageout.c
@@ -1815,10 +1815,18 @@
* (page reclamation) scan, then increase the level
* and scan again now. Otherwise, sleep a bit and
* try again later.
+ * LM: per discussions with the numa team, don't
+ * sleep if we have at least 2 cpus, just keep
+ * scanning. This makes a HUGE difference when
+ * the system is thrashing on memory, it's the
+ * difference between usable and borked.
*/
mtx_unlock(&vm_page_queue_free_mtx);
- if (pass >= 1)
- pause("psleep", hz / VM_INACT_SCAN_RATE);
+ if (pass >= 1) {
+ if (mp_ncpus < 2) {
+ pause("psleep", hz /VM_INACT_SCAN_RATE);
+ }
+ }
pass++;
} else {
/*

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 22, 12:11 PM (4 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24034453
Default Alt Text
D13308.id.diff (807 B)

Event Timeline