Skip to content

Default worker capacity calculation fix#1550

Merged
jfallows merged 1 commit into
aklivity:developfrom
bmaidics:capacity_fix
Sep 4, 2025
Merged

Default worker capacity calculation fix#1550
jfallows merged 1 commit into
aklivity:developfrom
bmaidics:capacity_fix

Conversation

@bmaidics

@bmaidics bmaidics commented Sep 3, 2025

Copy link
Copy Markdown
Contributor

In current defaultWorkerCapacity method we're double-counting metadata:
fixed by subtracted aggregateMetadataSize up front and added per-structure metadata again later.

We were also using the wrong aggregate entry size: we used bufferSlotSize instead of bufferPoolEntrySize (forgot the + Long.BYTES).

@jfallows jfallows merged commit 086403b into aklivity:develop Sep 4, 2025
39 checks passed
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