svn commit: r193710 - user/kmacy/releng_7_2_fcs/sys/vm
Kip Macy
kmacy at FreeBSD.org
Mon Jun 8 12:02:18 UTC 2009
Author: kmacy
Date: Mon Jun 8 12:02:15 2009
New Revision: 193710
URL: http://svn.freebsd.org/changeset/base/193710
Log:
align buckets to avoid false sharing
Modified:
user/kmacy/releng_7_2_fcs/sys/vm/uma_int.h
Modified: user/kmacy/releng_7_2_fcs/sys/vm/uma_int.h
==============================================================================
--- user/kmacy/releng_7_2_fcs/sys/vm/uma_int.h Mon Jun 8 11:39:04 2009 (r193709)
+++ user/kmacy/releng_7_2_fcs/sys/vm/uma_int.h Mon Jun 8 12:02:15 2009 (r193710)
@@ -168,7 +168,7 @@ struct uma_bucket {
int16_t ub_cnt; /* Count of free items. */
int16_t ub_entries; /* Max items. */
void *ub_bucket[]; /* actual allocation storage */
-};
+} __aligned(128);
typedef struct uma_bucket * uma_bucket_t;
More information about the svn-src-user
mailing list