Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132954491
D13308.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
807 B
Referenced Files
None
Subscribers
None
D13308.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D13308: pageout fix
Attached
Detach File
Event Timeline
Log In to Comment