Update PG_CACHE_LINE_SIZE description.
PG_CACHE_LINE_SIZE was originally only used in xlog.c, but this hasn't been true for a very long time and is now wildly used, so modify its description to not mention any explicit source code file. Author: Julien Rouhaud Discussion: https://www.postgresql.org/message-id/20230701074936.p3qcssl4t7murt2q@jrouhaud
This commit is contained in:
parent
9945750ae0
commit
dc6070bf5d
@ -218,12 +218,12 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Assumed cache line size. This doesn't affect correctness, but can be used
|
* Assumed cache line size. This doesn't affect correctness, but can be used
|
||||||
* for low-level optimizations. Currently, this is used to pad some data
|
* for low-level optimizations. This is mostly used to pad various data
|
||||||
* structures in xlog.c, to ensure that highly-contended fields are on
|
* structures, to ensure that highly-contended fields are on different cache
|
||||||
* different cache lines. Too small a value can hurt performance due to false
|
* lines. Too small a value can hurt performance due to false sharing, while
|
||||||
* sharing, while the only downside of too large a value is a few bytes of
|
* the only downside of too large a value is a few bytes of wasted memory.
|
||||||
* wasted memory. The default is 128, which should be large enough for all
|
* The default is 128, which should be large enough for all supported
|
||||||
* supported platforms.
|
* platforms.
|
||||||
*/
|
*/
|
||||||
#define PG_CACHE_LINE_SIZE 128
|
#define PG_CACHE_LINE_SIZE 128
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user