<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shrijeet Mukherjee on Medium]]></title>
        <description><![CDATA[Stories by Shrijeet Mukherjee on Medium]]></description>
        <link>https://medium.com/@shrijeetmukherjee?source=rss-93d67e384092------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*OXemEduvJcUuYcGT</url>
            <title>Stories by Shrijeet Mukherjee on Medium</title>
            <link>https://medium.com/@shrijeetmukherjee?source=rss-93d67e384092------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:57:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shrijeetmukherjee/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Ultra Ethernet and What it Means for High-Performance Computing (HPC) Network Design]]></title>
            <link>https://blog.enfabrica.net/ultra-ethernet-and-what-it-means-for-high-performance-computing-hpc-network-design-51a3756ebdb5?source=rss-93d67e384092------2</link>
            <guid isPermaLink="false">https://medium.com/p/51a3756ebdb5</guid>
            <dc:creator><![CDATA[Shrijeet Mukherjee]]></dc:creator>
            <pubDate>Tue, 14 Nov 2023 15:15:34 GMT</pubDate>
            <atom:updated>2023-11-14T15:15:34.952Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*u8a1TfOKs2__pmqQeHzmnA.jpeg" /></figure><p>Networking for HPC has historically been a relatively niche arena with technologies like Infiniband, OmniPath, and Slingshot dominating the solution footprint within the industry. These products have typically aimed for bespoke clusters with relatively limited radix and centralized management built for a very specific supercomputer design. With the advent and rapid proliferation of ChatGPT, GenAI, Computer Vision, <a href="https://medium.com/swlh/deep-learning-recommendation-models-dlrm-a-deep-dive-f38a95f47c2c">DLRMs</a> and <a href="https://rpradeepmenon.medium.com/introduction-to-large-language-models-and-the-transformer-architecture-534408ed7e61">LLMs</a>, the needs have shifted from the original HPC requirements towards building systems that deliver consistent, reliable, high-bandwidth communications across accelerated compute clusters that are now 10,000 nodes or larger, and need to be provided as cloud like services.</p><p>Networking demands for AI differ from those of original HPC designs in four very significant ways.</p><ol><li>AI workloads have been tuned to leave the computational load on the accelerators and the associated memory subsystems while leaving the network to reconcile all the sharded computation. Since AI accelerators have stepped up the computation capacity by orders of magnitude, the need for reliable high bandwidth connections between different compute elements has outpaced all other usage models.</li><li>The applications do not initiate communication, instead they are channeled through constructs called Collectives, and while they existed for HPC, only a narrow set of collectives are used to foster group communication and reconciliation in AI. The typical collectives used for reconciling the sharded communications include but are not limited to All-Reduce, All-Gather or Reduce-Scatter which are patterns used to exchange data between different compute elements.</li><li>Scaling needs have grown exponentially such that small bespoke clusters are not viable for the sizes of systems that are being built, so limiting radix or distance to drive performance is not really an option.</li><li>The success of cloud computing (IaaS) at scale in driving the economics of new business models, has changed the target system design from the “supercomputer in a closet” to multi-tenant, multi-workload, elastic and extensible clusters of compute resources, where today nearly all such IaaS compute is dynamically interconnected and scaled by Ethernet networking.</li></ol><p>The net impact of the above is that the communication needs are heavily skewed towards bandwidth and maximizing link utilization across increasingly larger network diameter, while adhering to cloud’s existing scale-out CLOS network design. Two of the key constructs of standard cloud networking have been entropy driven multipathing (ECMP) and high-performance transports like RDMA over converged Ethernet (RoCE), but their limitations in managing loss and driving consistent high utilization across diverse links have become hindering issues.</p><p>Into this space steps the <a href="https://ultraethernet.org/#:~:text=DOWNLOAD%20WHITE%20PAPER">Ultra Ethernet Consortium</a> (UEC), which is attempting to rework the networking blueprint for both cloud and traditional HPC to meet the needs of AI. Build a simple solution using Ethernet, solve for the bandwidth case, and provide a protocol that can be broadly implemented. Specifically, the technical goals for the consortium are to develop specifications, APIs, and source code to define:</p><ul><li>Protocols, electrical and optical signaling characteristics, application program interfaces and/or data structures for Ethernet communications.</li><li>Link-level and end-to-end network transport protocols to extend or replace existing link and transport protocols.</li><li>Link-level and end-to-end congestion, telemetry and signaling mechanisms; each of the foregoing suitable for artificial intelligence, machine learning and high-performance computing environments.</li><li>Software, storage, management and security constructs to facilitate a variety of workloads and operating environments.</li></ul><p>Let’s examine some specific aspects laid out in the Ultra Ethernet <a href="https://ultraethernet.org/wp-content/uploads/sites/20/2023/10/23.07.12-UEC-1.0-Overview-FINAL-WITH-LOGO.pdf">whitepaper</a> with an eye towards how they change network design.</p><ol><li>Packet Spraying : This is a proposed solution to the network load distribution problem of ECMP applied to traditional transports. Packet spraying creates additional sub-requirements since spraying, while maximizing link utilization, requires the receiver to support a degree of out-of-order packet reception. This in turn requires a protocol level change such that reliable delivery can be assured on a sliding window with selective ACK’s. And finally, this means that packet distribution schemes have to be flexible and dynamically balance re-ordering tolerance against per flow throughput requirements.</li><li>Congestion and Rate Control : Since the goal is to maximize link utilization, the optimization point needs to change from “flow-fairness” to fast-ramp to maximum throughput. When combined with packet spraying this requires an end to end flow control system combined with intermediate switches providing accurate signaling of congestion along the way. Ideally congestion-based slowdown happens autonomously in hardware while letting software and higher level constructs define the policies to deal with persistent congestion.</li><li>Higher link speeds : Modern AI and HPC workloads demand the ability to drive bandwidth across broad surface areas and the ability to drive the bandwidth into a variety of host- and accelerator-facing interfaces working at potentially different speeds.</li><li>Packet Incast : Many-to-one receiver congestion (incast) is another issue that is accentuated in AI/ML networks. While careful network planning and communication <a href="https://developer.nvidia.com/blog/doubling-all2all-performance-with-nvidia-collective-communication-library-2-12/">schemes</a> can be used to mitigate the issue, using spray and a transport designed to help mitigate incast will minimize what can be a difficult to contain issue in AI/ML networks.</li></ol><p>Enfabrica’s Accelerated Compute Fabric Switch (ACF-S) device, it turns out, has broadly anticipated these requirements and is designed with built-in mechanisms to implement a variety of packet spraying and distribution modes, while providing hardware assist and software interfaces to implement out-of-order packet exchange, as well as congestion, rate and in-cast control, that are needed to support streaming data movement for AI workloads at 800Gbps rates and above. The ACF-S design allows us to iterate quickly on ideas and evaluate parameters in software while leaving operations that happen at per-packet granularity for hardware to handle.</p><p>Additionally, all the aspects espoused by the UEC white paper require co-ordination between the accelerator, NIC and switch fabric. The ACF-S, by occupying the architectural spot of being a combined accelerator interconnect, a multi-device NIC and a top-of-rack switch, is uniquely positioned to “accelerate” the adoption of such mechanisms. The architectural location also allows for intelligent load distribution and mitigation of incast congestion and its side-effects in the system.</p><p>Interestingly, many of these design principles, while being developed in the context of today’s AI accelerators and GPUs, are actually broadly applicable to large memory systems and indeed systems with large aggregated I/O bandwidth. Enfabrica is looking forward to collaborating within the Ultra Ethernet Consortium and to bringing a manifestation of Ultra Ethernet to life, to help bring high performance networking and scaling to not only AI and HPC but the wider spectrum of modern distributed computing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51a3756ebdb5" width="1" height="1" alt=""><hr><p><a href="https://blog.enfabrica.net/ultra-ethernet-and-what-it-means-for-high-performance-computing-hpc-network-design-51a3756ebdb5">Ultra Ethernet and What it Means for High-Performance Computing (HPC) Network Design</a> was originally published in <a href="https://blog.enfabrica.net/">enfabrica</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The growth of memory is relentless. Does CXL solve it ?]]></title>
            <link>https://blog.enfabrica.net/the-growth-of-memory-is-relentless-does-cxl-solve-it-daec0fb3dfd0?source=rss-93d67e384092------2</link>
            <guid isPermaLink="false">https://medium.com/p/daec0fb3dfd0</guid>
            <category><![CDATA[cxl]]></category>
            <category><![CDATA[memory-management]]></category>
            <category><![CDATA[gpu-computing]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <dc:creator><![CDATA[Shrijeet Mukherjee]]></dc:creator>
            <pubDate>Fri, 16 Dec 2022 17:23:09 GMT</pubDate>
            <atom:updated>2022-12-17T20:58:31.683Z</atom:updated>
            <content:encoded><![CDATA[<h3>The growth of memory is relentless. Does CXL solve it ?</h3><h4>By: Shrijeet Mukherjee, Founder &amp; Chief Development Officer, Enfabrica</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YTheJsI4y-tzl-ADbnWnNw.png" /></figure><p>Ever since the Von Neuman (and Harvard) systems have been around, the need for memory has grown from extremely modest <a href="https://www.computerhistory.org/timeline/memory-storage/">devices</a> to very sophisticated multi-terabyte systems with response times in nanoseconds. This has happened because the usable size of memory available and the bandwidth to access it has had to match the growth rates of computing power and the ever-refining silicon advances that have enabled it.</p><p>As noted in <a href="https://www.hpcwire.com/2016/11/07/mccalpin-traces-hpc-system-balance-trends/">HPCwire</a> (Fig 1), memory bandwidth is about 5x slower in growth than compute flops, which means all compute elements have to rely increasingly on caching layers which present a subset of the capacity but provide the requisite bandwidth to not foist a Von Neumann bottleneck. Probably even more interesting is the latency-to-memory trajectory, which puts into focus a complex balancing act of feeding the ever-expanding processor and accelerator cores with low latency while expanding memory bandwidth and capacity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*xN-T0NyVMJXOVBmE" /><figcaption>Fig 1 : HPC Wire 2016 publication</figcaption></figure><p>The CXL consortium is leading the charge to arrest the capacity divergence ushering in the most significant advance in building composable systems with dis-aggregated memory in recent times. Let’s also note that heterogeneous computing is here in a big way, be it by way of a GPU + CPU complex or by way of different cores optimized for different functionality like a DPU architecture. It is in this context that we need to examine the role of memory expansion since multiple compute and processing elements are going to grow in different directions simultaneously, and they will all have independent requirements from the capacity and performance layers.</p><h3>Memory capacity Vs performance :</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J-IrAbK2qV0KEMAv" /><figcaption>Fig 2 : Insertion of caching into the processing pipeline; separation of performance and capacity layers</figcaption></figure><p>From early days of system architectures the need has existed for a differential layering of memory. A small amount of memory was kept close to the computational flops and a much larger capacity layer was bolted on top. This capacity layer allowed a large problem space to “fit” and the active portion, known as the working set, of that layer was moved into the performance layer in time for the computational flops to operate on it.</p><p>As shown in Fig 2, the performance layer is sized and designed to keep the processor core running at full tilt, while the capacity layer enables larger and larger problem sizes to be addressed. The OS/runtime and the processor complex ensures that the working set is always moved from the capacity layer to the performance layer as needed.</p><h3>Enter Accelerators :</h3><p>Now let’s look at the programming <a href="https://developer.nvidia.com/sites/all/modules/custom/gpugems/books/GPUGems/gpugems_ch37.html">model</a> of GPUs (Fig 3), which are essentially streaming processors where all data is accessed in parallel, producing outputs from all the inputs while executing a preloaded program.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/0*Yg1u1Bnl1L-Yp3Y-" /><figcaption>Fig 3 : GPU’s and vector accelerators memory model</figcaption></figure><p>This scenario is even more sensitive to the movement of bulk data since each of the cores expect to have parallel access to the memory presented through multiple high-bandwidth memory (HBM) interfaces to be able to keep the system busy. This is slightly different from regular CPU’s since the performance layer needs to feed a very wide processor array, and there is really no implicit capacity layer. HBM memory, unsurprisingly, is very hard to scale up to large sizes and is also prohibitively costly for most general purpose applications. To solve the memory capacity issue that is now created, GPUs have generally evolved in a different direction. The most common implementation, which is not unique to GPUs but seems to have evolved from when raster engines were stashed/interleaved together to double rendering capacity, is to gang the memory of multiple units together using a proprietary bus (examples are NVlink, InfinityFabric etc).</p><p>And while GPU’s are not the only incarnation of accelerators, they are the mostly widely deployed and the analysis broadly applies to other accelerators too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EN3cf2DbXG55LY-E" /><figcaption>Fig 4 : GPU’s add capacity by ganging the performance layers together</figcaption></figure><p>The interconnect links, which are typically non standard links, allows the external world to see the memory capacity as the cumulative of the linked systems, but any remote reference is actually fetching memory from the other system as needed over a very fast bus. This approach works really well as long as you can keep the inter-system link fast, reliable and have a good enough radix to dramatically increase the net capacity available to the various compute units. The capacity layer is now constituted of this ganged memory and the runtimes for these accelerators are responsible for copying the correct working set into the correct processor local HBM (the performance layer) as needed.</p><p>As we have learnt from the various forays into building large scale-up systems up to the early 2000s, scaling up coherent systems arrives at a point of diminishing returns, and a different approach is needed to achieve larger memory capacity (and hierarchy needs to be exploited again).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/0*XA3JFboH6OUlklTY" /><figcaption>Fig 5 : Evolution of the capacity layer, using RDMA to connect the various ganged GPU’s to each other</figcaption></figure><p>For machine learning accelerators, the quest for an even larger capacity layer has evolved to some form of <a href="https://developer.nvidia.com/gpudirect">GPU direct RDMA</a> which expands memory capacity by using network interfaces (NICs) to move memory between the HBMs of various systems — thus creating an expanded capacity tier. As shown in Fig 5, for very large jobs like training systems, this allows the total cumulative memory of the system to be seen as the working set, and a runtime environment is responsible for making the right subset of the requisite data to show up in the right HBM of the right compute unit.</p><p>What is worth noting is that the fundamental hierarchy is still preserved with RDMA communication runtimes targeting any of the HBMs in a local node (based on the connection topology) and then copying into the local performance layer HBM as needed.</p><h3>CXL to centerstage :</h3><p>The data center world has been waiting with bated breath for the inevitable arrival of IO devices that can participate in the coherency protocols of the CPUs that they are connected to. With CXL Type2 and Type3 <a href="https://blogs.synopsys.com/vip-central/2020/03/04/an-introduction-to-the-cxl-device-types/">memories</a>, one can add memory at that additional tier and do it as flexible IO devices instead of as closely controlled CPU attached devices. This leads to the possibility of solving the capacity problem using very different unit economics; and, if sharing and pooling (address management, isolation, MMU issues etc) can be done right, there is finally a solution to the graphs I showed above where the memory capacity can finally start catching up to the flops that are available. The story also evolves favorably if you consider that the flops counts are also poised for another big jump as heterogeneous compute becomes more ubiquitous.</p><p>Almost all the solutions aimed at introducing CXL.mem currently look like Fig. 6 where a CPU complex now has access to this large capacity layer in addition to any local DRAM. This definitely helps with the capacity issue and the motherboard and chip packaging, but any access to the CXL.mem layer is going to be in the order of 200–300ns vs 40–60ns in the main DRAM, which means the primary usage model is as an extended capacity layer. While coherent access is definitely possible, putting this layer in the direct path of the processor will make the flops to latency relationship even worse. In addition if memory pooling is the goal you will have to add switching latencies for sharing, which will drive the latency even higher.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kErA2vhIkItaTTtX" /><figcaption>Fig 6 : Memory expansion using the CXL.mem infrastructure</figcaption></figure><h3>Distributed data stores :</h3><p>The main drivers of expanded memory capacity in recent years has been the growth in the following areas (list is not exhaustive)</p><ol><li>In memory databases</li><li>Large VM/container servers</li><li>Machine learning data pre-processing</li></ol><p>A common pattern that can help all of these use cases is a distributed shared memory system. The standard way people have looked into building distributed systems is shown below and can be defined as a cluster of size N where the CXL.mem is allowed to be a common data store which can be used to pass messages and buffers between nodes, but each of the N nodes can use that shared memory as expansion memory. This model is commonly referred to as <a href="https://en.wikipedia.org/wiki/Partitioned_global_address_space">PGAS</a> and looks logically as Fig 7.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ubmtPQGZRhsSPaOg" /><figcaption>Fig 7 : CXL.mem based pooling</figcaption></figure><p>The programming model here is just load/store to another layer of memory, but this puts the capacity layer in the performance path and would be an inefficient way to share anything beyond a small set of cachelines, as propagation through the various layers is not super efficient and bulk data movement under a CPU-initiated load/store sequence is wasteful all around. Clearly more sophisticated designs can be imagined where the writes are posted and write-through but the reads are gathered up, but they cannot avoid the fact that the expanded capacity is reachable through a significantly higher latency and more contended path and that it will affect the CPU’s performance. This scenario under large N will get worse as invalidations will be flowing all over the place.</p><h3>Utopia, where art thou ?</h3><p>If the world is indeed getting to a heterogeneous computing paradigm and globally shared memory, where global is defined as IO operations, accelerator operations, storage operations and CPU operations (maybe multiple classes of CPUs too) then the utopian solution would put memory equidistant and uniformly shareable by all of the above components. But the solution that seems to be mostly prevalent today is shown below. While CXL 3.1 is likely to have support for these class of solutions, it will require a full ecosystem upgrade before it is available in a system near you. In the meantime, the solutions will look Fig 8 below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ff6tBkyIPN85Hgqq" /><figcaption>Fig 8 : System design if you just connect various components to each other</figcaption></figure><p>What should be obvious is that the memory location in this design does not actually help with creating the expanded memory capacity for the heterogeneous compute environment and only really helps the CPU complex. Indeed, the need to have everything staged through the CPU means that the IO interfaces (network card here), and the accelerator compute complexes may actually be done a disservice if they were to try and avail the capacity for themselves. In the limit, the CPU itself suffers poorly as all accesses from non-local CPUs will result in cache pollution, bank collisions and other undesirable effects in a very performance-critical part of the system.</p><p>Additionally. the PGAS model is less than efficient for some use cases like live migration used for VM systems and other bulk data exchange mechanisms. It is also an inefficient way to build a data processing pipeline where data always gets exchanged between stages of a pipeline using the slowest layer of memory (the capacity layer) and forces the receiving processor to stall waiting for the result.</p><p>So what then is the right way to add the additional layer of memory? The answer, unsurprisingly, is to treat that expanded additional layer of memory as a member of every user’s hierarchy and allow ultra fast data copying between users. The block diagram would look like Fig 9.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vHDj7Bu_leTn3zML" /><figcaption>Fig 9 : A more efficient and partitioned/dis-aggregated system design. A memory server with copy engines</figcaption></figure><p>The two most important parts of this picture are:</p><ol><li>The memory added at the highest level in the hierarchy is actually equidistant not just from the various compute elements — it is also equidistant for IO devices as well</li><li>While the design does no worse than any other design from a load/store perspective from each of the compute elements, by virtue of having a large multitude of data mover engines it is capable of enabling bulk transfer of the “active set” of data into the lowest levels of the hierarchy, thus enabling the most efficient operations in the compute elements.</li></ol><p>Let’s examine how this architectural design compares to the current ambition for building memory designs out. On the pure memory expansion using coherent access via CXL.mem, this design operates no worse but it also allows the ability to do large table moves for databases and high-performance live migration by way of the copy engines as needed. Indeed, using local page faults and the copy engine, it is possible to implement a NUMA solution which would even work for heterogeneous CPUs. Additionally, since the IO devices are also homed into this memory, it is possible to offload IO buffers into the expanded memory and prevent all payload data to be moved in and out of memory without leaving any footprint on the caches of the various compute elements that otherwise see updates to their caching layers in the very least.</p><p>In conclusion then, CXL.mem is a critical cog in building the next big leap in computer architecture and in filling the gap between compute flop capacity and memory capacity, and as has been noted before, building such a system is going to be possible in the future when a multitude of different technologies and adoption curves align. But it is needed that the cogs be bound together by system design and a somewhat different collection of runtime software, drivers and allocation managers to be able to harness the power of these next generation systems. The systems designs need to take careful stock of the application patterns that the CXL.mem element will be exposed to and be thoughtful about not creating complexity and layering which can be avoided</p><p>At Enfabrica, we are working furiously to be able to be part of that revolution.</p><p>Thoughts ?</p><p><em>You’re reading an article from the </em><a href="https://blog.enfabrica.net/"><strong><em>enfabrica tech blog</em></strong></a><em>. At </em><a href="https://enfabrica.net/"><em>enfabrica</em></a><em>, we build foundational fabrics for the next decade of high-performance distributed computing, through intelligent hardware-software co-design.</em></p><p><em>Interested in joining our team? </em><a href="http://jobs.enfabrica.net/"><em>jobs.enfabrica.net</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daec0fb3dfd0" width="1" height="1" alt=""><hr><p><a href="https://blog.enfabrica.net/the-growth-of-memory-is-relentless-does-cxl-solve-it-daec0fb3dfd0">The growth of memory is relentless. Does CXL solve it ?</a> was originally published in <a href="https://blog.enfabrica.net/">enfabrica</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>