Preset the object's color, or alignment, to maximize superpage usage.
MFC after: 5 days
This commit is contained in:
parent
217bb2239a
commit
c8abad000b
@ -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