Lock free ringbuffer for alive notifications
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Read score/launch_manager/src/daemon/src/alive_monitor/details/ipc/ringbuffer.hpp and the existing score/launch_manager/src/daemon/src/common/concurrency/mpsc_bounded_queue.hpp. Trace the alive checkpoint reporting path and the internal communication usage in supervision_event.hpp; the issue also calls for a reader/writer stress test under thread sanitizer. Done means checkpoint reporting uses a SPSC lock-free ring buffer and internal communication uses the existing queue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What
Context
Applications can send alive notifications to the launch manager for health monitoring.
Each application process gets its own shared memory for this (freedom from interference).
Application process writes checkpoint into the memory, Launch Manager reads checkpoints from the shared memory.
The shared memory contains a ring buffer implementation.
Problem
This ring buffer is currently implemented with a mutex, which performs badly (at least on QNX) due to the kernel calls involved.
Specifically, Launch Manager may check all shared memories every 10ms for content, which requires the expensive mutex locking even if no checkpoints have been reported.
Solution
Change the implementation to a simple lock-free implementation for a single Producer (Application process), single consumer (Launch Manager).
Add a "stress test" with a reader and writer thread that runs under thread sanitizer.
The current ring buffer is also used in another place for communication btw. alive monitor thread and worker threads.
This usage shall be replaced with the existing MPSC queue. This communication is not IPC communication and it was only using the ipc ringbuffer for legacy reasons.
You might want to add the getOverflow() flag to the generic mpsc queue or add a wrapper that supports this.
Acceptance Criteria (DoD)
- Alive checkpoint reporting uses a SPSC lock free ringbuffer
- Launch Managers Internal communication migrated to use the existing queue implementation
How
No response
- Lingua principale
- C++
- Stelle
- 6
- Fork
- 35
- Merge medio
- 2g 6h
- PR unite (30g)
- 92
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di eclipse-score/lifecycle
-
Make integration tests have debug assertsForse già presa @hskang-amelia l’ha presa oggi. Apertatests
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
eclipse-score/lifecycle#843 ·
I maintainer di solito rispondono entro 1 giorno
-
Move all "Default" asserts to debugForse già presa @hskang-amelia l’ha presa oggi. Apertacleanup good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
eclipse-score/lifecycle#842 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
eclipse-score/lifecycle#407 ·
I maintainer di solito rispondono entro 1 giorno
-
cleanup
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
eclipse-score/lifecycle#375 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
eclipse-score/lifecycle#817 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di eclipse-score/lifecycle
Issue simili
-
[Bug]: iOS textarea wraps text mid-word because LynxUIBaseInput hardcodes NSLineBreakByCharWrappingAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
lynx-family/lynx#10455 ·
I maintainer di solito rispondono entro 1 giorno
-
A-tools P-low S-blocked task
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Rifle-variant weapon offsets are saved under the pistol's name [FRIK-093]Forse già presa @rollingrock l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
rollingrock/Fallout-4-VR-Body#182 ·
-
[Ulduar] Kologarn – Focused Eyebeam emote is shown to the whole raid instead of only the targetAperta80 Confirmed Instance - Raid - Northrend
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
azerothcore/azerothcore-wotlk#28277 ·
I maintainer di solito rispondono entro 1 giorno
-
(S1 - Need confirmation)
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
CleverRaven/Cataclysm-DDA#89304 ·
I maintainer di solito rispondono entro 1 giorno