[nanomsg] Re: inproc cost /mulithreaded cost

  • From: Martin Sustrik <sustrik@xxxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Mon, 09 Dec 2013 22:28:25 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/12/13 22:03, Apostolis Xekoukoulotakis wrote:
> What is the  inproc communication cost as related to a
> multiplication or an if statement?

It's much more expensive. What we are talking here about is
synchronisation between multiple CPU cores, locking down the bus,
flushing data from one core's cache and reading them to another CPU's
cache etc.

The difference from simple multiplication should be somewhere around
3-4 orders of magnitude assuming there's a lot of synchronisation
between different cores going on in parallel.

Martin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSpjXuAAoJENTpVjxCNN9YMyEIAJgc0hvxF2KHBupKjMn1UWU+
XoJ2ABVhf+OxKdWtZkn/DyLkHNoSQkdXdJdDT/IxVEMj1JvqRiX8t2tLN0fW5NRp
rIQzEVcZLqp7fKakHx7Chy76R9MkHvEMAJr9SY6evSoWoy0xoXw6rdMY2CJN+yBn
d2bOp31dFNFOUHbLcZfNevjCg/5k4cCW3hhjozc+cTTC+Q7umrRaa4AGGIThFfqY
ibHwXV6gVnN5QZ+G6JPChwUUJZPpDElBf0C3T9/Zq9U5hRX0zqVuWwVfztBd0uqo
Y+evGI1Hen9wVvMa8oDUtt2u0cbEVPgFjhkdhNo3m0AHXMZPOcquoa4K95vUglM=
=o0HD
-----END PGP SIGNATURE-----

Other related posts: