Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153255435
D23601.id68062.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
768 B
Referenced Files
None
Subscribers
None
D23601.id68062.diff
View Options
Index: sys/vm/vm_pageout.c
===================================================================
--- sys/vm/vm_pageout.c
+++ sys/vm/vm_pageout.c
@@ -158,7 +158,7 @@
SYSCTL_INT(_vm, OID_AUTO, panic_on_oom,
CTLFLAG_RWTUN, &vm_panic_on_oom, 0,
- "panic on out of memory instead of killing the largest process");
+ "Panic on the given number of out-of-memory errors instead of killing the largest process");
SYSCTL_INT(_vm, OID_AUTO, pageout_update_period,
CTLFLAG_RWTUN, &vm_pageout_update_period, 0,
@@ -1933,7 +1933,7 @@
}
sx_sunlock(&allproc_lock);
if (bigproc != NULL) {
- if (vm_panic_on_oom != 0)
+ if (vm_panic_on_oom != 0 && --vm_panic_on_oom == 0)
panic("out of swap space");
PROC_LOCK(bigproc);
killproc(bigproc, "out of swap space");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 2:29 AM (9 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31880758
Default Alt Text
D23601.id68062.diff (768 B)
Attached To
Mode
D23601: Modify the vm.panic_on_oom sysctl to take a count of events
Attached
Detach File
Event Timeline
Log In to Comment