# Start up costs when using remotecall\_fetch

**URL:** https://discourse.julialang.org/t/start-up-costs-when-using-remotecall-fetch/27072
**Category:** Julia at Scale
**Created:** [August 1, 2019, 9:17am UTC](https://discourse.julialang.org/t/start-up-costs-when-using-remotecall-fetch/27072 "2019-08-01T09:17:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![DanielAvilaGirardot](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@DanielAvilaGirardot](https://discourse.julialang.org/u/DanielAvilaGirardot)
#### Post date: [August 1, 2019, 9:17am UTC](https://discourse.julialang.org/t/start-up-costs-when-using-remotecall-fetch/27072/1 "2019-08-01T09:17:43Z")

</div>

Hello,

Is there a measure of the start up costs when using functions such as pmap or remotecall\_fetch?. By start up cost I mean the time elapsed from the instant in which the remotecall\_fetch command is called and the instant in which the worker starts doing it’s job.

Thanks!

---

<div class="post-metadata">

### Author: ![pixel27](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pixel27/32/8902_2.png) [@pixel27](https://discourse.julialang.org/u/pixel27)
#### Post date: [August 3, 2019, 2:17am UTC](https://discourse.julialang.org/t/start-up-costs-when-using-remotecall-fetch/27072/2 "2019-08-03T02:17:04Z")

</div>

Are you trying to measure network latency? That sounds like an odd number to need. I also suspect it isn’t available, because it would require the two machines to have the exact same time, which is near impossible if not impossible, so your margin of error would be whatever the difference in time of the two machines.

Your best bet might be requesting a boolean from the other end and dividing the time to retrieve the value by 2, that should be a fair approximation of the delay between making the request and the remote end receiving it. I’d guess the margin or error would be around the same margin of error of trying to sync the time on two machines.

---

<div class="post-metadata">

### Author: ![DanielAvilaGirardot](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@DanielAvilaGirardot](https://discourse.julialang.org/u/DanielAvilaGirardot)
#### Post date: [August 4, 2019, 2:21pm UTC](https://discourse.julialang.org/t/start-up-costs-when-using-remotecall-fetch/27072/3 "2019-08-04T14:21:51Z")

</div>

Yes that’s correct, I’m interested in network latency. I have some problems, which are light to compute, and when using functions such as remotecall\_fetch or even @parallel, I was noticing that most of the total time wasn’t spent by workers doing work.

I guess maybe something as threads could work. Thanks!!
