Skip to content

Conversation

@mkannwischer
Copy link
Contributor

Split KEYPAIR allocation constants into _NO_PCT and PCT variants to
accurately reflect memory usage with and without pairwise consistency
testing (PCT). MLD_TOTAL_ALLOC
*_KEYPAIR now automatically selects
the appropriate value based on MLD_CONFIG_KEYGEN_PCT.

For legacy configs, assume PCT is enabled (conservative).

Also correct REDUCE_RAM KEYPAIR values which were previously using
PCT values unconditionally.

The default alloc test config no longer enables PCT; PCT is tested
via config-variations.

/* check-magic: off */
#if defined(MLD_API_LEGACY_CONFIG) || !defined(MLD_CONFIG_REDUCE_RAM)
#define MLD_TOTAL_ALLOC_44_KEYPAIR 56640
#define MLD_TOTAL_ALLOC_44_KEYPAIR_NO_PCT 45248
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: I would suggest MLD_TOTAL_XXX (no PCT) as the default, and MLD_TOTAL_XXX_PCT for configurations with PCT. The MLK_CONFIG_KEYGEN_PCT is also a positive option that's disabled by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm, lower in the file MLD_TOTAL_XXX is defined depending on the actual value of MLK_CONFIG_KEYGEN_PCT.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nevermind, I hadn't yet seen the wrapper below.

Split KEYPAIR allocation constants into _NO_PCT and _PCT variants to
accurately reflect memory usage with and without pairwise consistency
testing (PCT). MLD_TOTAL_ALLOC_*_KEYPAIR now automatically selects
the appropriate value based on MLD_CONFIG_KEYGEN_PCT.

For legacy configs, assume PCT is enabled (conservative).

Also correct REDUCE_RAM KEYPAIR values which were previously using
PCT values unconditionally.

The default alloc test config no longer enables PCT; PCT is tested
via config-variations.

Signed-off-by: Matthias J. Kannwischer <[email protected]>
Add config-variations tests for REDUCE_RAM and REDUCE_RAM + PCT
configurations to ensure allocation constants are validated for
all four configuration variants.

Signed-off-by: Matthias J. Kannwischer <[email protected]>
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.

3 participants