Skip to content

Conversation

@adrianM27
Copy link
Contributor

The data buffer for page upload during Restore and data buffer for compression/decompression moved to heap

adrianM27 and others added 2 commits July 21, 2025 11:19
* Log what failed and for which VM
* Kill PID on error
* Verify restored VM size
@adrianM27 adrianM27 force-pushed the read_bufs_moved_to_heap branch from 79fd723 to 80727de Compare July 24, 2025 08:37
@adrianM27 adrianM27 force-pushed the read_bufs_moved_to_heap branch from 80727de to 75f18fc Compare July 24, 2025 08:42
@mkozlowski
Copy link
Collaborator

Using stack here is fine as the buffer size of ~1MB is relatively low and it results in a simpler code. It is also thread safe while global heap pointer is not. Another approach would be to provide heap allocated buffer pointer as a context when calling compress functions but this makes API more complex so I decided to go with the stack buffer.

Is there any technical issue with the current approach?

@adrianM27
Copy link
Contributor Author

Closing, since no strong arguments to deliver it. Will reopen once needed

@adrianM27 adrianM27 closed this Jul 30, 2025
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.

2 participants