Skip to content

(2.12) Filestore cache improvements#7346

Merged
neilalexander merged 2 commits intomainfrom
neil/fsfixes4
Sep 23, 2025
Merged

(2.12) Filestore cache improvements#7346
neilalexander merged 2 commits intomainfrom
neil/fsfixes4

Conversation

@neilalexander
Copy link
Copy Markdown
Member

This introduces a new "tiny" cache pool size (256KB) and ensures that, when writeMsgRecordLocked is called for the first time on a new block, that we pull the underlying buffer from the pools. Subsequent calls to writeMsgRecordLocked will reallocate from the pools manually instead of relying on append() reallocating to a size that does not match any of the buffer pools.

Signed-off-by: Neil Twigg neil@nats.io

Signed-off-by: Neil Twigg <neil@nats.io>
Signed-off-by: Neil Twigg <neil@nats.io>
@neilalexander neilalexander changed the title Filestore cache improvements (2.12) Filestore cache improvements Sep 23, 2025
@neilalexander neilalexander marked this pull request as ready for review September 23, 2025 14:33
@neilalexander neilalexander requested a review from a team as a code owner September 23, 2025 14:33
Copy link
Copy Markdown
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@neilalexander neilalexander merged commit 22ea491 into main Sep 23, 2025
152 of 158 checks passed
@neilalexander neilalexander deleted the neil/fsfixes4 branch September 23, 2025 16:09
neilalexander added a commit that referenced this pull request Sep 29, 2025
Includes the following:

- #7337
- #7342
- #7344
- #7345
- #7347
- #7346
- #7348
- #7349
- #7350
- #7357
- #7356
- #7358
- #7359
- #7366
- #7367
- #7293
- #7368

Signed-off-by: Neil Twigg <neil@nats.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants