-
Notifications
You must be signed in to change notification settings - Fork 56
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
yescrypt test fails on systems with less than 1 GiB of free memory #165
Comments
This test needs 1 GiB of memory, and your system doesn't seem to have that much RAM+swap. Maybe we need to add printing of |
It has only 1 GiB and no swap. So it wasn't an armv7l. Some information about out of memory would be nice. Otherwise you can close this issue |
I just ran into the same thing, but using qemu on a machine with plenty of RAM. I'm guessing rather running out of memory it's running out of address space on 32-bit ARM. Maybe that specific test should be skipped on 32-bit architectures? |
You didn't say how much RAM you allocated to the QEMU VM. I guess not plenty.
No, 1 GiB can generally be allocated just fine on 32-bit, and that worked in my tests. We do need to improve the error reporting by this tests, or/and skip it by default, but because of low memory VMs - not because 32-bit systems exist. |
For reference, I'm using qemu user mode emulation so there's no VM. I haven't been able to find information about any memory limits that apply to user mode emulation.
I agree it's odd that it fails. The kernel seems intent to map memory below |
Thank you, @Lucus16. OK, yes, this is a reason for us to consider skipping this test. |
I found the likely reason: The man page of mmap describes the MAP_32BIT flag as follows:
It's likely that qemu uses this flag when emulating 32-bit binaries on 64-bit systems. 2GB is enough in principle for the 1GB allocation, but based on the memory map I'm reading from the process, it appears some stuff was already allocated in the middle, leaving insufficient space at either side for a 1GB allocation. |
I've also hit this, in the official NixOS sd card image for armv6 :/ |
The test for yesscrypt fails on an armv7l rashberry pi 2
The text was updated successfully, but these errors were encountered: