Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145553325
D32592.id97219.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
805 B
Referenced Files
None
Subscribers
None
D32592.id97219.diff
View Options
Index: sys/vm/vm_page.c
===================================================================
--- sys/vm/vm_page.c
+++ sys/vm/vm_page.c
@@ -2409,8 +2409,13 @@
m = vm_phys_alloc_freelist_pages(domain, freelist,
VM_FREEPOOL_DIRECT, 0);
vm_domain_free_unlock(vmd);
- if (m == NULL)
+ if (m == NULL) {
vm_domain_freecnt_inc(vmd, 1);
+#if VM_NRESERVLEVEL > 0
+ if (vm_reserv_reclaim_inactive(domain))
+ goto again;
+#endif
+ }
}
if (m == NULL) {
if (vm_domain_alloc_fail(vmd, NULL, req))
@@ -2540,6 +2545,11 @@
vm_domain_free_unlock(vmd);
if (m_ret == NULL) {
vm_domain_freecnt_inc(vmd, npages);
+#if VM_NRESERVLEVEL > 0
+ if (vm_reserv_reclaim_contig(domain, npages, low,
+ high, alignment, boundary))
+ goto again;
+#endif
}
}
if (m_ret == NULL) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 22, 9:37 AM (1 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28935328
Default Alt Text
D32592.id97219.diff (805 B)
Attached To
Mode
D32592: vm_page: Break reservations to handle noobj allocations
Attached
Detach File
Event Timeline
Log In to Comment