Date: Fri, 13 Feb 2015 19:58:54 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r278697 - head/sys/kern Message-ID: <201502131958.t1DJws4S059546@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502131958.t1DJws4S059546>