34 ms·
Likely forking sleep takes time.
by snvzz 9y ago
Likely forking sleep takes time.
- yjftsjthsd-h 9y agoI would be extremely surprised if fork on a unix-like takes 1ms.
- snvzz 9y agoBe horrified, then. https://redislabs.com/blog/testing-fork-time-on-awsxen-infrastructure/ https://redislabs.com/blog/testing-fork-time-on-awsxen-infra... https://www.cs.indiana.edu/~adkulkar/papers/pspawn.pdf https://www.cs.indiana.edu/~adkulkar/papers/pspawn.pdf
- yjftsjthsd-h 9y agoBoth of those appear to indicate that forking is expensive when you need to copy unusually large amounts of memory (which makes sense). In this context, I would expect reasonable/small memory use and so fast forking.
- snvzz 9y agoFrom lmbench, http://www.bitmover.com/lmbench/lat_proc.8.html http://www.bitmover.com/lmbench/lat_proc.8.html Try it out.