-
Notifications
You must be signed in to change notification settings - Fork 181
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
Migrate SHM #1798
Migrate SHM #1798
Conversation
PR missing one of the required labels: {'bug', 'dependencies', 'enhancement', 'internal', 'breaking-change', 'documentation', 'new feature'} |
…s (and always had) some issues to fix
- disable some shm tests only for macos
- fix clippy - take new elem_count() behavior into account (elem_count may be bigger then the one requested upon segment creation)
lints: base64ct issue |
…pfs, so need other bsd-specific mechanism)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @yellowhatter, besides the comments, I have one more question.
We added advisory-lock as a new dependency, but it has been inactive for five years. Should we be concerned about this?
commons/zenoh-shm/tests/shm.rs
Outdated
@@ -0,0 +1,99 @@ | |||
// | |||
// Copyright (c) 2023 ZettaScale Technology |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2023 -> 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
commons/zenoh-shm/tests/shm.rs
Outdated
} | ||
|
||
#[test] | ||
fn create_and_open_amd_reopen() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amd -> and
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Dev/shm persistency on mac
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1798 +/- ##
==========================================
- Coverage 70.41% 70.40% -0.02%
==========================================
Files 358 359 +1
Lines 64586 64617 +31
==========================================
+ Hits 45476 45491 +15
- Misses 19110 19126 +16 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- fix segment collision from different runs
I think there is no problem to use it while it satisfies our needs |
SegmentLock
struct - use advisory locking withinSegment
Segment
andArrayInShm
)PosixShmProviderBackend
to expose more occupied memory to user