Merged
Conversation
…nternal-pointer-fast
qinsoon
commented
Jul 10, 2024
| } | ||
| }); | ||
|
|
||
| c.bench_function("internal pointer - normal objects", |_b| { |
Member
Author
There was a problem hiding this comment.
This is some data for this micro benchmark.
The naive implementation (find_prev_non_zero_value_simple, similar to #1155): check every aligned data address until we find the object.
internal pointer - normal objects
time: [12.910 µs 12.911 µs 12.912 µs]
internal pointer - large objects
time: [53.164 ns 53.486 ns 53.939 ns]Check every byte in side metadata until we find VO bit, and compute it back to the VO address
internal pointer - normal objects
time: [1.5500 µs 1.5504 µs 1.5509 µs]
change: [-88.001% -87.997% -87.994%] (p = 0.00 < 0.05)
Performance has improved.
internal pointer - large objects
time: [58.115 ns 58.137 ns 58.161 ns]
change: [+8.0877% +8.6753% +9.1317%] (p = 0.00 < 0.05)
Performance has regressed.Check every word in side metadata until we find VO bit, and compute it back to the VO address
internal pointer - normal objects
time: [311.28 ns 312.38 ns 313.51 ns]
change: [-79.856% -79.804% -79.741%] (p = 0.00 < 0.05)
Performance has improved.
internal pointer - large objects
time: [57.582 ns 57.607 ns 57.635 ns]
change: [-0.9006% -0.8311% -0.7566%] (p = 0.00 < 0.05)
Change within noise threshold.
Member
Author
There was a problem hiding this comment.
After applying the suggestion in #1165 (comment), we only check if the metadata address is mapped for every chunk. The performance is further improved.
internal pointer - normal objects
time: [139.48 ns 139.65 ns 139.82 ns]
change: [-55.524% -55.388% -55.250%] (p = 0.00 < 0.05)
Performance has improved.
internal pointer - large objects
time: [49.300 ns 49.361 ns 49.462 ns]
change: [-14.459% -14.367% -14.263%] (p = 0.00 < 0.05)
Performance has improved.
wks
reviewed
Jul 10, 2024
k-sareen
reviewed
Jul 10, 2024
wks
reviewed
Jul 10, 2024
wks
reviewed
Jul 10, 2024
wks
reviewed
Jul 10, 2024
wks
reviewed
Jul 10, 2024
Member
Author
|
binding-refs |
wks
reviewed
Jul 15, 2024
find_object_from_internal_pointer to the is_mmtk_object module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds internal pointer support. It supersedes #1155 which provides a simple but inefficient implementation for internal pointers. This PR is based on #1159 which adds requirements for object reference alignment.
This PR
memory_manager::find_object_from_internal_pointer