Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic available memory calculation for all locales #2533

Conversation

hokiegeek2
Copy link
Contributor

Closes #2477

This PR delivers the following dynamic Arkouda memory tracking, reporting, and mgmt features:

  1. on each locale MemoryMgmt checks to see if the projected memory required for an incoming cmd can be accommodated by the memory allocated to the Arkouda chapel process on every node. If so, the command is allowed to proceed.
  2. if the answer to (1) is false, on each locale MemoryMgmt checks to see if additional memory can be allocated to accommodate the new, projected total Arkouda memory on every node. If so, the command is allowed to proceed. If not, a server-side error is thrown and the locales that cannot support the new malloc request are logged.
  3. message is sent back to the client that OOM occurred on 1..n locales
  4. new CLI arguments to enable dynamic memory mgmt. The default is the existing, static memory tracking, reporting, and mgmt Arkouda feature

…es' of github.com:hokiegeek2/arkouda into 2477_dynamic_available_memory_calculation_for_all_locales
Copy link
Contributor

@Ethan-DeBandi99 Ethan-DeBandi99 left a comment

Choose a reason for hiding this comment

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

Looks good. 1 thing to look at, but I don't think it will impact functionality.

src/MemoryMgmt.chpl Outdated Show resolved Hide resolved
Copy link
Member

@stress-tess stress-tess left a comment

Choose a reason for hiding this comment

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

@hokiegeek2 got some quick questions but i think this looks good

src/MemoryMgmt.chpl Outdated Show resolved Hide resolved
src/MemoryMgmt.chpl Show resolved Hide resolved
src/MemoryMgmt.chpl Show resolved Hide resolved
src/MemoryMgmt.chpl Outdated Show resolved Hide resolved
src/ServerConfig.chpl Show resolved Hide resolved
Copy link
Member

@stress-tess stress-tess left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@stress-tess stress-tess added this pull request to the merge queue Jun 29, 2023
Merged via the queue into Bears-R-Us:master with commit 38a23a3 Jun 29, 2023
@hokiegeek2 hokiegeek2 deleted the 2477_dynamic_available_memory_calculation_for_all_locales branch March 27, 2024 12:50
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.

Dynamic available memory calculation for all locales
4 participants