# InfiniBand

Published articles for InfiniBand.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## FS Pairs 1.6T Scale-Out Optics With 500 km Coherent Modules and a Handheld Toolkit for AI Fabrics

DevFeed: [FS Pairs 1.6T Scale-Out Optics With 500 km Coherent Modules and a Handheld Toolkit for AI Fabrics](<https://devfeed.tech/articles/fs-pairs-1-6t-scale-out-optics-with-500-km-coherent-modules-and-a-handheld-toolkit-for-ai-fabrics-17434.md>)

Original publisher: [Read original article](<https://www.storagereview.com/news/fs-pairs-1-6t-scale-out-optics-with-500-km-coherent-modules-and-a-handheld-toolkit-for-ai-fabrics>)

Author: Harold Fritts

Published: 2026-09-14T17:34:25Z

Content type: news

Language: en

Sources: [StorageReview.com](<https://devfeed.tech/sources/storagereview-com.md>)

Topics: [GPU](<https://devfeed.tech/topics/gpu.md>), [InfiniBand](<https://devfeed.tech/topics/infiniband.md>), [Networks](<https://devfeed.tech/topics/networks.md>), [Ethernet](<https://devfeed.tech/topics/ethernet.md>), [datacenter](<https://devfeed.tech/topics/datacenter.md>), [Nvidia](<https://devfeed.tech/topics/nvidia.md>), [data](<https://devfeed.tech/topics/data.md>)

Tags: [announcement](<https://devfeed.tech/tags/announcement.md>), [data-center](<https://devfeed.tech/tags/data-center.md>), [enterprise](<https://devfeed.tech/tags/enterprise.md>), [ethernet](<https://devfeed.tech/tags/ethernet.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [infiniband](<https://devfeed.tech/tags/infiniband.md>), [networking](<https://devfeed.tech/tags/networking.md>), [networks](<https://devfeed.tech/tags/networks.md>), [nvidia](<https://devfeed.tech/tags/nvidia.md>)

### AI overview

FS presents a two-part optics portfolio for AI networking: 400G, 800G, and 1.6T Scale-Out transceivers for links within GPU clusters, plus 400G and 800G Scale-Across coherent modules for connecting clusters across sites up to 500 km. The announcement also introduces the BOX 5 Ultra handheld toolkit for configuring, validating, and monitoring transceivers from 100M to 1.6T.

### Source excerpt

FS has organized its AI optics into a two-part portfolio: Scale-Out transceivers at 400G, 800G, and 1.6T for the links inside a GPU cluster, and Scale-Across coherent modules at 400G and 800G for stitching clusters together across sites at distances up to 500 km. The Scale-Out side covers Ethernet, RoCE, and InfiniBand fabrics between GPU The post FS Pairs 1.6T Scale-Out Optics With 500 km Coherent Modules and a Handheld Toolkit for AI Fabrics appeared first on StorageReview.com.

## VDURA Deploys High-Performance Storage Platform for AI and HPC at New Mexico State University

DevFeed: [VDURA Deploys High-Performance Storage Platform for AI and HPC at New Mexico State University](<https://devfeed.tech/articles/vdura-deploys-high-performance-storage-platform-for-ai-and-hpc-at-new-mexico-state-university-12380.md>)

Original publisher: [Read original article](<https://www.storagereview.com/news/vdura-deploys-high-performance-storage-platform-for-ai-and-hpc-at-new-mexico-state-university>)

Author: Harold Fritts

Published: 2026-09-02T10:00:00Z

Content type: news

Language: en

Sources: [StorageReview.com](<https://devfeed.tech/sources/storagereview-com.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [High-Performance Computing](<https://devfeed.tech/topics/high-performance-computing.md>), [Data Infrastructure](<https://devfeed.tech/topics/data-infrastructure.md>), [InfiniBand](<https://devfeed.tech/topics/infiniband.md>), [Post-quantum cryptography](<https://devfeed.tech/topics/post-quantum-cryptography.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Training AI Models](<https://devfeed.tech/topics/training-ai-models.md>), [Hardware](<https://devfeed.tech/topics/hardware.md>), [Low Latency](<https://devfeed.tech/topics/low-latency.md>), [Quantum Computing](<https://devfeed.tech/topics/quantum-computing.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [data-infrastructure](<https://devfeed.tech/tags/data-infrastructure.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [enterprise](<https://devfeed.tech/tags/enterprise.md>), [enterprise-storage](<https://devfeed.tech/tags/enterprise-storage.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [high-performance-computing](<https://devfeed.tech/tags/high-performance-computing.md>), [infiniband](<https://devfeed.tech/tags/infiniband.md>), [low-latency](<https://devfeed.tech/tags/low-latency.md>), [post-quantum-cryptography-pqc](<https://devfeed.tech/tags/post-quantum-cryptography-pqc.md>), [quantum](<https://devfeed.tech/tags/quantum.md>), [storage](<https://devfeed.tech/tags/storage.md>)

### AI overview

VDURA has moved its storage platform at New Mexico State University into full production to support AI and high-performance computing research. The deployment combines NVMe flash and high-density HDD tiers through a global namespace over InfiniBand, allowing separate scaling of performance and capacity. It also supports NMSU's post-quantum cryptography research and large-scale data pipeline projects.

### Source excerpt

VDURA has completed the deployment of its data platform at New Mexico State University (NMSU), moving the system into full production. The infrastructure is designed to serve the university's research community with a high-durability, high-throughput storage environment tailored specifically for artificial intelligence and high-performance computing (HPC) workloads. NMSU, which holds Carnegie R1 status and manages The post VDURA Deploys High-Performance Storage Platform for AI and HPC at New Mexico State University appeared first on StorageReview.com.

## NVIDIA BlueField-4 Powers New Scale-In Network Infrastructure for Agentic AI Factories

DevFeed: [NVIDIA BlueField-4 Powers New Scale-In Network Infrastructure for Agentic AI Factories](<https://devfeed.tech/articles/nvidia-bluefield-4-powers-new-scale-in-network-infrastructure-for-agentic-ai-factories-6889.md>)

Original publisher: [Read original article](<https://developer.nvidia.com/blog/nvidia-bluefield-4-powers-new-scale-in-network-infrastructure-for-agentic-ai-factories/>)

Author: Michelle Horton

Published: 2026-08-24T15:00:00Z

Content type: article

Language: en

Sources: [NVIDIA Developer](<https://devfeed.tech/sources/nvidia-developer.md>), [NVIDIA Technical Blog](<https://devfeed.tech/sources/nvidia-technical-blog.md>)

Topics: [AI Factory](<https://devfeed.tech/topics/ai-factory.md>), [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [networking](<https://devfeed.tech/topics/networking.md>), [Nvidia](<https://devfeed.tech/topics/nvidia.md>), [cloud-infrastructure](<https://devfeed.tech/topics/cloud-infrastructure.md>), [datacenter](<https://devfeed.tech/topics/datacenter.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [NVLink](<https://devfeed.tech/topics/nvlink.md>), [InfiniBand](<https://devfeed.tech/topics/infiniband.md>)

Tags: [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-factory](<https://devfeed.tech/tags/ai-factory.md>), [ai-infrastructure](<https://devfeed.tech/tags/ai-infrastructure.md>), [bluefield-dpu](<https://devfeed.tech/tags/bluefield-dpu.md>), [connectx](<https://devfeed.tech/tags/connectx.md>), [data-center-cloud](<https://devfeed.tech/tags/data-center-cloud.md>), [data-centers](<https://devfeed.tech/tags/data-centers.md>), [dsx](<https://devfeed.tech/tags/dsx.md>), [grace-cpu](<https://devfeed.tech/tags/grace-cpu.md>), [infiniband](<https://devfeed.tech/tags/infiniband.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [network](<https://devfeed.tech/tags/network.md>), [networking](<https://devfeed.tech/tags/networking.md>), [networking-communications](<https://devfeed.tech/tags/networking-communications.md>), [nvidia](<https://devfeed.tech/tags/nvidia.md>), [nvlink](<https://devfeed.tech/tags/nvlink.md>), [top-stories](<https://devfeed.tech/tags/top-stories.md>), [vera-cpu](<https://devfeed.tech/tags/vera-cpu.md>), [vera-rubin](<https://devfeed.tech/tags/vera-rubin.md>)

### AI overview

NVIDIA describes Scale-In network infrastructure for agentic AI factories, centered on BlueField-4, DOCA, and Spectrum-X Ethernet. The architecture is intended to accelerate networking, storage, security, data movement, tenant isolation, and infrastructure operations as AI compute scales.

### Source excerpt

Traditional cloud infrastructure was designed for predictable, general-purpose workloads and standard interfaces. Agentic AI factories connect diverse users,...

## How to Choose Full-Stack Observability for NVIDIA AI Factories

DevFeed: [How to Choose Full-Stack Observability for NVIDIA AI Factories](<https://devfeed.tech/articles/how-to-choose-full-stack-observability-for-nvidia-ai-factories-6847.md>)

Original publisher: [Read original article](<https://developer.nvidia.com/blog/how-to-choose-full-stack-observability-for-nvidia-ai-factories/>)

Author: Jorge Cardoso

Published: 2026-08-12T16:13:47Z

Content type: tutorial

Language: en

Sources: [NVIDIA Developer](<https://devfeed.tech/sources/nvidia-developer.md>), [NVIDIA Technical Blog](<https://devfeed.tech/sources/nvidia-technical-blog.md>)

Topics: [observability](<https://devfeed.tech/topics/observability.md>), [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [NVIDIA DGX](<https://devfeed.tech/topics/nvidia-dgx.md>), [InfiniBand](<https://devfeed.tech/topics/infiniband.md>), [telemetry](<https://devfeed.tech/topics/telemetry.md>), [dashboards](<https://devfeed.tech/topics/dashboards.md>), [NCCL](<https://devfeed.tech/topics/nccl.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>)

Tags: [ai-factory](<https://devfeed.tech/tags/ai-factory.md>), [ai-infrastructure](<https://devfeed.tech/tags/ai-infrastructure.md>), [data-center-cloud](<https://devfeed.tech/tags/data-center-cloud.md>), [distributed-training](<https://devfeed.tech/tags/distributed-training.md>), [featured](<https://devfeed.tech/tags/featured.md>), [infiniband](<https://devfeed.tech/tags/infiniband.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [nccl](<https://devfeed.tech/tags/nccl.md>), [networking](<https://devfeed.tech/tags/networking.md>), [networking-communications](<https://devfeed.tech/tags/networking-communications.md>), [nvidia-dgx](<https://devfeed.tech/tags/nvidia-dgx.md>), [observability](<https://devfeed.tech/tags/observability.md>), [operations](<https://devfeed.tech/tags/operations.md>), [orchestration](<https://devfeed.tech/tags/orchestration.md>), [performance](<https://devfeed.tech/tags/performance.md>), [storage](<https://devfeed.tech/tags/storage.md>), [systems](<https://devfeed.tech/tags/systems.md>), [telemetry](<https://devfeed.tech/tags/telemetry.md>)

### AI overview

A practical guide to choosing a full-stack observability strategy for NVIDIA AI infrastructure. It explains how to connect telemetry across compute, networking, storage, orchestration, and applications, using an InfiniBand gray-failure example to show how degraded hardware and NCCL collective-operation delays can reduce distributed-training throughput.

### Source excerpt

AI infrastructure spans multiple layers, from compute and networking to storage, orchestration, and applications. When performance degrades, identifying the...

## NVIDIA Exemplar Cloud: Lessons for Unlocking Full Performance on AI Infrastructure

DevFeed: [NVIDIA Exemplar Cloud: Lessons for Unlocking Full Performance on AI Infrastructure](<https://devfeed.tech/articles/nvidia-exemplar-cloud-lessons-for-unlocking-full-performance-on-ai-infrastructure-6891.md>)

Original publisher: [Read original article](<https://developer.nvidia.com/blog/nvidia-exemplar-cloud-lessons-for-unlocking-full-performance-on-ai-infrastructure/>)

Author: Elizabeth Goodman

Published: 2026-07-30T16:00:00Z

Content type: tutorial

Language: en

Sources: [NVIDIA Developer](<https://devfeed.tech/sources/nvidia-developer.md>), [NVIDIA Technical Blog](<https://devfeed.tech/sources/nvidia-technical-blog.md>)

Topics: [debugging](<https://devfeed.tech/topics/debugging.md>), [Processes](<https://devfeed.tech/topics/processes.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-infrastructure](<https://devfeed.tech/tags/ai-infrastructure.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [blackwell](<https://devfeed.tech/tags/blackwell.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cloud-services](<https://devfeed.tech/tags/cloud-services.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [data-center-cloud](<https://devfeed.tech/tags/data-center-cloud.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [developer-tools-techniques](<https://devfeed.tech/tags/developer-tools-techniques.md>), [dgx-cloud](<https://devfeed.tech/tags/dgx-cloud.md>), [diagnostics](<https://devfeed.tech/tags/diagnostics.md>), [distributed-training](<https://devfeed.tech/tags/distributed-training.md>), [featured](<https://devfeed.tech/tags/featured.md>), [gb200](<https://devfeed.tech/tags/gb200.md>), [gb300-nvl72](<https://devfeed.tech/tags/gb300-nvl72.md>), [grace-cpu](<https://devfeed.tech/tags/grace-cpu.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [hopper](<https://devfeed.tech/tags/hopper.md>), [infiniband](<https://devfeed.tech/tags/infiniband.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [nvidia](<https://devfeed.tech/tags/nvidia.md>), [nvl72](<https://devfeed.tech/tags/nvl72.md>), [performance](<https://devfeed.tech/tags/performance.md>), [training](<https://devfeed.tech/tags/training.md>)

### AI overview

A troubleshooting guide for closing AI-training throughput gaps between NVIDIA reference architectures and partner clusters. It covers configuration and installation issues across memory management, CPU power and NUMA placement, NCCL queue-pair concurrency, and hardware setup.

### Source excerpt

Two AI computing clusters built from identical NVIDIA H100, GB200 NVL72, or GB300 NVL72 systems can deliver materially different training throughput. We...

## NVIDIA NVLink: The Scale-Up Network for AI Factories

DevFeed: [NVIDIA NVLink: The Scale-Up Network for AI Factories](<https://devfeed.tech/articles/nvidia-nvlink-the-scale-up-network-for-ai-factories-6905.md>)

Original publisher: [Read original article](<https://developer.nvidia.com/blog/nvidia-nvlink-the-scale-up-network-for-ai-factories/>)

Author: Elizabeth Goodman

Published: 2026-07-20T15:46:28Z

Content type: article

Language: en

Sources: [NVIDIA Developer](<https://devfeed.tech/sources/nvidia-developer.md>), [NVIDIA Technical Blog](<https://devfeed.tech/sources/nvidia-technical-blog.md>)

Topics: [NVLink](<https://devfeed.tech/topics/nvlink.md>), [AI Factory](<https://devfeed.tech/topics/ai-factory.md>), [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [GPU](<https://devfeed.tech/topics/gpu.md>), [networking](<https://devfeed.tech/topics/networking.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Nvidia](<https://devfeed.tech/topics/nvidia.md>), [datacenter](<https://devfeed.tech/topics/datacenter.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [Mixture of Experts (MoE)](<https://devfeed.tech/topics/mixture-of-experts-moe.md>), [Inference Performance](<https://devfeed.tech/topics/inference-performance.md>), [Low Latency](<https://devfeed.tech/topics/low-latency.md>)

Tags: [agentic-ai-generative-ai](<https://devfeed.tech/tags/agentic-ai-generative-ai.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-factory](<https://devfeed.tech/tags/ai-factory.md>), [ai-inference](<https://devfeed.tech/tags/ai-inference.md>), [ai-infrastructure](<https://devfeed.tech/tags/ai-infrastructure.md>), [collective](<https://devfeed.tech/tags/collective.md>), [communication](<https://devfeed.tech/tags/communication.md>), [compute](<https://devfeed.tech/tags/compute.md>), [data-center](<https://devfeed.tech/tags/data-center.md>), [featured](<https://devfeed.tech/tags/featured.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [inference](<https://devfeed.tech/tags/inference.md>), [infiniband](<https://devfeed.tech/tags/infiniband.md>), [latency](<https://devfeed.tech/tags/latency.md>), [low-latency](<https://devfeed.tech/tags/low-latency.md>), [mixture-of-experts-moe](<https://devfeed.tech/tags/mixture-of-experts-moe.md>), [networking](<https://devfeed.tech/tags/networking.md>), [nvidia](<https://devfeed.tech/tags/nvidia.md>), [nvlink](<https://devfeed.tech/tags/nvlink.md>), [production](<https://devfeed.tech/tags/production.md>), [scale](<https://devfeed.tech/tags/scale.md>), [spectrum-ethernet](<https://devfeed.tech/tags/spectrum-ethernet.md>), [spectrum-x](<https://devfeed.tech/tags/spectrum-x.md>), [speed](<https://devfeed.tech/tags/speed.md>), [systems](<https://devfeed.tech/tags/systems.md>), [vera-rubin](<https://devfeed.tech/tags/vera-rubin.md>)

### AI overview

NVIDIA NVLink is presented as a scale-up networking fabric for AI factories. It provides high-bandwidth, low-latency GPU-to-GPU communication for large AI inference, training, and parallel-computing workloads, with collective-operation acceleration and rack-level resiliency.

### Source excerpt

The demand for AI continues to accelerate. Workloads are getting larger, models are becoming more complex, and there is mounting pressure to deploy AI compute...

## Нейро сети для самых маленьких. Часть первая (которая после нулевой). Удобство в прокрустовом ложе оптимизации

DevFeed: [Нейро сети для самых маленьких. Часть первая (которая после нулевой). Удобство в прокрустовом ложе оптимизации](<https://devfeed.tech/articles/article-24859.md>)

Original publisher: [Read original article](<https://habr.com/ru/companies/yandex/articles/1047072/>)

Author: eucariot (Яндекс, Yandex Cloud & Yandex Infrastructure)

Published: 2026-07-01T07:00:06Z

Content type: article

Language: ru

Sources: [Яндекс - Как мы делаем Яндекс / Статьи](<https://devfeed.tech/sources/source.md>)

Topics: [High-Performance Computing](<https://devfeed.tech/topics/high-performance-computing.md>), [GPU](<https://devfeed.tech/topics/gpu.md>), [InfiniBand](<https://devfeed.tech/topics/infiniband.md>), [NVLink](<https://devfeed.tech/topics/nvlink.md>), [Linux](<https://devfeed.tech/topics/linux.md>)

Tags: [ethernet](<https://devfeed.tech/tags/ethernet.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [gpudirect-rdma](<https://devfeed.tech/tags/gpudirect-rdma.md>), [high-performance-computing](<https://devfeed.tech/tags/high-performance-computing.md>), [infiniband](<https://devfeed.tech/tags/infiniband.md>), [linux](<https://devfeed.tech/tags/linux.md>), [nvidia](<https://devfeed.tech/tags/nvidia.md>), [nvlink](<https://devfeed.tech/tags/nvlink.md>), [performance](<https://devfeed.tech/tags/performance.md>), [rdma](<https://devfeed.tech/tags/rdma.md>), [roce](<https://devfeed.tech/tags/roce.md>), [tcp](<https://devfeed.tech/tags/tcp.md>), [zero-copy](<https://devfeed.tech/tags/zero-copy.md>)

### AI overview

This introductory article in a series explains the infrastructure used to train and run neural networks and for high-performance computing. It surveys specialized technologies including GPUs and TPUs, RDMA, kernel bypass, NVLink, InfiniBand, and RoCE, arguing that specialized solutions can outperform and cost less than a generic Linux and Ethernet/IP stack at scale.

### Source excerpt

Это первая (после нулевой) статья из серии Нейро сети для самых маленьких, в которой мы разбираем инфраструктуру для запуска нейронных сетей. Для обучения и инференса нейросетей и для любых видов High Performance Computing используются специализированные технологии: GPU/TPU, RDMA, Kernel bypass, NVLink, InfiniBand, RoCE и другие. Про некоторые из них большинство только что-то слышали, но сталкиваться с ними не приходилось. Нельзя просто взять ванильный стек Linux, воткнуть в него 400Gb Ethernet+IP и получить рабочее решение. Почему? Потому что общее решение на масштабе в большинстве случаев проигрывает специализированным как в скорости, так и в стоимости. Как бы странно последнее ни звучало. Читать далее

## How Shopify uses SkyPilot to route machine-learning workloads across multi-cloud GPU clusters

DevFeed: [How Shopify uses SkyPilot to route machine-learning workloads across multi-cloud GPU clusters](<https://devfeed.tech/articles/skypilot-at-shopify-multi-cloud-gpus-without-the-pain-1622.md>)

Original publisher: [Read original article](<https://shopify.engineering/skypilot>)

Author: Javier Moreno

Published: 2026-01-26T14:49:55Z

Content type: article

Language: en

Sources: [Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering.md>), [Shopify Engineering - Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering-shopify-engineering.md>)

Topics: [skypilot](<https://devfeed.tech/topics/skypilot.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [InfiniBand](<https://devfeed.tech/topics/infiniband.md>)

Tags: [cloud](<https://devfeed.tech/tags/cloud.md>), [development](<https://devfeed.tech/tags/development.md>), [distributed-training](<https://devfeed.tech/tags/distributed-training.md>), [infiniband](<https://devfeed.tech/tags/infiniband.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [kubernetes-clusters](<https://devfeed.tech/tags/kubernetes-clusters.md>), [multi-cloud](<https://devfeed.tech/tags/multi-cloud.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [shopify](<https://devfeed.tech/tags/shopify.md>), [skypilot](<https://devfeed.tech/tags/skypilot.md>), [yaml](<https://devfeed.tech/tags/yaml.md>)

### AI overview

Shopify describes using SkyPilot to run machine-learning workloads across existing Kubernetes clusters on multiple clouds. A custom plugin routes jobs based on requested hardware and workload needs, while supporting multi-team management, cost tracking, fair scheduling, and policy enforcement.

### Source excerpt

GPUs are annoying. Shopify uses SkyPilot to make them less so: one YAML file, multiple clouds, clean development ergonomics.

## Locks & Condition Variables - Latency Impact

DevFeed: [Locks & Condition Variables - Latency Impact](<https://devfeed.tech/articles/locks-condition-variables-latency-impact-13621.md>)

Original publisher: [Read original article](<https://mechanical-sympathy.blogspot.com/2011/11/locks-condition-variables-latency.html>)

Author: Martin Thompson (noreply@blogger.com)

Published: 2011-11-05T13:52:00Z

Content type: tutorial

Language: en

Sources: [Mechanical Sympathy](<https://devfeed.tech/sources/mechanical-sympathy.md>)

Topics: [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [Concurrent Programming](<https://devfeed.tech/topics/concurrent-programming.md>), [Java](<https://devfeed.tech/topics/java.md>), [Low Latency](<https://devfeed.tech/topics/low-latency.md>), [Linux](<https://devfeed.tech/topics/linux.md>)

Tags: [infiniband](<https://devfeed.tech/tags/infiniband.md>), [java](<https://devfeed.tech/tags/java.md>), [latency](<https://devfeed.tech/tags/latency.md>), [linux](<https://devfeed.tech/tags/linux.md>), [locks](<https://devfeed.tech/tags/locks.md>), [low-latency](<https://devfeed.tech/tags/low-latency.md>), [performance](<https://devfeed.tech/tags/performance.md>), [thread](<https://devfeed.tech/tags/thread.md>), [threads](<https://devfeed.tech/tags/threads.md>), [windows](<https://devfeed.tech/tags/windows.md>)

### AI overview

This article measures the latency impact of using locks and condition variables to pass control between two Java threads. It reports that kernel arbitration and thread scheduling add substantially more latency than signaling with memory barriers, and that allowing the operating system to schedule threads across different cores can hurt low-latency performance through cache pollution.

### Source excerpt

In a previous article on Inter-Thread Latency I showed how it is possible to signal a state change between 2 threads with less than 50ns of latency. To many developers, writing concurrent code using locks is a scary experience. Writing concurrent code using lock-free algorithms, i.e. algorithms that rely on the use of memory barriers and an intimate understanding of the underlying memory models, can be totally terrifying. To me lock-free / non-blocking algorithms are like playing with explosives or corrosive chemicals, if you do not understand what you are doing, or show the ultimate respect, then very bad things can, and most likely will, happen! In this article, I'd like to illustrate the impact of using locks and the resulting latency they can impose on your designs. I want to use a very similar algorithm to that used in my previous inter-thread latency article to illustrate the ping-pong effect of handing control back and forth between 2 threads. In this case, rather than using a couple of volatile variables, I will employ a pair of condition variables to signal a state change so control can be passed back and forth. The Code import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; import static java.lang.System.out; public final class LockedSignallingLatency { private static final int ITERATIONS = 10 * 1000 * 1000; private static final Lock lock = new ReentrantLock(); private static final Condition sendCondition = lock.newCondition(); private static final Condition echoCondition = lock.newCondition(); private static long sendValue = -1L; private static long echoValue = -1L; public static void main(final String[] args) throws Exception { final Thread sendThread = new Thread(new SendRunner()); final Thread echoThread = new Thread(new EchoRunner()); final long start = System.nanoTime(); echoThread.start(); sendThread.start(); sendThread.join(); echoThread.join(); final long duration = Sys