-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
xcp exhausts memory, probably avoidably #769
Comments
disko-images uses cp not xcp. |
Did you maybe use an older version of disko? Because we are using xargs + cp: Line 91 in 624fd86
|
I think I just crossed wires. I am definitely using recent disko. However, I'm still suspicious that we can somehow batch/chunk around It's very apparent that this copy step uses a LOT of memory, it's where my image build fails every time with a large enough closure and not enough VM ram. Obviously it's easy to just bump the builder ram, but again, I'm guessing that this can be massaged to not use so much RAM for the copy. |
Hmm, I'm not sure why this happens. I can definitely confirm that:
However, I also observed:
Additionally, I tried to reproduce this by running this copy operation on the exact same
You can see I think the issue is that we're using a tmpfs for storage of the VM, which resides in memory. We run the
As the command copies to The solution would be to pass a However, I'm not entirely sure that's what you're complaining about. If setting
That's to be expected, xargs is desigend to work around this limitation. From xarg's manpage:
|
Those disks should be actually not in tmpfs of the virtual machine, because we add them from the build directory via virtio-blk as block devices: Line 102 in 51994df
I did try debug kernel to see where the memory usage is coming from but it is still not super clear to me. For zfs it seemed to be zfs internal memory allocations that added up. |
xcp
with ALL store paths at once, would avoid needing a larger guest just to install the closure.The text was updated successfully, but these errors were encountered: