Date: Sun, 8 Feb 2015 21:00:52 +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: r278402 - head/sys/kern Message-ID: <201502082100.t18L0qSP001958@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: alc Date: Sun Feb 8 21:00:51 2015 New Revision: 278402 URL: https://svnweb.freebsd.org/changeset/base/278402 Log: Preset the object's color, or alignment, to maximize superpage usage. MFC after: 5 days Modified: head/sys/kern/uipc_shm.c Modified: head/sys/kern/uipc_shm.c ============================================================================== --- head/sys/kern/uipc_shm.c Sun Feb 8 20:48:17 2015 (r278401) +++ head/sys/kern/uipc_shm.c Sun Feb 8 21:00:51 2015 (r278402) @@ -531,9 +531,10 @@ shm_alloc(struct ucred *ucred, mode_t mo shmfd->shm_object = vm_pager_allocate(OBJT_DEFAULT, NULL, shmfd->shm_size, VM_PROT_DEFAULT, 0, ucred); KASSERT(shmfd->shm_object != NULL, ("shm_create: vm_pager_allocate")); + shmfd->shm_object->pg_color = 0; VM_OBJECT_WLOCK(shmfd->shm_object); vm_object_clear_flag(shmfd->shm_object, OBJ_ONEMAPPING); - vm_object_set_flag(shmfd->shm_object, OBJ_NOSPLIT); + vm_object_set_flag(shmfd->shm_object, OBJ_COLORED | OBJ_NOSPLIT); VM_OBJECT_WUNLOCK(shmfd->shm_object); vfs_timestamp(&shmfd->shm_birthtime); shmfd->shm_atime = shmfd->shm_mtime = shmfd->shm_ctime =
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502082100.t18L0qSP001958>