svn commit: r278697 - head/sys/kern
Alan Cox
alc at FreeBSD.org
Fri Feb 13 19:58:54 UTC 2015
Author: alc
Date: Fri Feb 13 19:58:53 2015
New Revision: 278697
URL: https://svnweb.freebsd.org/changeset/base/278697
Log:
Preset the object's color, or alignment, to maximize superpage usage.
MFC after: 5 days
Modified:
head/sys/kern/sysv_shm.c
Modified: head/sys/kern/sysv_shm.c
==============================================================================
--- head/sys/kern/sysv_shm.c Fri Feb 13 19:52:16 2015 (r278696)
+++ head/sys/kern/sysv_shm.c Fri Feb 13 19:58:53 2015 (r278697)
@@ -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;
More information about the svn-src-head
mailing list