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

Instrument Metadata class for memory measurement. #4760

Merged
merged 4 commits into from
Mar 4, 2024
Merged

Conversation

bekadavis9
Copy link
Contributor

Add tdb::pmr::map wrapper as an alias for std::map. Migrate class Metadata to use scoped allocators for memory tracking.


TYPE: NO_HISTORY
DESC: Instrument Metadata class for memory measurement. Addition of tdb::pmr::map wrapper.

Copy link

This pull request has been linked to Shortcut Story #40788: Instrument Metadata class for memory measurement.

Copy link
Contributor

@davisp davisp 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 overall, though there's a few changes needed.

tiledb/sm/consolidator/array_meta_consolidator.cc Outdated Show resolved Hide resolved
tiledb/sm/consolidator/group_meta_consolidator.cc Outdated Show resolved Hide resolved
tiledb/sm/metadata/metadata.cc Outdated Show resolved Hide resolved
tiledb/sm/metadata/metadata.cc Show resolved Hide resolved
@bekadavis9 bekadavis9 force-pushed the rd/memory-metadata branch 2 times, most recently from 4474b82 to f709bd9 Compare February 27, 2024 18:53
Copy link
Contributor

@davisp davisp left a comment

Choose a reason for hiding this comment

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

Either lets get rid of the memory_tracker() getter on Group, or you hit me with the clue stick on where we need that.

Other than that minor bit, I'll approve once that's done.

tiledb/sm/group/group.h Outdated Show resolved Hide resolved
Copy link
Contributor

@davisp davisp left a comment

Choose a reason for hiding this comment

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

+1 after rebase and green CI

@KiterLuc KiterLuc merged commit d1355d2 into dev Mar 4, 2024
57 checks passed
@KiterLuc KiterLuc deleted the rd/memory-metadata branch March 4, 2024 23:57
KiterLuc added a commit that referenced this pull request Mar 21, 2024
This was introduced in #4760 where the client tries to load the group metadata when serializing the group metadata request to REST, which causes an infinite loop. The fix reverts to the correct behavior, where we don't try to load the metadata when serializing it from the client.

---
TYPE: BUG
DESC: Do not load group metadata when getting it from REST.
KiterLuc added a commit that referenced this pull request Mar 21, 2024
This was introduced in #4760 where the client tries to load the group metadata when serializing the group metadata request to REST, which causes an infinite loop. The fix reverts to the correct behavior, where we don't try to load the metadata when serializing it from the client.

---
TYPE: BUG
DESC: Do not load group metadata when getting it from REST.
KiterLuc added a commit that referenced this pull request Mar 21, 2024
This was introduced in #4760
where the client tries to load the group metadata when serializing the
group metadata request to REST, which causes an infinite loop. The fix
reverts to the correct behavior, where we don't try to load the metadata
when serializing it from the client.

---
TYPE: BUG
DESC: Do not load group metadata when getting it from REST.
github-actions bot pushed a commit that referenced this pull request Mar 21, 2024
This was introduced in #4760
where the client tries to load the group metadata when serializing the
group metadata request to REST, which causes an infinite loop. The fix
reverts to the correct behavior, where we don't try to load the metadata
when serializing it from the client.

---
TYPE: BUG
DESC: Do not load group metadata when getting it from REST.

(cherry picked from commit 07b26fb)
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.

None yet

3 participants