Skip to content

Don't update database-level statistics on every page cache operation. #7814

Closed
@hvlad

Description

@hvlad

Statistics counters at database-level is shared by all attachments in SS architecture.
Operations in page cache (in particular fetches) is most frequent operations that changes corresponding counters.
When concurrent attachments actively works with page cache and often increments corresponding counters it leads
to the bouncing of memory area where counters allocated between CPU cores, and creates performance penalty.

The improvement is to update database-level stats only when necessary making less changes in common memory.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions