Preset the object's color, or alignment, to maximize superpage usage.

MFC after:	5 days
This commit is contained in:
alc 2015-02-13 19:58:53 +00:00
parent 217bb2239a
commit c8abad000b

View File

@ -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;