Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156890152
D51015.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
641 B
Referenced Files
None
Subscribers
None
D51015.diff
View Options
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -1784,8 +1784,14 @@
{
int old_vote;
+ /*
+ * Do not trigger an OOM kill if the page daemon is able to make
+ * progress, or if there is no instantaneous shortage. The latter case
+ * can happen if the PID controller is still reacting to an acute
+ * shortage, and the inactive queue is full of dirty pages.
+ */
if (starting_page_shortage <= 0 || starting_page_shortage !=
- page_shortage)
+ page_shortage || !vm_paging_needed(vmd, vmd->vmd_free_count))
vmd->vmd_oom_seq = 0;
else
vmd->vmd_oom_seq++;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 18, 3:00 AM (8 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33230829
Default Alt Text
D51015.diff (641 B)
Attached To
Mode
D51015: vm_pageout: Make the OOM killer less aggressive
Attached
Detach File
Event Timeline
Log In to Comment