GithubHelp home page GithubHelp logo

Comments (5)

ymjiang avatar ymjiang commented on July 20, 2024

The key idea is that co-locating servers and workers causes bandwidth contention. If you already read this, let me give you an example.

Imagine you have 4 physical machines, and put one worker and one server on each physical machine (e.g., worker0 and server0 on same machine0). Say the model size is 1. In each iteration, worker0 needs to sends out 1/4 data to server1, server2 and server3, respectively (in total 3/4); meanwhile, server0 needs to sends out 1/4 data to worker1, worker2 and worker3, respectively (in total 3/4). Therefore, machine0 needs to send out 3/2 data in one iteration. You will find this value is equivalent to allreduce case.

(However, if you put servers on different machines, you will see the value is 1)

In short, if you co-locate workers & servers, the communication overhead is the same as allreduce.

from byteps.

Shuming19 avatar Shuming19 commented on July 20, 2024

In the same example, if a remote server is used, a remote server(totally 4 servers and 4 workers) needs to receive M/4 data from each worker and send M/4 data to each worker. The total data worker 0 transfers is 2M, which is greater than 3M/2, isn't it? That is to say, the server's bandwidth bottleneck is more serious.

Expect your reply. Thanks.

from byteps.

ymjiang avatar ymjiang commented on July 20, 2024

I am talking about one direction. Sending and receiving are duplex (two different directions) and do not affect each other in terms of bandwidth.

You can imagine there are two channels between two endpoints: one is for sending traffic from A to B, and the other is for B to A. They do not affect each other at all.

from byteps.

Shuming19 avatar Shuming19 commented on July 20, 2024

Thank you. That makes sense.

from byteps.

ymjiang avatar ymjiang commented on July 20, 2024

Closing this.

from byteps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.