Replies: 1 comment 2 replies
-
|
Fork is very expensive and slow in Gramine and looks like its just not two processes but you are forking several child processes in your solution. You maybe running out of EPC and hence fork failing. How much EPC do you have on your system? See if you can reduce the EPC size and/or number of threads. You can try EDMM that may help as it will not hog EPC at start time. Otherwise think through which processes do really need to run inside SGX and not try to run the whole system inside SGX. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
In short, I’m trying to run flower-superlink and serverapp (which is launched as a subprocess by flower-superlink) inside a single image built with gsc. However, when starting federated learning, I keep running into this error:
Does this indicate that some libraries might be using system calls that are not supported by Gramine?
Here is my
manifest template:fs.mounts = [ { path = "/tmp", type = "tmpfs" }, { path = "/opt/flower/apps", type = "tmpfs" }, { path = "/opt/flower/storage", type = "tmpfs" }, ] loader.env.SSL_CERTFILE = { passthrough = true } loader.env.SSL_KEYFILE = { passthrough = true } loader.env.SSL_CA_CERTFILE = { passthrough = true } loader.env.FLOWER_TLS_MODE = { passthrough = true } loader.env.SERVERAPPIO_API_ADDRESS = { passthrough = true } loader.env.FLEET_API_ADDRESS = { passthrough = true } loader.env.CONTROL_API_ADDRESS = { passthrough = true } loader.env.FLOWER_DATABASE_URL = { passthrough = true } loader.env.FLOWER_STORAGE_DIR = { passthrough = true } loader.env.FLOWER_SUPERLINK_EXTRA_ARGS = { passthrough = true } sys.enable_sigterm_injection = true sys.insecure__allow_eventfd = true sgx.enclave_size = "1024M" sgx.max_threads = 128 sgx.remote_attestation = "dcap"and my
Dockerfile:and my entrypoint script:
I’d like to know how to fix this issue. Do you have any suggestions? Or is there a better approach to run both SuperLink and ServerApp inside an Intel SGX TEE?
Beta Was this translation helpful? Give feedback.
All reactions