Skip to content

Conversation

@adrianM27
Copy link
Contributor

Rretry the restore up to 3 times.

Also, the vm_region struct isn’t dumped - it stays in the memcr worker process memory. That is to avoid potential corruption. Since dumps are fully tied to the running memcr instance anyway, there is no real need to include it.
Downside: each memcr process uses a bit more memory, up to around 200 KB more.

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
@mkozlowski
Copy link
Collaborator

Restore should not need to retry - it should work first time or fail if there is a problem. What problem are you trying to solve with this?

As for vmr I prefer to keep it in memory dump as it reduces memcr memory usage. If there is a technical issue with this approach then let me know and we'll fix it. Memory dump is checksummed (if needed) so if vmr gets corrupted it will be detected and memcr will report an error.

@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