pgsql: Inline initial comparisons in TestForOldSnapshot()
В списке pgsql-committers по дате отправления:
| От | Kevin Grittner |
|---|---|
| Тема | pgsql: Inline initial comparisons in TestForOldSnapshot() |
| Дата | |
| Msg-id | E1atExa-0001od-Dk@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Inline initial comparisons in TestForOldSnapshot() Even with old_snapshot_threshold = -1 (which disables the "snapshot too old" feature), performance regressions were seen at moderate to high concurrency. For example, a one-socket, four-core system running 200 connections at saturation could see up to a 2.3% regression, with larger regressions possible on NUMA machines. By inlining the early (smaller, faster) tests in the TestForOldSnapshot() function, the i7 case dropped to a 0.2% regression, which could easily just be noise, and is clearly an improvement. Further testing will show whether more is needed. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/11e178d0dc4bc2328ae4759090b3c48b07023fab Modified Files -------------- src/backend/storage/buffer/bufmgr.c | 28 +++++----------------------- src/include/storage/bufmgr.h | 32 +++++++++++++++++++++++++++++++- 2 files changed, 36 insertions(+), 24 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера