git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: cc52d5b) | patch
Keep heavily-contended fields in XLogCtlInsert on different cache lines.
Wed, 4 Sep 2013 20:14:33 +0000 (23:14 +0300)
Wed, 4 Sep 2013 20:14:33 +0000 (23:14 +0300)
commit 375d8526f2900d0c377f44532f6d09ee06531f67
Keep heavily-contended fields in XLogCtlInsert on different cache lines.

Performance testing shows that if the insertpos_lck spinlock and the fields
that it protects are on the same cache line with other variables that are
frequently accessed, the false sharing can hurt performance a lot. Keep
them apart by adding some padding.
src/backend/access/transam/xlog.c diff | blob | blame | history
src/include/pg_config_manual.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /