-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
riscv64 build issue - OOM kill, high memory usage #8640
Comments
The relevant line is:
Negative value means that the process exited due to a signal, I believe -9 is Is it possible the process was killed by the OOM killer? |
BTW, the debug assistance section says |
@alex thanks for the hint, that seems to be the problem. I didn't expect having to give 16GB RAM to that container (and with that, it is still using the swap). Is that normal / expected?
|
I would not have expected it to need 16GB, no. Our github actions runners have 7GB of RAM, and we build fine there. My first guess would be that since riscv64 is less widely used, there may be issues in llvm/clang/rustc that cause increased memory usage. But that's just speculation. |
OK, it worked! \o/ Looks like one needs 16GB RAM + 4GB Swap at least. |
Huh, cargo is really just coordinating shelling out to rustc, its very surprising to me that it'd be using a ton of RAM. |
I am trying to reproduce this issue on my VisionFive 2 board. I am seeing |
I didn't do anything special. Could it be that running this in a proxmox container on a ryzen host makes a difference? |
How are you cross-compiling from amd64 to riscv64? |
Not at all, I compile inside the riscv64 container. The userspace runs via |
Wanted to try whether
borgbackup
works on RISC-V, but I already failed setting up the development requirements for borg.I tried this on Proxmox PVE, using a container with a preinstalled Ubuntu 22.04 riscv64 system image (and installed all the missing stuff manually).
cryptography
40.0.1cffi
1.15.1pip
23.0.1setuptools
67.6.1The text was updated successfully, but these errors were encountered: