Skip to content

ringbuffer of dlt-daemon only record the old log messsages #628

Closed Answered by minminlittleshrimp
cumtsmart asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @cumtsmart

Case: No dlt client available
I observed in the source code and by doing some tests with continuously increasing the buffer.
What I have found is that this ring buffer is designed to use as producer/consumer mode (write faster than read, and in fact in this case read = 0 till buffer full):

new_head->read = 0;

new_head->read = 0;

,in which it means the lost of recent logs. No overwriting process there but only a checking for full buffer during while loop of writing:

Replies: 10 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@minminlittleshrimp
Comment options

Answer selected by minminlittleshrimp
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants
Converted from issue

This discussion was converted from issue #533 on May 08, 2024 09:12.