Memory management cgroup diagram does not show which config value sizes each region

Open Beginner friendly
#6,028 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
86/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Domain
documentation

Research direction

Open the existing cgroup diagram in the linked memory_management section and review how its regions are currently grouped. Add the three configuration values described by the issue as diagram inputs, showing which regions each sizes, then render the documentation and verify that the off-heap and memory-overhead relationships are visible without relying on prose.

Written by the indexing model from the issue text.

Description

enhancement

The cgroup diagram in memory_management, added in #6014, groups everything the container counts by who accounts for it. It does not say which configuration value sizes each region.

That leaves the two facts the section goes on to state as prose only:

  1. spark.memory.offHeap.size is part of the pod limit, not extra headroom on top of it.
  2. spark.executor.memoryOverhead is the only slack in the container.

Both are properties of how the configuration maps onto the regions, which is exactly the kind of
thing a diagram carries better than a sentence. The mapping is also uneven in a way that is easy to
get wrong: spark.memory.offHeap.size alone sizes three of the regions, including Comet's native
reservations, which are neither off-heap in Spark's sense nor allocated by the JVM, while
spark.executor.memoryOverhead sizes none of them.

Adding the three configuration values as inputs to the existing diagram would make that visible
without introducing a third diagram to the page.

Dominant language
Scala
Stars
1.3k
Forks
377
Avg merge
2d 13h
Merged PRs (30d)
244

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/datafusion-comet

All issues in apache/datafusion-comet

Similar issues

More Scala issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.