data61 / MP-SPDZ

Versatile framework for multi-party computation
Other
874 stars 273 forks source link

socket : Too many open files #537

Closed zhizhi-2 closed 2 years ago

zhizhi-2 commented 2 years ago

This error occurred at runtime when computing between four parties using shamir-party.x

mkskeller commented 2 years ago

Did you use a program with a lot of threads? What system are you on? On Linux, you can increase the capacity with ulimit -n.

zhizhi-2 commented 2 years ago

Did you use a program with a lot of threads? What system are you on? On Linux, you can increase the capacity with ulimit -n.

Thank you! It is indeed the cause of the problem

zhizhi-2 commented 2 years ago

Did you use a program with a lot of threads? What system are you on? On Linux, you can increase the capacity with ulimit -n.

I have another question, is there a way to convert cfix data types to Python data types ?

mkskeller commented 2 years ago

Inherently not because cfix only hold value during the runtime but Python types only exist during compilation.

zhizhi-2 commented 2 years ago

Inherently not because cfix only hold value during the runtime but Python types only exist during compilation. Thank for your reply. Does that mean that if MP-SPDZ is used to implement the secure aggregation of federated learning but the training phase in plaintext is not feasible

mkskeller commented 2 years ago

A lot of the training functionality isn't implemented for cfix. However, emulate.x provides functionality to run the secure computation code generated by the compile in plaintext.