Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Apr 2015 07:56:05 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r281065 - stable/10/sys/kern
Message-ID:  <201504040756.t347u5vS093695@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat Apr  4 07:56:04 2015
New Revision: 281065
URL: https://svnweb.freebsd.org/changeset/base/281065

Log:
  MFC r278697 (by alc):
  Preset the object's color, or alignment, to maximize superpage usage.

Modified:
  stable/10/sys/kern/sysv_shm.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/sysv_shm.c
==============================================================================
--- stable/10/sys/kern/sysv_shm.c	Sat Apr  4 07:52:12 2015	(r281064)
+++ stable/10/sys/kern/sysv_shm.c	Sat Apr  4 07:56:04 2015	(r281065)
@@ -719,9 +719,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?201504040756.t347u5vS093695>