Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170718924
D23409.id67445.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
722 B
Referenced Files
None
Subscribers
None
D23409.id67445.diff
View Options
Index: head/sys/vm/vm_fault.c
===================================================================
--- head/sys/vm/vm_fault.c
+++ head/sys/vm/vm_fault.c
@@ -1073,12 +1073,14 @@
fs->oom < vm_pfault_oom_attempts) {
fs->oom++;
vm_waitpfault(dset, vm_pfault_oom_wait * hz);
+ } else {
+ if (bootverbose)
+ printf(
+ "proc %d (%s) failed to alloc page on fault, starting OOM\n",
+ curproc->p_pid, curproc->p_comm);
+ vm_pageout_oom(VM_OOM_MEM_PF);
+ fs->oom = 0;
}
- if (bootverbose)
- printf(
-"proc %d (%s) failed to alloc page on fault, starting OOM\n",
- curproc->p_pid, curproc->p_comm);
- vm_pageout_oom(VM_OOM_MEM_PF);
return (KERN_RESOURCE_SHORTAGE);
}
fs->oom = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 7, 5:04 AM (1 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38418272
Default Alt Text
D23409.id67445.diff (722 B)
Attached To
Mode
D23409: Restore OOM logic on page fault after r357026.
Attached
Detach File
Event Timeline
Log In to Comment