File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 217
217
#define DEFAULT_EVENT_SOURCE "PostgreSQL"
218
218
219
219
/*
220
- * Assumed cache line size. This doesn't affect correctness, but can be used
221
- * for low-level optimizations. Currently, this is used to pad some data
222
- * structures in xlog.c , to ensure that highly-contended fields are on
223
- * different cache lines. Too small a value can hurt performance due to false
224
- * sharing, while the only downside of too large a value is a few bytes of
225
- * wasted memory. The default is 128, which should be large enough for all
226
- * supported platforms.
220
+ * Assumed cache line size. This doesn't affect correctness, but can be used
221
+ * for low-level optimizations. This is mostly used to pad various data
222
+ * structures, to ensure that highly-contended fields are on different cache
223
+ * lines. Too small a value can hurt performance due to false sharing, while
224
+ * the only downside of too large a value is a few bytes of wasted memory.
225
+ * The default is 128, which should be large enough for all supported
226
+ * platforms.
227
227
*/
228
228
#define PG_CACHE_LINE_SIZE 128
229
229
You can’t perform that action at this time.
0 commit comments