# Identifying wokers and CPU sockets

**URL:** <https://discourse.julialang.org/t/identifying-wokers-and-cpu-sockets/17776>\
**Category:** Julia at Scale\
**Created:** [November 20, 2018, 2:25pm UTC](https://discourse.julialang.org/t/identifying-wokers-and-cpu-sockets/17776 "2018-11-20T14:25:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julien](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/julien/32/6108_2.png) [@Julien](https://discourse.julialang.org/u/Julien)\
**Post date:** [November 20, 2018, 2:25pm UTC](https://discourse.julialang.org/t/identifying-wokers-and-cpu-sockets/17776/1 "2018-11-20T14:25:49Z")

</div>

Hi,

When working on a cluster, is there a way to know which worker belongs to which socket?  
I am trying to send tasks to a group of workers belonging to the same socket.

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![JaredCrean2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaredcrean2/32/3574_2.png) [@JaredCrean2](https://discourse.julialang.org/u/JaredCrean2)\
**Post date:** [November 20, 2018, 3:18pm UTC](https://discourse.julialang.org/t/identifying-wokers-and-cpu-sockets/17776/2 "2018-11-20T15:18:08Z")

</div>

That depends on precisely what information you want to know. As far as I am aware, Julia processes are not bound to a particular core (or socket, if one node of the cluster has multiple sockets). I’m not sure how to figure out what core/socket a given process is currently running on.

If you just what to figure out which processes are running on which nodes, you could have each worker run `gethostname()` and send it to the master process (it sounds like you are using a master-slave communication model). The master process would then have to group the workers by the hostname, which should be easy enough.
