Page MenuHomeFreeBSD

D51015.diff
No OneTemporary

D51015.diff

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

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)

Event Timeline