Open bvdmitri opened 1 year ago
This is an unfortunate consequence of pandoc/dockerfiles#134. We built on those images, so there is nothing we can do until that issue is done.
I'm on a M1 and also got the "Killed" response. After following the process with
$ docker stats
it appears that the process runs out of memory during document building when using the default Docker settings. On my Mac, the default Docker memory limit was 7.9 GB and the process requires 12.94 GB of RAM during the execution of the self-citation.lua
filter.
After bumping the default limit from 8 GB to 14 GB, the process does finish and takes about 3 minutes. On my x86 Linux it took only about 30 seconds. So it's about 5 times is slow while this processor is in general much quicker than my x86 was.
In summary, it does work when setting the memory limits to at least 13 GB, but it does run very inefficient.
EDIT: https://github.com/rust-lang/cargo/issues/10583 appears related as does https://github.com/docker/for-mac/issues/5179#issuecomment-834359973. Root cause appears to be static memory (https://github.com/bytecodealliance/wasmtime/pull/1895).
I have the following script to compile my paper:
Somewhere in the middle of the process I get "Killed" message. In the beginning docker complains with the following warning:
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
I tried to set
--platform linux/arm64/v8
, but it seems that there is no such image available.