Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162173180
D39743.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
710 B
Referenced Files
None
Subscribers
None
D39743.diff
View Options
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -1980,6 +1980,11 @@
&cluster_anon, 0,
"Cluster anonymous mappings: 0 = no, 1 = yes if no hint, 2 = always");
+static int anon_low_pref = 0;
+SYSCTL_INT(_vm, OID_AUTO, anon_low_pref, CTLFLAG_RW,
+ &anon_low_pref, 0,
+ "Prefer lower addresses when clustering anonymous mappings: 0 = no, 1 = yes");
+
static bool
clustering_anon_allowed(vm_offset_t addr)
{
@@ -2127,6 +2132,8 @@
curr_min_addr = map->anon_loc;
if (curr_min_addr == 0)
cluster = false;
+ else if (anon_low_pref)
+ update_anon = false;
}
if (find_space != VMFS_NO_SPACE) {
KASSERT(find_space == VMFS_ANY_SPACE ||
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 11, 1:57 PM (21 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34961788
Default Alt Text
D39743.diff (710 B)
Attached To
Mode
D39743: VM: Stabilize map->anon_loc to reuse memory region
Attached
Detach File
Event Timeline
Log In to Comment