Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jul 2018 22:35:52 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r336231 - head/sys/vm
Message-ID:  <201807122235.w6CMZqO8030291@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Thu Jul 12 22:35:52 2018
New Revision: 336231
URL: https://svnweb.freebsd.org/changeset/base/336231

Log:
  uma: whack main zone counter update in the slow path, freeing side
  
  See r333052.

Modified:
  head/sys/vm/uma_core.c

Modified: head/sys/vm/uma_core.c
==============================================================================
--- head/sys/vm/uma_core.c	Thu Jul 12 22:34:40 2018	(r336230)
+++ head/sys/vm/uma_core.c	Thu Jul 12 22:35:52 2018	(r336231)
@@ -3135,14 +3135,6 @@ zfree_start:
 	cpu = curcpu;
 	cache = &zone->uz_cpu[cpu];
 
-	/*
-	 * Since we have locked the zone we may as well send back our stats.
-	 */
-	atomic_add_long(&zone->uz_allocs, cache->uc_allocs);
-	atomic_add_long(&zone->uz_frees, cache->uc_frees);
-	cache->uc_allocs = 0;
-	cache->uc_frees = 0;
-
 	bucket = cache->uc_freebucket;
 	if (bucket != NULL && bucket->ub_cnt < bucket->ub_entries) {
 		ZONE_UNLOCK(zone);



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