Preset the object's color, or alignment, to maximize superpage usage.
MFC after: 5 days
This commit is contained in:
parent
0d6c1105bc
commit
c2d5d3ee0e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278697
@ -706,9 +706,10 @@ shmget_allocate_segment(td, uap, mode)
|
||||
#endif
|
||||
return (ENOMEM);
|
||||
}
|
||||
shm_object->pg_color = 0;
|
||||
VM_OBJECT_WLOCK(shm_object);
|
||||
vm_object_clear_flag(shm_object, OBJ_ONEMAPPING);
|
||||
vm_object_set_flag(shm_object, OBJ_NOSPLIT);
|
||||
vm_object_set_flag(shm_object, OBJ_COLORED | OBJ_NOSPLIT);
|
||||
VM_OBJECT_WUNLOCK(shm_object);
|
||||
|
||||
shmseg->object = shm_object;
|
||||
|
Loading…
Reference in New Issue
Block a user