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

Memory issue on chrome os crostini? #72

Open
Usulyre opened this issue Feb 15, 2025 · 8 comments
Open

Memory issue on chrome os crostini? #72

Usulyre opened this issue Feb 15, 2025 · 8 comments

Comments

@Usulyre
Copy link

Usulyre commented Feb 15, 2025

Trying this on chrome os crostini debian bookworm

Error when entering "sudo ./build/mvisor -c config/sample.yaml -vnc 5900"

[0.003] core/memory_manager.cc:95 InitializeSystemRam() panic-error: Assertion failed, madvise(system_ram_host_, machine_->ram_size_, MADV_MERGEABLE) == 0 errno=22, Invalid argument
terminate called after throwing an instance of 'std::runtime_error'
what(): Panic

Config file:

sample.txt

@nooodles2023
Copy link
Collaborator

How about commenting out this line?

@Usulyre
Copy link
Author

Usulyre commented Feb 17, 2025

How about commenting out this line?

Hi what line do I comment out?

@nooodles2023
Copy link
Collaborator

madvise(system_ram_host_, machine_->ram_size_, MADV_MERGEABLE) == 0
Try to comment out this assert at memory_manager.cc:95

@Usulyre
Copy link
Author

Usulyre commented Feb 17, 2025

madvise(system_ram_host_, machine_->ram_size_, MADV_MERGEABLE) == 0 Try to comment out this assert at memory_manager.cc:95

#MV_ASSERT(madvise(system_ram_host_, machine_->ram_size_, MADV_MERGEABLE) == 0);

Like that?

If so, it still displays the same error for some reason

@Usulyre
Copy link
Author

Usulyre commented Feb 21, 2025

Anything else I can do to get past the error?

@nooodles2023
Copy link
Collaborator

madvise(system_ram_host_, machine_->ram_size_, MADV_MERGEABLE) == 0 Try to comment out this assert at memory_manager.cc:95

#MV_ASSERT(madvise(system_ram_host_, machine_->ram_size_, MADV_MERGEABLE) == 0);

Like that?

If so, it still displays the same error for some reason

Yes, comment thie line out, and recompile the mvisor.
If something error still happened, post it here.

PS: We haven't tested mvisor on chrome os yet. We recommend to use ubuntu or rocky linux

@Usulyre
Copy link
Author

Usulyre commented Feb 21, 2025

madvise(system_ram_host_, machine_->ram_size_, MADV_MERGEABLE) == 0 Try to comment out this assert at memory_manager.cc:95

#MV_ASSERT(madvise(system_ram_host_, machine_->ram_size_, MADV_MERGEABLE) == 0);
Like that?
If so, it still displays the same error for some reason

Yes, comment thie line out, and recompile the mvisor. If something error still happened, post it here.

PS: We haven't tested mvisor on chrome os yet. We recommend to use ubuntu or rocky linux

Ok, I didn't recompile yet.

Also, to mention I'm running chrome os crostini which is running debian bookworm.

@Usulyre
Copy link
Author

Usulyre commented Feb 23, 2025

Did this:

/*MV_ASSERT(madvise(system_ram_host_, machine_->ram_size_, MADV_MERGEABLE) == 0); */

recompiled and running now

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