Giter Club home page Giter Club logo

Comments (7)

sjeaugey avatar sjeaugey commented on July 17, 2024

My understanding is that since the performance with one GPU per node, it's not due to network limitations but rather limitations within the node itself, correct?

Correct.

Why does the addition of network cards result in decreased performance? Are there any optimization methods available?

I didn't get that. Where did you add network cards and it degraded performance?

from nccl.

SongyuanZhao avatar SongyuanZhao commented on July 17, 2024

Thank you for your reply!

My point is, why is there a performance drop when there are two GPUs per node(20GB/s) compared to one GPU per node(21.4GB)? As we discussed earlier, it could be assumed that this degradation due to the limitations within the node. What exactly causes this limitation? possibly PCIe switching performance?

However, performance testing within the node with 2/3/4 GPUs does not exhibit any degradation. From the perspective of a single server, compared to intra-node, inter-node simply adds another data stream from the NIC. If the degradation is due to switching performance, it should also happen during intra-node test.

Or could there be other reasons?

from nccl.

sjeaugey avatar sjeaugey commented on July 17, 2024

Yes it could be the PCI switch degrading performance a bit, but it's not a big degradation; it's unlikely to matter much in real apps.

Can you see if NCCL_NET_GDR_READ=1 gets better results?

from nccl.

SongyuanZhao avatar SongyuanZhao commented on July 17, 2024

Alright, thank you for your advice.

Our servers are busy now, I will try once they are free.

from nccl.

SongyuanZhao avatar SongyuanZhao commented on July 17, 2024

Thank you very much for your advice! It's really helpful.
Actually, I tried NCCL_NET_GDR_READ=0 and get better results (22GB/s). It seems that the default value in our environment is 1, although there is no NVLINK in my setup. Our NCCL version is 2.19.4.

from nccl.

sjeaugey avatar sjeaugey commented on July 17, 2024

Ah, indeed GDR Read was disabled by default only on Volta and before. Since Ampere, it is enabled by default. Disabling it may improve performance, but it will cause more traffic to the CPU and back, so in a real application, that could slow down the CPU-GPU exchanges and NCCL could also be slowed down by those transfers. So I would advise to make sure real applications do see a benefit when using this environment variable before setting it.

from nccl.

SongyuanZhao avatar SongyuanZhao commented on July 17, 2024

Got it. Thanks again.

from nccl.

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.