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

BASED ON #517 [#525] resizable shm support #527

Open
wants to merge 42 commits into
base: main
Choose a base branch
from

Conversation

elfenpiff
Copy link
Contributor

@elfenpiff elfenpiff commented Nov 25, 2024

Notes for Reviewer

Makes the ZeroCopyConnection concept multi segment capable. Instead of using of UsedChunkList, that tracks all outgoing samples to recover them when a subscriber dies, we have now one UsedChunkList per segment.
The user can define how many segments at most the ZeroCopyConnection can manage in parallel. This is useful to avoid the overhead in the case that one has a static type and not the slice case as payload.

Pre-Review Checklist for the PR Author

  1. Add sensible notes for the reviewer
  2. PR title is short, expressive and meaningful
  3. Relevant issues are linked in the References section
  4. Every source code file has a copyright header with SPDX-License-Identifier: Apache-2.0 OR MIT
  5. Branch follows the naming format (iox2-123-introduce-posix-ipc-example)
  6. Commits messages are according to this guideline
  7. Tests follow the best practice for testing
  8. Changelog updated in the unreleased section including API breaking changes
  9. Assign PR to reviewer
  10. All checks have passed (except task-list-completed)

Checklist for the PR Reviewer

  • Commits are properly organized and messages are according to the guideline
  • Unit tests have been written for new behavior
  • Public API is documented
  • PR title describes the changes

Post-review Checklist for the PR Author

  1. All open points are addressed and tracked via issues

References

Closes #525

…fail when the maximum amount of reallocations was exceeded
@elfenpiff elfenpiff self-assigned this Nov 25, 2024
@elfenpiff elfenpiff changed the title BASED ON [#525] resizable shm support BASED ON 517 [#525] resizable shm support Nov 25, 2024
@elfenpiff elfenpiff changed the title BASED ON 517 [#525] resizable shm support BASED ON #517 [#525] resizable shm support Nov 25, 2024
@elfenpiff elfenpiff force-pushed the iox2-525-resizable-shm-support branch from 50d399e to 5dfcfae Compare November 25, 2024 19:31
Copy link

codecov bot commented Nov 25, 2024

Codecov Report

Attention: Patch coverage is 87.55365% with 87 lines in your changes missing coverage. Please review.

Project coverage is 79.11%. Comparing base (2bfd0c9) to head (f656be3).
Report is 25 commits behind head on main.

Files with missing lines Patch % Lines
...ceoryx2-cal/src/resizable_shared_memory/dynamic.rs 88.67% 48 Missing ⚠️
iceoryx2-cal/src/zero_copy_connection/common.rs 84.61% 14 Missing ⚠️
iceoryx2-cal/src/shm_allocator/mod.rs 78.37% 8 Missing ⚠️
iceoryx2-bb/container/src/slotmap.rs 62.50% 6 Missing ⚠️
iceoryx2-bb/container/src/semantic_string.rs 50.00% 3 Missing ⚠️
iceoryx2-bb/lock-free/src/spsc/index_queue.rs 70.00% 3 Missing ⚠️
...ck-free/src/spsc/safely_overflowing_index_queue.rs 84.61% 2 Missing ⚠️
iceoryx2-cal/src/shm_allocator/pool_allocator.rs 96.00% 2 Missing ⚠️
iceoryx2-cal/src/shm_allocator/bump_allocator.rs 97.05% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #527      +/-   ##
==========================================
- Coverage   79.14%   79.11%   -0.04%     
==========================================
  Files         201      202       +1     
  Lines       24142    24826     +684     
==========================================
+ Hits        19108    19640     +532     
- Misses       5034     5186     +152     
Files with missing lines Coverage Δ
...l/src/communication_channel/posix_shared_memory.rs 90.64% <100.00%> (ø)
...yx2-cal/src/communication_channel/process_local.rs 89.31% <100.00%> (ø)
iceoryx2-cal/src/dynamic_storage/mod.rs 100.00% <ø> (ø)
...yx2-cal/src/dynamic_storage/posix_shared_memory.rs 89.07% <100.00%> (-0.22%) ⬇️
iceoryx2-cal/src/shared_memory/common.rs 86.53% <100.00%> (+0.15%) ⬆️
iceoryx2-cal/src/shared_memory/mod.rs 100.00% <ø> (ø)
iceoryx2-cal/src/shared_memory_directory/file.rs 86.36% <100.00%> (ø)
iceoryx2-cal/src/zero_copy_connection/mod.rs 12.50% <ø> (ø)
iceoryx2/src/port/details/publisher_connections.rs 98.68% <100.00%> (ø)
...ceoryx2/src/port/details/subscriber_connections.rs 94.80% <100.00%> (ø)
... and 12 more

... and 4 files with indirect coverage changes

@elfenpiff elfenpiff force-pushed the iox2-525-resizable-shm-support branch from 53a6c76 to f656be3 Compare November 26, 2024 01:04
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.

ResizableSharedMemory support in ZeroCopyConnection
1 participant