Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2020 13:48:06 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r359481 - head/contrib/jemalloc/include/jemalloc
Message-ID:  <202003311348.02VDm63g015004@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Tue Mar 31 13:48:06 2020
New Revision: 359481
URL: https://svnweb.freebsd.org/changeset/base/359481

Log:
  Make jemalloc(3) default to retain:true on 64-bit platforms,
  like it already does on Linux and OSX.  This results in significantly
  fewer calls to mmap(2).  This should result in a small reduction
  in system CPU time and improved superpage usage.
  
  Reviewed by:	markj
  Tested by:	markj
  MFC after:	2 weeks
  Sponsored by:	DARPA
  Differential Revision:	https://reviews.freebsd.org/D23874

Modified:
  head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h

Modified: head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h
==============================================================================
--- head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h	Tue Mar 31 13:43:09 2020	(r359480)
+++ head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h	Tue Mar 31 13:48:06 2020	(r359481)
@@ -72,6 +72,10 @@
 #  define LG_SIZEOF_PTR		3
 #endif
 
+#if LG_VADDR > 32
+#  define JEMALLOC_RETAIN
+#endif
+
 #ifndef JEMALLOC_TLS_MODEL
 #  define JEMALLOC_TLS_MODEL	/* Default. */
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003311348.02VDm63g015004>