goldsborough / ipc-bench

:racehorse: Benchmarks for Inter-Process-Communication Techniques
MIT License
696 stars 108 forks source link

Error opening child process: No such file or directory #29

Open zzmOVO opened 3 years ago

zzmOVO commented 3 years ago

Can you tell me how to solve this problem ?

alexandervanrenen commented 3 years ago

We would need a lot more context to even try. I would recommend to just use a debugger (gdb) and figure out why it is crashing. Overall it is quite a bit of code, but the individual benchmarks are only a few 100 lines each. So the first step would be to figure out for which communication method it crashes.

Feel free to post any progress on the problem, we would be interested in fixing this :)

zzmOVO commented 3 years ago

when I run mq.server, it point out 'Reduced the message size to 2048 bytes!',can you tell me how to reduced the message?

alexandervanrenen commented 3 years ago

This is because message queues are limited to a certain size. On our testing systems it was 2048. You can try increasing the limit and see if it works on your machine. If you find a better way of doing that, let us know:

https://github.com/goldsborough/ipc-bench/blob/5d01a1a88cc92de76b20d2cc29f54eaa0e7cc913/source/mq/mq-common.h#L5-L12

DanielEbert commented 2 years ago

Can you tell me how to solve this problem ?

Had the same problem because I named the 'build' folder something else. Naming it 'build' fixed the problem for me

manzidi commented 2 years ago

I also had the same issue when I built the binaries from one machine and copied them to another machine. So you might consider rebuilding if you copy the files to another machine.