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

Crash with persistent version-based example during group construction #235

Open
Steamgjk opened this issue Mar 22, 2022 · 1 comment
Open

Comments

@Steamgjk
Copy link

I am studying the version-based example.
I refer to persistent_vector.cpp in the archive and modify simple_replicated_objects_json.cpp.
I use ramfs based on the discussion at #233, and
mount -t ramfs -o size=1000m ramfs /mnt/ram

for each of the three VM.

But after I launch node-0 and node-1, it throws errors
图片

At the beginning, I thought it is because I did not copy the config and program to ramfs. However, even after I copied simple_replicated_objects_json and derecho.cfg to /mnt/ram there, it still throws the error.

I attach the cpp file and cfg files as below.
Archive.zip

Besides,
(1) If I want to use ramfs, how should I configure cfg files? (Question #234)
(2) If I want to use ramfs, do I have to copy the program and cfg to the ramfs folder and run there? Or can I just run in the previous location?

@songweijia
Copy link
Contributor

There are several reasons for this issue:

  1. Did you check the vm.overcommit_memory setting discussed here?
  2. If 1) is true, I suspect the size of ramfs is too small. Could you try 4 - 8 GB instead?

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

No branches or pull requests

2 participants