Skip to content

Tier RAM budget by host size#752

Open
Andy11-cpu wants to merge 1 commit into
DeusData:mainfrom
Andy11-cpu:fix/ram-tier-budget
Open

Tier RAM budget by host size#752
Andy11-cpu wants to merge 1 commit into
DeusData:mainfrom
Andy11-cpu:fix/ram-tier-budget

Conversation

@Andy11-cpu

Copy link
Copy Markdown

Summary

  • Use 25% of physical RAM on hosts with <=16GB, 35% on <=32GB, and 50% above
  • Add cbm_mem_ram_fraction_for_total() with unit tests

Motivation

Split from #625 — reduces default memory reservation on 16GB machines without changing indexing behavior.

Test plan

  • mem_ram_fraction_* tier tests in test_mem.c
  • make -f Makefile.cbm test (CI)

Signed-off-by: Andy11-cpu canada11@duck.com

Use 25% of physical RAM on hosts with 16GB or less, 35% on 32GB or less, and 50% above. Expose cbm_mem_ram_fraction_for_total() for unit tests and call it from MCP/CLI startup instead of a fixed 50% fraction.

Signed-off-by: Andy11-cpu <canada11@duck.com>
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.

1 participant