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

Buffered reads/writes for hint generation with shared memory #1127

Merged
merged 4 commits into from
Aug 6, 2024

Conversation

theo25
Copy link
Collaborator

@theo25 theo25 commented Aug 5, 2024

This PR adds implementation for buffered reads/writes from and to the shared memory ringbuffer during hint generation. The previous implementation would synchronize reads and writes at the granularity of one byte which is not ideal for performance. In this PR, we add support for synchronization across reads and writes of larger sizes. Both the ringbuffer-based proof trace reader and writer classes are updated to buffer incoming reads and writes: They collect data into an internal buffer and only interacting with the shared memory ringbuffer when that buffer is full in case of the writer or empty in case of the reader.

@rv-jenkins rv-jenkins changed the base branch from master to develop August 5, 2024 14:00
@theo25 theo25 marked this pull request as ready for review August 5, 2024 14:52
Copy link
Collaborator

@Robertorosmaninho Robertorosmaninho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides my questions, it LGTM

include/kllvm/binary/deserializer.h Show resolved Hide resolved
include/kllvm/binary/deserializer.h Show resolved Hide resolved
@theo25 theo25 force-pushed the hints-buffered-shm-io branch 5 times, most recently from ee8d57f to e0d8490 Compare August 5, 2024 22:28
@rv-jenkins rv-jenkins merged commit f7f3f29 into develop Aug 6, 2024
10 checks passed
@rv-jenkins rv-jenkins deleted the hints-buffered-shm-io branch August 6, 2024 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants