<?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 Shankar Ravi  on Medium]]></title>
        <description><![CDATA[Stories by Shankar Ravi  on Medium]]></description>
        <link>https://medium.com/@shankar_ravi_v?source=rss-12eb88d78266------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*iZQFr__wKG1qXrcSr7iQ6A.jpeg</url>
            <title>Stories by Shankar Ravi  on Medium</title>
            <link>https://medium.com/@shankar_ravi_v?source=rss-12eb88d78266------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 00:42:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shankar_ravi_v/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[Could spatial computing finally work without a host CPU?]]></title>
            <link>https://medium.com/@shankar_ravi_v/could-spatial-computing-finally-work-without-a-host-cpu-36aff746a1cc?source=rss-12eb88d78266------2</link>
            <guid isPermaLink="false">https://medium.com/p/36aff746a1cc</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[computer-architecture]]></category>
            <category><![CDATA[spatial-computing]]></category>
            <dc:creator><![CDATA[Shankar Ravi ]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 23:46:41 GMT</pubDate>
            <atom:updated>2026-11-10T23:46:41.775Z</atom:updated>
            <content:encoded><![CDATA[<p>Intel’s Configurable Spatial Accelerator (CSA) used a host-controlled model: the CPU loaded a precompiled configuration, dispatched a workload to the spatial fabric, and collected the results. The concept was compelling, but the accelerator still depended on the host for execution and system management.</p><p>Now the idea may be evolving toward standalone, compiler-programmable SoCs. Modern compiler infrastructure like LLVM and MLIR provides useful building blocks for mapping applications onto processing-element arrays. A small embedded scalar core could handle boot, control, and I/O, while the spatial fabric runs the compute-intensive portions.</p><p>To be clear, the array itself won’t run Linux or replace every CPU function.</p><p>The real opportunity is likely in low-power, always-on workloads like sensor processing, industrial control, and edge intelligence, where minimizing data movement and system overhead matters more than peak throughput.</p><p>The open question: can this level of integration deliver meaningful energy savings over conventional MCUs and dedicated accelerators?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cAxlCpbNtxeaLB9vOAKy8g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36aff746a1cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic AI: From Engineering Intent to Code Generation and Automated Verification]]></title>
            <link>https://medium.com/@shankar_ravi_v/agentic-ai-from-engineering-intent-to-code-generation-and-automated-verification-b582f4d5a539?source=rss-12eb88d78266------2</link>
            <guid isPermaLink="false">https://medium.com/p/b582f4d5a539</guid>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Shankar Ravi ]]></dc:creator>
            <pubDate>Tue, 20 Oct 2026 04:01:48 GMT</pubDate>
            <atom:updated>2026-10-20T04:01:48.748Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Agentic AI: From Engineering Intent to Code Generation and Automated Verification</strong></p><p>Anthropics experiment, Building a C Compiler with a Team of Parallel Claudes, offers an interesting glimpse into the future of software engineering.</p><p><a href="https://www.anthropic.com/engineering/building-c-compiler">Building a C compiler with a team of parallel Claudes \ Anthropic</a></p><p>Using 16 parallel Claude agents, the team developed a roughly 100,000-line C compiler capable of building the Linux kernel across multiple architectures.</p><p>What I find particularly interesting is not just the autonomous code generation, but the role of the validation harness in making agentic development possible.</p><p>The agents worked iteratively, using compiler test suites, GCC as a reference implementation, regression testing, and automated feedback to identify and correct defects.</p><p>The harness was not simply a final verification step. It was an integral part of the development process, continuously guiding the agents toward the intended behavior.</p><p>This points toward a broader opportunity: intent-driven software engineering.</p><p>For complex systems software, including Linux kernel, firmware, and hardware enablement, the validation infrastructure must go further — covering hardware specifications, register semantics, firmware dependencies, concurrency, fault injection, and performance regressions.</p><p>Cloud computing infrastructure can make this approach scalable by running parallel agents, isolated build environments, and automated test workloads.</p><p>The real opportunity is not simply generating more code with AI. It is creating an engineering workflow where code generation and verification evolve together, with human engineers defining the intent and evaluating the evidence of correctness.</p><p>Anthropics experiment is an important step in that direction, while also highlighting the limitations of fully autonomous development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b582f4d5a539" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CPU Architecture States in AI Agents … continued]]></title>
            <link>https://medium.com/@shankar_ravi_v/i-received-multiple-messages-asking-to-clarify-my-previous-post-on-architectural-state-bf0ea7d83c8d?source=rss-12eb88d78266------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf0ea7d83c8d</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-kernel]]></category>
            <dc:creator><![CDATA[Shankar Ravi ]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 20:59:59 GMT</pubDate>
            <atom:updated>2026-09-24T02:24:20.939Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article reflects my personal views and opinions only and does not represent the views of any past, present, or future employer</em></p><p>I received multiple messages asking to clarify my previous post on architectural state. The previous post link is here below.</p><p><a href="https://medium.com/@shankar_ravi_v/ai-infra-summit-sep-15-17-2026-917fede183b2?postPublishedType=repub">CPU Architecture States in AI Agent | by Shankar Ravi | Sep, 2026 | Medium</a></p><p>Here’s the short version.</p><p>Solaris LWP (Lightweight Process) was a solution to expensive kernel threads: user threads were multiplexed onto fewer kernel-schedulable LWPs. By Solaris 9, the economics had changed. Kernel threads were cheaper, while blocking, debugging, and coordinating scheduling across user and kernel layers added complexity. The indirection stopped earning its keep. The 1:1 model won for good reasons.</p><p>That’s not the problem I’m pointing at. The problem is orthogonal: Linux threads share an address space but not architectural execution state. Each thread has its own register context — GPRs, FP/vector state, and specialized state when enabled. One address space, hundreds of threads, hundreds of architectural contexts. State follows the thread, not the work.</p><p>And that state keeps growing from multiple directions:</p><p>x86: x87 FP → SSE/XMM → AVX/YMM → AVX-512/ZMM → AMX (~8 KB tile data) → ACE; plus CET, APX, and ChkTag.<br>Arm: FP/NEON → SVE/SVE2 → SME/ZA; plus PAC, BTI, and MTE.</p><p>Security, general-purpose performance, and AI are independently expanding per-thread architectural state. That’s structural, not a single-extension problem.</p><p>Each addition also creates a long-lived ABI commitment: signal frames, ptrace, core dumps, CRIU, virtualization, and VM migration all have to understand it. Compatibility makes these interfaces difficult to unwind.</p><p>None of this means resurrecting LWP’s scheduling model — that solved a different problem.</p><p>The question is whether all specialized architectural state should remain bound to a thread, or whether some state should instead be bound to the execution context doing the work, as GPUs/NPUs already do.</p><p>Whether that eventually requires hardware, kernel, or ABI changes is the open question.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf0ea7d83c8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CPU Architecture States in AI Agent]]></title>
            <link>https://medium.com/@shankar_ravi_v/ai-infra-summit-sep-15-17-2026-917fede183b2?source=rss-12eb88d78266------2</link>
            <guid isPermaLink="false">https://medium.com/p/917fede183b2</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[system-architecture]]></category>
            <dc:creator><![CDATA[Shankar Ravi ]]></dc:creator>
            <pubDate>Sun, 20 Sep 2026 23:28:59 GMT</pubDate>
            <atom:updated>2026-09-24T02:24:42.034Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article reflects my personal views and opinions only and does not represent the views of any past, present, or future employer</em></p><p>I attended the AI Infra Summit in Santa Clara this week (Sep 15–17, 2026), and one discussion that caught my attention was around Agentic AI, CPU use cases and benchmarking.</p><p>It made me think about something we don’t talk about as much when discussing CPU scalability: architectural state.</p><p>We spent many years making threads relatively cheap. Linux’s 1:1 threading model has worked well in part because processes and threads are lightweight. Solaris earlier took a different approach, separating user threads from kernel-scheduled LWPs.</p><p>But architectural state has been moving in the other direction.</p><p>Intel AMX, for example, introduced 8 KB of tile data state. The recently published x86 AI Compute Extensions (ACE) builds further on the AMX model and adds additional state. This has implications beyond the hardware itself — XSAVE/XRSTOR, signals, debugging, virtualization, migration and the associated OS interfaces.</p><p>At the same time, Agentic AI is pushing toward more concurrent logical work: orchestration, tool calls, networking, data processing and compute.</p><p>So as we benchmark x86, Arm and RISC-V for Agentic AI, perhaps core count and traditional thread performance don’t tell the complete story. The architectures have different amounts and types of architectural state, particularly as vector and matrix extensions grow.</p><p>As concurrency increases, the cost of the execution context itself may become another dimension of workload scalability.</p><p>I am not suggesting we bring back the Solaris threading model. But an old systems question may be worth revisiting:</p><p>How much architectural state should really belong to a thread as we scale Agentic AI workloads?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=917fede183b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building LinuxMD: From Linux Evidence to System Reasoning]]></title>
            <link>https://medium.com/@shankar_ravi_v/building-linuxmd-from-linux-evidence-to-system-reasoning-6c7a635e1d18?source=rss-12eb88d78266------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c7a635e1d18</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ai-infrastructure]]></category>
            <category><![CDATA[system-engineering]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Shankar Ravi ]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 00:11:38 GMT</pubDate>
            <atom:updated>2026-08-03T20:16:15.015Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>This article reflects my personal views and opinions only and does not represent the views of any past, present, or future employer</em></blockquote><p>How structured evidence, deterministic analysis, and LLM-based system reasoning come together to answer a simple question: Is this Linux system healthy?</p><p><strong>Project Status</strong></p><p>LinuxMD is an experimental open-source project that explores how deterministic Linux diagnostics and Large Language Models (LLMs) can be combined to provide evidence-based system reasoning. The project is<br>under active development and should be viewed as an evolving framework rather than a finished product.</p><p>The long-term vision, planned features, and development roadmap are outlined in the project’s GitHub README. LinuxMD follows an iterative approach in which each milestone builds on a validated and extensible foundation rather than attempting to solve every systems problem from the outset.</p><blockquote>Link: <a href="http://github.com/shankar-ravi-v/linuxMD">github.com/shankar-ravi-v/linuxMD</a></blockquote><p><strong>Introduction</strong></p><p>Large Language Models have made it remarkably easy to generate explanations from system data. Feed an LLM the output of top, free, vmstat, dmesg, iostat, and a few other commands, and it can often produce a surprisingly reasonable assessment.</p><p>After building LinuxMD, however, I came to realize that the LLM is only a small part of the overall solution.</p><p>The real engineering challenge lies in everything that happens before the prompt is ever sent.</p><p>Reliable system reasoning requires collecting evidence from many Linux subsystems, normalizing information from dozens of commands, performing deterministic analysis wherever possible, and presenting the LLM with structured facts instead of raw terminal output.</p><p>LinuxMD was designed around that philosophy.</p><p>Rather than treating the LLM as the primary source of truth, LinuxMD uses it as a system reasoning engine operating on structured, validated evidence. Evidence collection, normalization, and deterministic analysis<br>remain the responsibility of the framework; the LLM’s role is to correlate observations, assess overall system health, and explain its conclusions.</p><p><strong>The First Deliverable</strong></p><p>LinuxMD has a long-term vision of evolving into a system-scale analysis framework for modern AI infrastructure. However, the first deliverable was intentionally much smaller.</p><p>Before attempting to reason about GPUs, CXL memory expanders, NVMe storage fabrics, SmartNICs, DPUs, or distributed AI clusters, I wanted to answer a much more fundamental question:</p><p>Is the underlying Linux operating system healthy?</p><p>Nearly every AI platform ultimately depends on Linux. If the operating system is experiencing CPU pressure, memory exhaustion, storage bottlenecks, kernel issues, networking problems, or insecure configuration, those problems inevitably propagate upward into higher software layers.</p><p>For that reason, LinuxMD’s initial focus is on collecting evidence from the core Linux subsystems and determining the overall health of the operating system itself.</p><p>The current release evaluates evidence from areas such as:</p><p>• CPU utilization and scheduling</p><p>• Memory capacity and pressure</p><p>• Storage and I/O</p><p>• Networking</p><p>• Kernel health</p><p>• Security posture</p><p>Rather than attempting to identify every possible root cause, the goal of the first release is to provide a structured, evidence-based assessment of whether the Linux system is healthy and to highlight observations<br>that deserve further investigation.</p><p>Once this foundation is robust, additional collectors for GPUs, PCIe, CXL, NVLink, SmartNICs, storage fabrics, and eventually entire AI clusters can build upon the same architecture.</p><p><strong>Standing on Proven Foundations</strong></p><p>One of the design inspirations for LinuxMD is Brendan Gregg’s performance analysis methodology. His work has helped generations of Linux performance engineers develop a disciplined, evidence-driven approach to diagnosing complex systems.</p><p>Rather than jumping directly to conclusions, this methodology emphasizes collecting measurements across multiple subsystems — including CPU, memory, storage, networking, and kernel behavior — to progressively<br>narrow down the source of a performance problem. It encourages engineers to let the data guide the investigation instead of relying on intuition alone.</p><p>LinuxMD adopts the same philosophy.</p><p>Instead of replacing established Linux diagnostic practices, LinuxMD automates much of the evidence collection process and converts the results into a structured representation suitable for deterministic analysis<br>and, when appropriate, LLM-assisted system reasoning.</p><p>LinuxMD collects information similar to what an experienced Linux performance engineer would gather manually:</p><p>• CPU utilization and scheduler statistics</p><p>• Load averages</p><p>• Pressure Stall Information (PSI)</p><p>• Memory utilization and paging activity</p><p>• Storage I/O metrics</p><p>• Network statistics</p><p>• Kernel configuration</p><p>• Security configuration</p><p>• System inventory</p><p>The difference is not what is collected. The difference is how that information is organized.</p><p>Instead of presenting dozens of independent command outputs, LinuxMD normalizes them into a consistent evidence model. Deterministic rules validate and classify measurements before they are presented to the LLM.</p><p>LinuxMD does not attempt to replace the methodology developed by experienced performance engineers.</p><p>Instead, it seeks to encode that methodology into software by systematically collecting evidence, organizing it into structured data, performing deterministic analysis wherever possible, and reserving the LLM for higher-level system reasoning.</p><p><strong>Overall Architecture</strong></p><p>LinuxMD follows a staged pipeline:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*PHsuqHF9qnmfBoPrl109eg.png" /></figure><p>Every stage has a single responsibility. This separation makes the framework easier to validate, test, maintain, and extend.</p><p><strong>Collecting System Evidence</strong></p><p>Linux exposes a tremendous amount of diagnostic information. LinuxMD gathers evidence from multiple independent subsystems.</p><p><strong><em>CPU</em></strong></p><p>CPU collection includes information such as:</p><p>• CPU utilization</p><p>• Processor topology</p><p>• Load averages</p><p>• Context switches</p><p>• Scheduler statistics</p><p>• Pressure Stall Information (PSI)</p><p>Instead of relying on a single command, LinuxMD combines multiple data sources to build a more complete view of processor health.</p><p><strong><em>Memory</em></strong></p><p>Memory collectors gather information including:</p><p>• Total memory</p><p>• Available memory</p><p>• Swap utilization</p><p>• Paging activity</p><p>• Memory PSI</p><p>• NUMA information, where available</p><p>Multiple Linux interfaces expose overlapping pieces of information. LinuxMD combines them into one consistent representation.</p><p><strong><em>Storage</em></strong></p><p>Storage evidence includes block devices, filesystem information, I/O throughput, queue statistics, and device inventory.</p><p><strong><em>Networking</em></strong></p><p>Networking evidence includes interface configuration, IP addressing, socket statistics, TCP metrics, and routing information.</p><p><strong><em>Kernel</em></strong></p><p>Kernel information includes the kernel version, loaded modules, boot configuration, runtime configuration, and kernel messages.</p><p><strong><em>Security</em></strong></p><p>LinuxMD also performs a security assessment by collecting information such as:</p><p>• sysctl settings</p><p>• AppArmor status</p><p>• SELinux status</p><p>• Secure Boot status</p><p>• Kernel security configuration</p><p>• Security-related permissions</p><p>The goal is not to assign arbitrary risk scores. The goal is to collect deterministic evidence describing the current security posture of the system.</p><p><strong><em>Raw Data Is Messy</em></strong></p><p>Linux commands were designed for humans. Different commands often present the same information using different units and formatting.</p><p>For example, available memory may appear as:</p><p>• 14588232 kB</p><p>• 14.5 GiB</p><p>• 14926 MB</p><p>Humans immediately recognize these as equivalent. Software — and especially LLMs — benefits enormously from receiving one normalized representation instead of many different formats.</p><p><strong>Normalization</strong></p><p>Normalization is arguably the most important stage of LinuxMD.</p><p>Rather than forwarding raw command output, LinuxMD converts collected information into structured JSON with consistent units, naming conventions, and schemas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*_Wn-RcC0v5-nhIduJjgOqQ.png" /></figure><p>The LLM never has to interpret multiple units, inconsistent formatting, or duplicate representations of the same measurement.</p><p>Normalization provides several engineering benefits:</p><p>• Consistent schemas</p><p>• Stable APIs</p><p>• Easier regression testing</p><p>• Simpler comparisons</p><p>• Provider-independent prompts</p><p>• Deterministic processing</p><p><strong>Normalization Also Reduces LLM Tokens</strong></p><p>Normalization also has a direct impact on LLM efficiency.</p><p>Raw Linux command output is verbose and often contains redundant information. Multiple commands may report the same metric using different units or formatting. Sending every command directly to an LLM increases prompt size, inference cost, and latency without necessarily improving reasoning quality.</p><p>LinuxMD instead extracts the measurements that matter, removes redundant representations, and constructs a compact evidence model. Rather than sending several pages of terminal output, the model receives concise structured evidence.</p><p>In one LinuxMD workflow, the raw collected data was approximately 247 KiB, while the normalized LLM payload was approximately 41 KiB — an approximately 83% reduction. The exact reduction varies by system and enabled collectors, but the principle is consistent: preserve the information that matters while removing redundant text and formatting.</p><p>This provides several benefits:</p><p>• Fewer prompt tokens</p><p>• Lower inference cost</p><p>• Faster response times</p><p>• More available context for additional subsystems</p><p>• Less distraction from formatting differences or duplicate information</p><p>As LinuxMD expands beyond Linux into GPUs, PCIe, CXL, networking, storage fabrics, and AI infrastructure, efficient evidence representation becomes increasingly important.</p><p><strong>Deterministic Analysis Before AI</strong></p><p>Another design principle behind LinuxMD is to perform deterministic analysis whenever possible.</p><p>Certain questions should never require an LLM:</p><p>• Is swap currently being used?</p><p>• Is memory pressure present?</p><p>• Is CPU utilization excessive?</p><p>• Is AppArmor enabled?</p><p>• Is Secure Boot available?</p><p>• Is PSI indicating resource contention?</p><p>These questions have objective answers. LinuxMD computes them directly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*h8lRwS2n47j1gdpqxWUDOA.png" /></figure><p>Instead of asking an LLM to rediscover basic facts from raw text, LinuxMD supplies validated evidence. The LLM can then spend its reasoning capacity on higher-level correlation and explanation.</p><p>This division of responsibility improves reproducibility across providers and reduces the chance that the model will contradict straightforward measurements.</p><p><strong>From Evidence to System Reasoning</strong></p><p>LinuxMD intentionally avoids open-ended prompts such as:</p><p>Tell me everything about this Linux system.</p><p>Instead, it frames the problem as structured, evidence-based system reasoning. Each subsystem is evaluated independently, with classifications such as:</p><p>• Healthy</p><p>• Warning</p><p>• Critical</p><p>• Unknown</p><p>The LLM then explains why it reached that conclusion using the validated evidence supplied by LinuxMD.</p><p>The use of Unknown is important. Missing tools, incomplete sampling, unsupported interfaces, or absent metrics should not be converted into false confidence. A subsystem can be healthy only when the available evidence supports that conclusion.</p><p>This constrained approach produces more consistent and explainable results than unrestricted free-form analysis.</p><p><strong>Authority Boundaries</strong></p><p>A trustworthy LLM workflow also needs clear authority boundaries. LinuxMD explicitly separates facts that are determined by code from interpretations that are delegated to the model.</p><p>Examples of authoritative deterministic evidence include measurement windows, metric availability, sampling support, pressure flags, missing metrics, subsystem coverage, evidence references, temporal scope, and confidence inputs.</p><p>The LLM is instructed to treat those fields as facts. It may correlate and explain them, but it should not overwrite them. This prevents the reasoning layer from silently changing the meaning of the underlying measurements.</p><p><strong>Evidence Provenance</strong></p><p>One feature I consider especially important is evidence provenance.</p><p>Every conclusion should be traceable back to the measurements that support it. Instead of reporting only that memory is healthy, LinuxMD associates that conclusion with memory availability, swap utilization, PSI measurements, sampling context, and other supporting observations.</p><p>This allows engineers to independently verify every conclusion. Explainability becomes part of the architecture instead of an afterthought.</p><p><strong>Confidence and Missing Evidence</strong></p><p>System health is not always binary. A collector may fail, a command may be unavailable, or a sampling window may be too short to support a strong conclusion.</p><p>LinuxMD therefore distinguishes the health assessment from the quality of the evidence. Coverage, consistency, temporal support, and missing metrics all influence confidence.</p><p>This is why a result such as Healthy with observations can be more useful than a simplistic healthy/unhealthy label. The system may show no current pressure while still having incomplete storage telemetry, a security configuration worth reviewing, or historical kernel warnings that deserve attention.</p><p><strong>Why Structured Evidence Matters</strong></p><p>It is tempting to concatenate the output of dozens of Linux commands and simply ask an LLM to analyze the machine. That approach works surprisingly well for small experiments, but it becomes increasingly difficult to scale.</p><p>Raw command output is:</p><p>• Verbose</p><p>• Inconsistent</p><p>• Redundant</p><p>• Difficult to validate</p><p>• Expensive in token usage</p><p><strong>Structured evidence provides significant advantages:</strong></p><p>• Smaller prompts</p><p>• Lower token consumption</p><p>• Better reproducibility</p><p>• Stable schemas</p><p>• Easier regression testing</p><p>• Better explainability</p><p>• Deterministic preprocessing</p><p>Most importantly, it allows the LLM to spend its reasoning capacity on understanding the system rather than parsing terminal output.</p><p><strong>Looking Ahead</strong></p><p>The current version of LinuxMD focuses on the health of the underlying Linux operating system. That is only the beginning.</p><p>The longer-term vision is to extend the same evidence-driven architecture to modern AI infrastructure. Future areas of exploration include:</p><p>• NVIDIA GPU health</p><p>• PCIe Advanced Error Reporting (AER)</p><p>• CXL memory devices</p><p>• NVLink and NVSwitch</p><p>• SmartNICs</p><p>• DPUs</p><p>• NVMe storage</p><p>• AI cluster-wide reasoning</p><p>• Cross-node correlation</p><p>• Time-series performance analysis</p><p>The methodology remains unchanged:</p><p><strong>Collect reliable evidence. Normalize it. Perform deterministic analysis. Then apply AI where system reasoning adds value.</strong></p><p><strong>Closing Thoughts</strong></p><p>When people hear “AI-powered diagnostics,” they often imagine the LLM doing all the work. My experience building LinuxMD has led me to a different conclusion.</p><p>The LLM is only one component in a much larger pipeline.</p><p>Reliable system reasoning begins with disciplined evidence collection, normalization, deterministic analysis, token-efficient evidence representation, clear authority boundaries, and traceable provenance.</p><p>Only after those foundations are in place does the LLM become truly effective.</p><p>In many ways, LinuxMD is not about replacing experienced Linux engineers. It is about encoding the methodology they already use — collect evidence, validate facts, correlate observations, and reason systematically — into a reusable framework.</p><p>The first milestone is intentionally modest:</p><p><strong><em>Determine whether the underlying Linux operating system is healthy</em></strong></p><p>Everything that follows — GPUs, CXL, PCIe fabrics, AI infrastructure, and eventually system-scale reasoning — can be built upon that foundation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c7a635e1d18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond HBM: A Tiered Memory Architecture for LLM Inference]]></title>
            <link>https://medium.com/@shankar_ravi_v/beyond-hbm-a-tiered-memory-architecture-for-llm-inference-d4dbf852f1bf?source=rss-12eb88d78266------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4dbf852f1bf</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[system-architecture]]></category>
            <dc:creator><![CDATA[Shankar Ravi ]]></dc:creator>
            <pubDate>Wed, 01 Jul 2026 02:28:25 GMT</pubDate>
            <atom:updated>2026-07-02T00:52:09.762Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article reflects my personal views and opinions only and does not represent the views of any past, present, or future employer</em></p><p>This article is not proposing a finished implementation. Rather, it proposes an architectural direction.</p><p>Many of the ideas described here — including KV migration policies, tier placement strategies, prefetching, and latency guarantees — would need to be modeled, prototyped, and experimentally validated. The goal is to stimulate discussion around how operating systems, memory hierarchies, and inference runtimes might evolve together to support the next generation of LLM inference</p><p>For the past few years, AI infrastructure discussions have focused primarily on compute:</p><ul><li>More GPUs</li><li>More tensor cores</li><li>More FLOPs</li><li>More HBM bandwidth</li></ul><p>These innovations have enabled remarkable advances in large language models. But I wonder whether the next major bottleneck is no longer compute.</p><p>It may be <strong>intelligent tiered memory management</strong>.</p><p>As context windows grow and agentic workloads become more common, the KV cache is increasingly becoming the working set of AI inference systems. While today’s systems strive to keep as much KV cache as possible in expensive GPU HBM, HBM capacity, cost, and power do not scale indefinitely.</p><p>This raises an interesting question:</p><blockquote><strong><em>Can AI inference borrow ideas from decades of operating systems, storage systems, and memory hierarchy design?</em></strong></blockquote><h3>A Possible Tiered Memory Architecture for KV Cache</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*J8Y0aW7Y32I-pnRIIIilWA.png" /></figure><p>The objective is <strong>not</strong> to replace HBM.</p><p>The objective is to maximize the effective KV working set while minimizing performance, power, and cost.</p><p>The real innovation is not simply adding another memory tier — it is <strong>intelligently managing KV placement across those tiers.</strong></p><h3>A Possible Software Stack</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*uxl4GfLoS81wLVbAdflXgA.png" /></figure><p>Linux already provides many of the building blocks:</p><h3>Host DRAM</h3><ul><li>mmap()</li><li>Huge Pages / Transparent Huge Pages</li><li>NUMA-aware allocation</li><li>Pinned memory for DMA transfers</li></ul><h3>CXL Memory</h3><ul><li>Linux CXL driver</li><li>NUMA memory nodes</li><li>Memory tiering</li><li>mbind()</li><li>numa_alloc_onnode()</li></ul><h3>NVMe</h3><ul><li>Linux block layer</li><li>io_uring</li><li>Direct I/O</li><li>Asynchronous prefetch</li></ul><p>However, Linux only provides <strong>general-purpose mechanisms</strong>.</p><p>It does <strong>not</strong> understand:</p><ul><li>KV cache semantics</li><li>Attention patterns</li><li>Prefill versus decode</li><li>Token-generation latency</li><li>Model-specific locality</li></ul><p>That knowledge belongs to the inference runtime.</p><p>In other words:</p><blockquote><strong><em>Linux provides the mechanisms.<br>The inference runtime provides the policy.</em></strong></blockquote><h3>Prefill and Decode Have Different Memory Behaviors</h3><p>KV cache behaves very differently during inference.</p><h3>Prefill</h3><p>During prefill, KV cache is generated continuously.</p><p>Characteristics:</p><ul><li>Sequential writes</li><li>High bandwidth</li><li>Streaming workload</li><li>Predictable allocation</li></ul><p>Possible optimizations:</p><ul><li>Large contiguous allocations</li><li>Write combining</li><li>DMA batching</li><li>Delayed placement into lower tiers</li></ul><h3>Decode</h3><p>Decode is fundamentally different.</p><p>Each generated token repeatedly reads previously generated KV cache.</p><p>Characteristics:</p><ul><li>Latency-sensitive reads</li><li>Frequent reuse of active KV</li><li>Strict token-per-second requirements</li></ul><p>Possible optimizations:</p><ul><li>Intelligent prefetching</li><li>Predictive promotion into HBM</li><li>Tier-aware scheduling</li><li>Compression-aware movement</li><li>Dynamic migration</li></ul><p>Prefill is primarily a <strong>streaming write problem</strong>.</p><p>Decode is primarily a <strong>memory hierarchy problem</strong>.</p><h3>KV Locality Drives Tier Placement</h3><p>A tiered architecture only succeeds if it understands <strong>how KV cache is actually accessed</strong>.</p><p>Not all KV blocks have equal value.</p><p>Possible placement signals include:</p><ul><li>Temporal locality</li><li>Access frequency</li><li>Recency</li><li>Predicted reuse</li><li>Attention behavior</li><li>Model-specific heuristics</li></ul><p>An inference runtime could continuously maintain a heat score for every KV block and dynamically migrate data across:</p><p>HBM ⇄ DRAM ⇄ CXL ⇄ NVMe</p><p>The goal is simple:</p><blockquote><strong><em>Maximize the HBM hit rate while minimizing unnecessary data movement.</em></strong></blockquote><h3>A Possible Data Movement Pipeline</h3><pre>Dormant KV (NVMe)<br>        │<br> Async Prefetch<br>        ▼<br>Warm-to-Cool KV (CXL)<br>        │<br> Promotion<br>        ▼<br>Warm KV (Host DRAM)<br>        │<br>Pinned DMA Transfer<br>        ▼<br>Hot KV (GPU HBM)<br>        │<br>PagedAttention<br>        ▼<br>Attention Kernel</pre><p>The inference runtime continuously answers questions such as:</p><ul><li>Which KV blocks are hot?</li><li>Which blocks should be prefetched?</li><li>Which blocks can be evicted?</li><li>Which memory tier should hold each block?</li><li>When should blocks be promoted or demoted?</li></ul><h3>Where AVX and Compression Could Help</h3><p>Another interesting direction is reducing the number of bytes moved.</p><p>Modern CPUs support wide SIMD/vector instruction sets such as AVX2 and AVX-512, allowing software to transform multiple data elements in a single instruction.</p><p>Rather than replacing GPU attention, vector engines could assist with:</p><ul><li>KV compression</li><li>KV decompression</li><li>Data transformation</li><li>Metadata scanning</li><li>Quantization</li><li>Integrity checking</li><li>Preparing larger transfers across PCIe or CXL</li></ul><p>One could even imagine dedicated hardware compression engines:</p><pre>Host DRAM / CXL<br>        │<br>CPU AVX / Vector Engine<br>        │<br>Compression Engine<br>        │<br>PCIe / CXL Fabric<br>        │<br>Decompression Engine<br>        │<br>GPU HBM<br>        │<br>Attention Kernel</pre><p>Whether this improves overall throughput depends on compression ratio, latency overhead, and KV access patterns.</p><h3>Beyond Performance: Power and Total Cost of Ownership</h3><p>Tiered memory architecture is not only about increasing effective KV capacity.</p><p>It is also about improving inference economics.</p><p>A well-designed hierarchy could optimize:</p><ul><li>Tokens per second</li><li>Tokens per watt</li><li>Cost per token</li><li>Server utilization</li><li>Cooling requirements</li><li>Total Cost of Ownership (TCO)</li></ul><p>HBM should be reserved for latency-critical KV.</p><p>Larger and lower-cost memory technologies can store the remainder of the working set.</p><h3>Security and Multi-Tenant Considerations</h3><p>Tiered memory introduces additional system-level challenges.</p><p>In cloud deployments, inference workloads may share:</p><ul><li>Host memory</li><li>CXL memory pools</li><li>Storage devices</li></ul><p>Potential concerns include:</p><ul><li>Tenant isolation</li><li>Timing side channels</li><li>Shared memory access</li><li>Secure KV eviction</li><li>Data cleanup after session termination</li></ul><p>Production systems must balance:</p><ul><li>Performance</li><li>Cost</li><li>Power</li><li>Security</li><li>Operational simplicity</li></ul><h3><strong>Final Thoughts</strong></h3><p>As LLM inference continues to evolve, perhaps the next breakthrough will come not from simply adding more FLOPs, but from treating the KV cache as an intelligently managed memory hierarchy.</p><p>Whether future systems rely on larger HBM pools, shared cluster memory, CXL expansion, or other emerging memory technologies, inference runtimes will still need intelligent policies for KV placement, migration, prefetching, and data movement.</p><p>The challenge may gradually shift from being primarily a compute problem to becoming a systems problem — one where operating systems, memory hierarchies, storage technologies, and inference runtimes work together to maximize performance while minimizing unnecessary data movement.</p><p>The companies that succeed may not simply build the fastest accelerators.</p><p>They may build the systems that move the fewest bytes while delivering the same tokens per second, balancing performance, power, cost, security, and total cost of ownership through intelligent tiered memory management.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4dbf852f1bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From PCI to PCIe to CXL: Agentic AI and the Next Interconnect Evolution]]></title>
            <link>https://medium.com/@shankar_ravi_v/why-agentic-ai-makes-pcie-7-0-and-cxl-inevitable-c5e356ceb08d?source=rss-12eb88d78266------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5e356ceb08d</guid>
            <category><![CDATA[artifical-intellegence]]></category>
            <category><![CDATA[data-center]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai-infrastructure]]></category>
            <category><![CDATA[system-architecture]]></category>
            <dc:creator><![CDATA[Shankar Ravi ]]></dc:creator>
            <pubDate>Sun, 07 Jun 2026 23:01:54 GMT</pubDate>
            <atom:updated>2026-06-08T17:22:03.742Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article reflects my personal views and opinions only and does not represent the views of any past, present, or future employer</em></p><h3>From Compute-Centric Infrastructure to State-Centric Infrastructure</h3><p>For decades, datacenter infrastructure evolved around a simple objective: execute computation faster.</p><p>We built faster CPUs.</p><p>We added accelerators.</p><p>We deployed larger memory systems.</p><p>We introduced GPUs, TPUs, DPUs, and increasingly specialized silicon.</p><p>The dominant optimization target was straightforward:</p><p><strong>More FLOPS. More throughput. More compute.</strong></p><p>The rise of Agentic AI is changing that assumption.</p><p>The next generation of AI infrastructure is no longer constrained primarily by computation. It is increasingly constrained by its ability to manage, move, share, synchronize, and prioritize infrastructure state.</p><p>Viewed through this lens, technologies such as PCIe 7.0 and CXL are not merely protocol evolutions. They are foundational building blocks for a new state-centric infrastructure architecture.</p><h3>The Industry Has Been Optimizing for Compute</h3><p>Traditional applications maintained relatively small working sets.</p><p>A request arrived.</p><p>A computation was performed.</p><p>A response was returned.</p><p>The majority of application state remained local.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/232/1*DSe3KfEHxAOHhJcFa4jMJQ.png" /></figure><p>The primary question was:</p><blockquote><em>How quickly can we execute the workload?</em></blockquote><p>As a result, infrastructure evolved around:</p><ul><li>Faster processors</li><li>Larger memory systems</li><li>Faster storage</li><li>Hardware accelerators</li></ul><p>The bottleneck was computation.</p><h3>Agentic AI Changes the Equation</h3><p>Agentic systems behave very differently.</p><p>An AI agent continuously creates, consumes, updates, and shares state.</p><p>Examples include:</p><ul><li>Conversation history</li><li>Long-term memory</li><li>Retrieval context</li><li>Tool outputs</li><li>Workflow checkpoints</li><li>Embedding vectors</li><li>Multi-agent coordination metadata</li><li>Session state</li></ul><p>A future AI workflow may look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*KlaNCVTYNEKSbi0pz3XOUg.png" /></figure><p>The infrastructure is no longer serving a single inference request.</p><p>It is orchestrating a distributed workflow across memory, storage, networking, and accelerators.</p><p>In many cases, the amount of state movement exceeds the amount of actual computation.</p><h3>Inferencing Is Becoming State-Bound</h3><p>The first generation of LLM deployments focused on token generation.</p><p>Success was measured using:</p><p><em>Tokens Per Second</em></p><p>Agentic AI introduces a different metric:</p><p><em>Useful Tasks Completed Per Second</em></p><p>A future agent may spend its time:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*ql1oOpL7GD3HYlNNzjjhGQ.png" /></figure><p>The performance bottleneck shifts away from pure compute.</p><p>The critical questions become:</p><ul><li>Where does the state live?</li><li>How quickly can it be retrieved?</li><li>How quickly can it be shared?</li><li>How quickly can it be updated?</li></ul><h3>The KV Cache Is Becoming Infrastructure</h3><p>Every generated token requires:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*MUEJZoZFycS8d9oBVHmohQ.png" /></figure><p>As context windows grow from:</p><ul><li>128K tokens</li><li>1M tokens</li><li>Multi-million token contexts</li></ul><p>the amount of state associated with inferencing grows dramatically.</p><p>Future deployments may support:</p><ul><li>Millions of active sessions</li><li>Thousands of concurrent agents</li><li>Persistent autonomous workflows</li></ul><p>The challenge becomes:</p><blockquote><em>Where does all of this state live?</em></blockquote><p>HBM alone is not enough.</p><p>Local DRAM alone is not enough.</p><p>The industry needs a new memory architecture.</p><h3>Why CXL Exists</h3><p>Traditional systems assume memory ownership is local.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/229/1*SiP8nDk5nej8IyxuZt6Xdw.png" /></figure><p>Agentic AI breaks that model.</p><p>Multiple agents may need simultaneous access to:</p><ul><li>Shared memory</li><li>Shared context</li><li>Shared vector indexes</li><li>Shared knowledge stores</li><li>Shared KV cache pools</li></ul><p>This requires:</p><ul><li>Memory pooling</li><li>Memory sharing</li><li>Memory disaggregation</li><li>Fabric-attached memory</li></ul><p>These are precisely the problems CXL was designed to solve.</p><p>It is important to understand that CXL is not simply “faster PCIe.”</p><p>PCIe and CXL share the same physical transport but solve different problems.</p><p>PCIe focuses on moving data.</p><p>CXL focuses on sharing memory and state.</p><p>A useful way to think about the relationship is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/204/1*-fb_TKjy39xGST_vBNfLmw.png" /></figure><p>The underlying electrical transport may be shared, but the memory semantics and coherency protocols are fundamentally different.</p><h3>Why PCIe 7.0 Exists</h3><p>Historically PCIe connected devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/148/1*qNvXHzfUV-O-XjXv748UXg.png" /></figure><p>Traffic patterns were relatively predictable.</p><p>Agentic infrastructure introduces a different communication model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/179/1*RTgcN8J2wD6OjZTZ88cUKw.png" /></figure><p>Everything communicates with everything.</p><p>PCIe is evolving from an I/O bus into a fabric.</p><p>PCIe 7.0 delivers:</p><ul><li>128 GT/s signaling</li><li>PAM4 encoding</li><li>FLIT-based transport</li><li>Up to 512 GB/s bidirectional bandwidth on x16 links</li></ul><p>The important point is not the bandwidth number itself.</p><p>The important point is state mobility.</p><p>Future systems must continuously move:</p><ul><li>KV caches</li><li>Agent memory</li><li>Retrieval context</li><li>Embedding vectors</li><li>Checkpoints</li><li>Shared knowledge</li></ul><p>between CPUs, GPUs, memory pools, and storage systems.</p><p>PCIe 7.0 provides the transport bandwidth necessary for that movement.</p><h3>Why PAM4 and FLIT Became Necessary</h3><p>The transition from PCIe 5.0 to PCIe 6.0 and PCIe 7.0 is not the first time the industry has fundamentally changed how data moves across a system.</p><p>In many ways, it echoes the transition from conventional PCI buses to PCI Express in the early 2000s.</p><p>Traditional PCI relied on a shared parallel bus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/193/1*xfrQXnHppRThbWdPyRtUSw.png" /></figure><p>As clock frequencies increased, several challenges emerged:</p><ul><li>Clock skew between parallel signals</li><li>Signal integrity degradation</li><li>Pin count explosion</li><li>Shared bus contention</li><li>Limited scalability</li></ul><p>At higher frequencies, it became increasingly difficult to guarantee that all signals arrived simultaneously at the receiver.</p><p>The industry responded by moving from a shared parallel bus to a high-speed serial architecture.</p><p>PCI Express introduced:</p><ul><li>Point-to-point links</li><li>SERDES technology</li><li>Embedded clock recovery</li><li>Differential signaling</li><li>8b/10b encoding (later 128b/130b)</li></ul><p>This allowed PCIe to scale from a few gigatransfers per second to tens of gigatransfers per second while dramatically improving signal integrity and scalability.</p><h3>History Is Repeating Itself</h3><p>By the time PCIe reached 32 GT/s in PCIe 5.0, the industry encountered a new set of physical limitations.</p><p>Challenges included:</p><ul><li>Channel loss</li><li>Crosstalk</li><li>Jitter</li><li>Connector attenuation</li><li>PCB trace losses</li></ul><p>Simply doubling the signaling frequency again was becoming impractical.</p><p>The industry needed another architectural transition.</p><h3>Enter PAM4</h3><p>Traditional PCIe generations used NRZ signaling.</p><p>0<br>1</p><p>Each symbol carried one bit.</p><p>PAM4 introduces four voltage levels:</p><p>00<br>01<br>10<br>11</p><p>allowing each symbol to carry two bits.</p><p>This effectively doubles throughput without doubling the symbol rate.</p><p>Instead of pushing NRZ beyond its practical limits, the industry changed the signaling architecture itself.</p><h3>Why FLIT Was Introduced</h3><p>PAM4 comes with a cost.</p><p>The distance between voltage levels becomes much smaller, making the link more susceptible to noise and transmission errors.</p><p>Traditional PCIe packet handling was designed for NRZ links with much lower error rates.</p><p>To maintain reliability at 64 GT/s and beyond, PCIe 6.0 introduced FLIT-based transport and Forward Error Correction (FEC).</p><p>FLIT provides:</p><ul><li>Fixed-size transport units</li><li>Deterministic framing</li><li>Efficient error correction</li><li>Better scalability at very high speeds</li></ul><p>Together, PAM4 and FLIT allow PCIe to continue scaling toward 128 GT/s and beyond.</p><h3>The Bigger Lesson</h3><p>The history of interconnects shows a recurring pattern.</p><p>When the physical layer approaches its practical limits, simply increasing frequency is no longer sufficient.</p><p>The industry responds by changing the architecture of the transport itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/276/1*SMz-sLXk31T0yj8uWvpu4Q.png" /></figure><p>The transition from PCIe 5.0 to PCIe 6.0 and PCIe 7.0 is therefore more than a bandwidth upgrade.</p><p>It represents another major inflection point in interconnect architecture, one driven by the bandwidth and state-mobility requirements of modern AI infrastructure.</p><h3>The Storage QoS Problem</h3><p>Moving state is only part of the challenge.</p><p>The other challenge is prioritizing state.</p><p>Not all state is equally important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*8D_ii-qpwu57-SeasKw_CA.png" /></figure><p>Today’s infrastructure manages QoS independently across subsystems:</p><ul><li>CPU QoS</li><li>Memory QoS</li><li>Storage QoS</li><li>Network QoS</li><li>PCIe QoS</li></ul><p>Agentic AI requires something different:</p><p><strong>End-to-End State QoS</strong></p><p>The infrastructure must understand which state movement matters most and allocate resources accordingly.</p><h3>The Rise of State-Centric Infrastructure</h3><p>The industry has moved through multiple eras:</p><p><strong>Compute-Centric Era</strong> → FLOPS</p><p><strong>Data-Centric Era</strong> → Data Locality</p><p><strong>Accelerator-Centric Era</strong> → HBM Bandwidth</p><p><strong>State-Centric Era</strong> → State Mobility</p><p>This is the architectural transition Agentic AI is forcing upon the industry.</p><h3>The Future AI Infrastructure Stack</h3><p>Tomorrow’s AI stack may look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/1*bXD-WHld8W8ZkpOdld02BQ.png" /></figure><p>The State Orchestrator becomes as important as the accelerator itself.</p><p>Its responsibility is to determine:</p><ul><li>Where state resides</li><li>When state moves</li><li>Which state receives priority</li><li>How state is shared</li><li>How state is protected</li></ul><h3>Final Thoughts</h3><p>The most important infrastructure question in the era of Agentic AI is no longer:</p><blockquote><em>How many FLOPS can my system deliver?</em></blockquote><p>It is:</p><blockquote><em>How efficiently can my system manage, move, share, and prioritize state?</em></blockquote><p>Agentic AI transforms infrastructure from a compute-centric architecture into a state-centric architecture.</p><p>PCIe 7.0 provides the bandwidth to move state.</p><p>CXL provides the memory fabric to share state.</p><p>Storage QoS provides the prioritization mechanisms necessary to deliver predictable performance.</p><p>Together, these technologies form the foundation of the next generation of AI infrastructure.</p><p>Just as PCI Express enabled the accelerator era, PAM4 and FLIT may become the foundational technologies enabling the state-centric infrastructure era of Agentic AI.</p><p>The winners in the Agentic AI era may not be the systems with the fastest accelerators.</p><p>They may be the systems that can move state with the lowest latency, highest predictability, and strongest end-to-end QoS guarantees.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5e356ceb08d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic AI Is Creating a New Bottleneck: Infrastructure State Management]]></title>
            <link>https://medium.com/@shankar_ravi_v/agentic-ai-is-creating-a-new-bottleneck-infrastructure-state-management-23560ac88ac1?source=rss-12eb88d78266------2</link>
            <guid isPermaLink="false">https://medium.com/p/23560ac88ac1</guid>
            <category><![CDATA[system-architecture]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[data-center]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Shankar Ravi ]]></dc:creator>
            <pubDate>Sat, 06 Jun 2026 19:16:17 GMT</pubDate>
            <atom:updated>2026-06-06T19:16:17.959Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article reflects my personal views and opinions only and does not represent the views of any past, present, or future employer</em></p><p>Everyone is talking about GPUs.</p><p>Some are talking about models.</p><p>A few are talking about data.</p><p>Almost nobody is talking about the layer that sits underneath all of them: <strong>infrastructure state management</strong>.</p><p>Yet that may become one of the most important scaling challenges of the Agentic AI era.</p><h3>We Have Seen This Movie Before</h3><p>Technology history is full of examples where a new user interface fundamentally changed backend requirements.</p><p>Before smartphones, users interacted with systems relatively infrequently. A brokerage customer might check their portfolio a few times per day. An online shopper might visit a website once or twice a week.</p><p>Then smartphones arrived.</p><p>The application logic did not fundamentally change. Human behavior did.</p><p>Users began checking information dozens or hundreds of times per day. Mobile notifications generated constant engagement. Background services continuously synchronized data.</p><p>Systems that were designed for occasional access suddenly faced orders-of-magnitude higher request rates.</p><p>The bottleneck was no longer application functionality.</p><p>The bottleneck became scale.</p><p>Many organizations had to redesign databases, caching layers, messaging systems, and infrastructure architectures simply to keep up with the increase in interactions.</p><p>Agentic AI may create an even larger shift.</p><h3>From Human-Speed to Machine-Speed</h3><p>Most enterprise systems today are still designed around human activity.</p><p>Consider a company with 10,000 employees.</p><p>Historically, those employees represented roughly 10,000 active workloads.</p><p>Each employee:</p><ul><li>Opens applications</li><li>Runs reports</li><li>Sends emails</li><li>Creates tickets</li><li>Executes business processes</li></ul><p>The interaction rate is bounded by human speed.</p><p>Even the most productive employee can only perform a limited number of actions per hour.</p><p>Agentic AI changes this assumption completely.</p><p>Instead of one worker interacting with enterprise systems, a worker may soon supervise dozens or hundreds of autonomous agents.</p><p>These agents do not operate at human speed.</p><p>They operate continuously.</p><p>They do not take breaks.</p><p>They do not wait until tomorrow morning.</p><p>They do not stop when the workday ends.</p><p>A single employee could eventually have:</p><ul><li>A research agent</li><li>A coding agent</li><li>A validation agent</li><li>A test-generation agent</li><li>A documentation agent</li><li>A data-analysis agent</li><li>A scheduling agent</li><li>A procurement agent</li></ul><p>Each one generating requests around the clock.</p><p>The result is a fundamental workload multiplier.</p><h3>The Real Resource Problem</h3><p>Most discussions about Agentic AI focus on compute.</p><p>Specifically, GPUs.</p><p>This is understandable because GPUs are expensive and often represent the most visible bottleneck.</p><p>However, GPU capacity is only one resource being contested.</p><p>Agent ecosystems compete for:</p><ul><li>GPU time</li><li>CPU cycles</li><li>Memory</li><li>Storage bandwidth</li><li>Network bandwidth</li><li>Metadata services</li><li>Scheduling infrastructure</li><li>Databases</li><li>Caches</li><li>Vector stores</li></ul><p>Every agent must answer a basic question:</p><p><strong>What should I do next?</strong></p><p>Answering that question requires state.</p><p>Where is the data?</p><p>Which model should be used?</p><p>What resources are available?</p><p>What jobs are running?</p><p>What dependencies have completed?</p><p>What context should be loaded?</p><p>Every one of these decisions depends on infrastructure state.</p><p>And infrastructure state must be stored somewhere.</p><h3>The Hidden Explosion of State</h3><p>The industry often measures AI growth in tokens.</p><p>Infrastructure teams measure it differently.</p><p>They measure:</p><ul><li>Queries per second</li><li>Metadata lookups</li><li>Scheduling decisions</li><li>Resource reservations</li><li>Cache operations</li><li>Event streams</li><li>Telemetry records</li></ul><p>Imagine an enterprise with 10,000 employees.</p><p>Suppose each employee eventually operates 100 agents.</p><p>That produces one million agents.</p><p>Even if those agents are relatively lightweight, each may perform:</p><ul><li>Status checks</li><li>Resource requests</li><li>Data retrievals</li><li>Workflow updates</li><li>Coordination messages</li></ul><p>multiple times per minute.</p><p>Suddenly the infrastructure is processing millions of state transitions continuously.</p><p>The challenge is no longer generating intelligence.</p><p>The challenge is coordinating it.</p><h3>Silicon Development Provides an Early Example</h3><p>The semiconductor industry offers an interesting glimpse into this future.</p><p>Modern chip development already involves massive resource coordination.</p><p>Engineers compete for:</p><ul><li>Emulation systems</li><li>FPGA platforms</li><li>Simulation farms</li><li>Validation environments</li><li>Build infrastructure</li><li>Test capacity</li></ul><p>These resources are expensive and finite.</p><p>Scheduling them efficiently is already a complex problem.</p><p>Now imagine introducing autonomous agents into this environment.</p><p>A software validation agent discovers a failure.</p><p>It automatically requests an emulation slot.</p><p>A debugging agent collects traces.</p><p>A root-cause agent analyzes the failure.</p><p>A remediation agent proposes a patch.</p><p>A verification agent launches regression testing.</p><p>A reporting agent updates project dashboards.</p><p>What previously required several engineers and multiple meetings becomes an autonomous workflow.</p><p>Productivity increases dramatically.</p><p>But infrastructure activity increases even more dramatically.</p><p>The number of state transitions can easily exceed the number of human interactions by several orders of magnitude.</p><h3>Why Databases Suddenly Matter Again</h3><p>For years, databases were often viewed as a solved problem.</p><p>Scale improvements continued, but many organizations considered storage and transaction processing mature technologies.</p><p>Agentic AI may change that perception.</p><p>Future infrastructure systems will require:</p><ul><li>Ultra-low-latency lookups</li><li>Massive concurrency</li><li>Real-time resource allocation</li><li>Distributed coordination</li><li>Continuous state synchronization</li></ul><p>The challenge is not simply storing data.</p><p>The challenge is managing active state at enormous scale.</p><p>Infrastructure platforms will increasingly resemble large-scale consumer systems where billions of events must be processed continuously and reliably.</p><p>The organizations that solve this problem will have a significant advantage.</p><h3>The Rise of Agent Infrastructure</h3><p>Today, most AI discussions focus on foundation models.</p><p>Tomorrow’s discussions may focus on infrastructure orchestration.</p><p>A mature Agentic AI stack will likely require:</p><h3>Intelligence Layer</h3><p>Large language models and specialized AI models.</p><h3>Workflow Layer</h3><p>Agent frameworks, orchestration systems, and business processes.</p><h3>Resource Layer</h3><p>GPU clusters, CPU pools, storage systems, and networking.</p><h3>State Layer</h3><p>Databases, metadata services, scheduling systems, caches, and event streams.</p><p>Ironically, the state layer may become the hardest layer to scale.</p><p>Models continue to improve.</p><p>Hardware continues to become faster.</p><p>But coordination complexity grows exponentially as autonomous systems interact with one another.</p><h3>The New Infrastructure Arms Race</h3><p>The next decade may not be defined solely by better models.</p><p>It may be defined by better coordination.</p><p>Organizations that successfully deploy millions of agents will need infrastructure capable of managing:</p><ul><li>Resource allocation</li><li>Workflow dependencies</li><li>Distributed state</li><li>Event processing</li><li>Data locality</li><li>Real-time scheduling</li></ul><p>The winners may not simply be those with the largest GPU clusters.</p><p>They may be those with the best infrastructure state management architectures.</p><p>Just as the smartphone revolution transformed backend systems, Agentic AI is poised to transform enterprise infrastructure.</p><p>The industry is currently focused on intelligence.</p><p>Soon it may discover that intelligence is only half the problem.</p><p>The other half is coordination.</p><p>And coordination is fundamentally a state management challenge.</p><h3>Final Thoughts</h3><p>The most interesting aspect of Agentic AI is not that machines can reason.</p><p>It is that machines can now initiate work.</p><p>Once systems begin acting autonomously, every action creates additional state, dependencies, and resource contention.</p><p>The challenge shifts from generating intelligence to orchestrating intelligence.</p><p>That orchestration requires a new generation of infrastructure.</p><p>The organizations preparing for this shift today will be positioned to scale tomorrow’s agent-driven enterprise. The organizations that are not may discover that their AI systems work perfectly — until they try to run them at scale.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23560ac88ac1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic AI Is Exposing a Hidden CPU Problem: Architectural State]]></title>
            <link>https://medium.com/@shankar_ravi_v/agentic-ai-is-exposing-a-hidden-cpu-problem-architectural-state-8a7a5dc4080f?source=rss-12eb88d78266------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a7a5dc4080f</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[system-engineering]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[cpu-architecture]]></category>
            <dc:creator><![CDATA[Shankar Ravi ]]></dc:creator>
            <pubDate>Thu, 07 May 2026 00:30:18 GMT</pubDate>
            <atom:updated>2026-05-13T02:53:42.510Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article reflects my personal views and opinions only and does not represent the views of any past, present, or future employer</em></p><p>For years, AI infrastructure discussions have centered around GPUs.</p><p>Tensor cores, HBM bandwidth, NVLink fabrics, model scaling, and trillion-parameter training runs dominate the conversation.</p><p>But Agentic AI may shift some of the pressure back toward CPUs — not because CPUs suddenly outperform GPUs at tensor math, but because modern AI systems are becoming orchestration-heavy distributed systems.</p><p>And that shift is exposing an under-discussed challenge in CPU architecture:</p><blockquote><em>architectural state scalability</em></blockquote><h3>AI Infrastructure Is Changing</h3><p>Classic LLM inference can often be simplified as:</p><p>prompt → GPU tensor execution → tokens</p><p>Agentic AI looks very different:</p><p>planner<br>→ retrieval<br>→ vector DB lookup<br>→ reranker<br>→ tool call<br>→ RPC<br>→ browser/API interaction<br>→ memory updates<br>→ more inference<br>→ orchestration</p><p>The workload becomes:</p><ul><li>asynchronous</li><li>branch-heavy</li><li>memory-intensive</li><li>synchronization-heavy</li><li>orchestration-dominated</li></ul><p>In many real deployments, GPUs execute tensor math while CPUs coordinate everything around them:</p><ul><li>task scheduling</li><li>runtime orchestration</li><li>retrieval pipelines</li><li>memory management</li><li>networking</li><li>container execution</li><li>security isolation</li></ul><p>The system increasingly resembles a distributed systems problem rather than a pure compute problem.</p><h3>CPUs Are Quietly Becoming More Important Again</h3><p>This explains why the industry is suddenly rethinking CPUs for the AI era.</p><p>We are seeing:</p><ul><li>coherent CPU-GPU fabrics</li><li>unified memory systems</li><li>CPU-centric orchestration layers</li><li>AI-specific ISA extensions</li><li>AI-aware scheduling discussions</li></ul><p>Architectures like:</p><ul><li>NVIDIA Grace Hopper Superchip</li><li>CXL-based memory fabrics</li><li>NVLink-C2C coherent interconnects</li></ul><p>all implicitly acknowledge the same reality:</p><blockquote><em>AI systems are increasingly bottlenecked by coordination, memory movement, and orchestration — not just tensor FLOPS.</em></blockquote><h3>Enter AMX: Matrix Acceleration Comes to CPUs</h3><p>To accelerate AI workloads, Intel introduced <a href="https://www.intel.com/content/www/us/en/products/docs/accelerator-engines/what-is-intel-amx.html">AMX </a>(Advanced Matrix Extensions).</p><p>AMX adds hardware matrix engines directly into x86 CPUs.</p><p>Conceptually, AMX provides:</p><ul><li>tile-based matrix registers</li><li>low-precision AI arithmetic</li><li>high-throughput matrix accumulation</li><li>AI-friendly dataflow</li></ul><p>AMX is designed for:</p><ul><li>inference</li><li>quantized AI</li><li>matrix-heavy workloads</li><li>CPU-side AI acceleration</li></ul><p>This was a major architectural shift for x86.</p><p>Historically:</p><ul><li>SSE/AVX focused on SIMD vector math</li><li>AMX moved x86 toward tensor-style execution</li></ul><h3>But AMX Introduced a New Problem</h3><p>AMX tile state is enormous compared to traditional SIMD state.</p><p>A thread using AMX may carry:</p><ul><li>tile configuration state</li><li>multiple large tile registers</li><li>expanded XSAVE context</li></ul><p>Current implementations are roughly:</p><p><em>~8KB architectural tile state per thread</em></p><p>Future implementations could grow significantly larger.</p><p>That creates a subtle but important systems problem.</p><h3>Linux Had to Add a Special ABI for AMX</h3><p>Linux does not enable AMX automatically for every thread.</p><p>Instead:</p><ul><li>applications must explicitly request AMX permission</li><li>kernel dynamically expands xstate only when needed</li><li>first AMX usage triggers a fault-driven enablement flow</li></ul><p>This is critical because otherwise:</p><ul><li>every process</li><li>every Python runtime</li><li>every container thread</li></ul><p>would carry massive tile state overhead even if AMX is never used.</p><p>The design is clever and necessary.</p><p>But it also exposes a deeper architectural tension.</p><h3>The Hidden Issue: “AMX-Tainted” Threads</h3><p>Once a thread becomes AMX-enabled:</p><ul><li>the kernel must preserve tile state correctness</li><li>scheduler must treat the thread as carrying expanded xstate</li><li>context switching overhead rises</li><li>migration cost increases</li></ul><p>even when the thread is not actively executing AMX instructions.</p><p>This matters enormously for Agentic AI.</p><h3>Why Agentic AI Changes the Equation</h3><p>Traditional HPC workloads looked like this:</p><p>few threads<br>long-running compute kernels<br>minimal context switching</p><p>AMX fits that model well.</p><p>But Agentic AI behaves more like:</p><p>many async tasks<br>high scheduler activity<br>tool orchestration<br>RPC fanout<br>microservices<br>coroutines<br>bursty inference</p><p>Now imagine:</p><ul><li>a long-lived worker thread</li><li>occasionally invoking AMX inference kernels</li><li>mostly executing orchestration code afterward</li></ul><p>From the kernel’s perspective:</p><ul><li>that thread still carries heavyweight architectural state</li></ul><p>even if AMX usage is sparse.</p><p>The thread becomes effectively:</p><blockquote><em>“AMX-tainted.”</em></blockquote><h3>This Is More Than a Performance Issue</h3><p>The real challenge is architectural scalability.</p><p>Large software-visible tensor state affects:</p><ul><li>scheduler efficiency</li><li>VM migration</li><li>virtualization overhead</li><li>signal handling</li><li>memory footprint</li><li>cache locality</li><li>cloud density</li></ul><p>At hyperscale, these effects matter.</p><p>Suppose future AI extensions expand architectural tensor state toward:</p><p>32KB–64KB per thread</p><p>Now multiply that across:</p><ul><li>thousands of runnable tasks</li><li>async runtimes</li><li>containerized AI services</li></ul><p>The operational implications become significant.</p><h3>The x86 Ecosystem Advisory Group Signals a Broader Shift</h3><p>This is why the recent x86 Ecosystem Advisory Group (x86 EAG) whitepaper is particularly interesting.</p><p>The paper introduces <a href="https://x86ecosystem.org/wp-content/uploads/2026/03/ACE-Whitepaper-v1.pdf">ACE</a> (AI Compute Extensions), a proposed x86 AI acceleration direction jointly backed by:</p><ul><li>Intel</li><li>AMD</li></ul><p>That collaboration alone is notable.</p><p>Historically, x86 AI acceleration evolved somewhat independently:</p><ul><li>AVX</li><li>AVX512</li><li>AMX</li><li>vendor-specific implementations</li></ul><p>ACE appears to signal something different:</p><blockquote><em>a more standardized, scalable, and operationally sustainable AI acceleration model for x86.</em></blockquote><h3>ACE Suggests the Industry Is Rebalancing</h3><p>One subtle but important aspect of the ACE proposal is what it does <em>not</em> emphasize.</p><p>Unlike AMX, the discussion appears less centered around:</p><ul><li>massive exposed tile state</li><li>giant architectural register expansion</li><li>ever-wider vector execution</li></ul><p>Instead, ACE appears to favor:</p><ul><li>outer-product style execution</li><li>practical 256-bit convergence</li><li>reuse of AVX10 infrastructure</li><li>lighter-weight matrix acceleration semantics</li><li>AI-friendly low precision formats</li></ul><p>That may sound incremental, but architecturally it is significant.</p><p>It suggests the industry may be shifting from:</p><p>maximize raw SIMD width</p><p>toward:</p><p>maximize sustainable system-level efficiency</p><h3>Why AVX10 Matters Here</h3><p>AVX10 also fits this broader transition.</p><p>Rather than fragmenting x86 into:</p><ul><li>AVX2 systems</li><li>AVX512 systems</li><li>inconsistent deployment targets</li></ul><p>AVX10 creates:</p><ul><li>a common programming model</li><li>width-independent semantics</li><li>practical convergence around 256-bit implementations</li></ul><p>That matters because modern AI bottlenecks increasingly involve:</p><ul><li>memory locality</li><li>scheduling</li><li>orchestration</li><li>synchronization</li><li>runtime scalability</li></ul><p>not simply:</p><ul><li>maximum vector width.</li></ul><h3>GPUs Avoid Much of This Problem</h3><p>GPU tensor cores generally do not expose massive persistent architectural state to the OS scheduler.</p><p>Instead:</p><ul><li>tensor state is transient</li><li>accumulators are microarchitectural</li><li>runtimes manage execution internally</li></ul><p>The operating system does not context-switch giant tensor register files on every thread migration.</p><p>That distinction matters.</p><h3>The Bottleneck Is Moving</h3><p>For decades, system bottlenecks evolved roughly like this:</p><p>compute<br>→ memory bandwidth<br>→ interconnect<br>→ orchestration</p><p>Agentic AI accelerates that transition.</p><p>The challenge is no longer only:</p><blockquote><em>“How fast can we multiply matrices?”</em></blockquote><p>Increasingly it becomes:</p><blockquote><em>“How efficiently can we orchestrate massive numbers of dynamic AI tasks without overwhelming the operating system?”</em></blockquote><p>That is a very different systems problem.</p><p>And it may shape the next era of CPU architecture more than raw tensor throughput alone.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a7a5dc4080f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic AI in Embedded Systems: From Firmware to Autonomous Systems Thinking]]></title>
            <link>https://medium.com/@shankar_ravi_v/agentic-ai-in-embedded-systems-from-firmware-to-autonomous-systems-thinking-c7ade7b2b353?source=rss-12eb88d78266------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7ade7b2b353</guid>
            <category><![CDATA[firmware-development]]></category>
            <category><![CDATA[system-engineering]]></category>
            <category><![CDATA[edge-ai]]></category>
            <dc:creator><![CDATA[Shankar Ravi ]]></dc:creator>
            <pubDate>Tue, 28 Apr 2026 23:54:26 GMT</pubDate>
            <atom:updated>2026-04-28T23:54:26.522Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article reflects my personal views and opinions only and does not represent the views of any past, present, or future employer.</em></p><h3>Start with Intent: A Platform-Aware Prompt</h3><p>Instead of writing firmware from scratch, imagine starting here:</p><blockquote><strong><em>Create an embedded application that captures an image every 100 ms from an onboard CSI camera, runs inference using TensorRT, and sends classification results (label, confidence, timestamp) to a downstream handler.</em></strong></blockquote><blockquote><strong><em>Target platform:</em></strong><em> ARM Cortex-A Linux system with GPU acceleration<br></em><strong><em>Latency constraint:</em></strong><em> End-to-end processing must complete within 100 ms<br></em><strong><em>Design requirement:</em></strong><em> Modular separation of capture, inference, and result handling</em></blockquote><p>This is not pseudocode.<br>This is <strong>system intent grounded in a platform</strong>.</p><p>From this single statement, you are defining:</p><ul><li>timing (100 ms loop)</li><li>hardware (CSI camera)</li><li>compute backend (GPU / TensorRT)</li><li>architecture (Cortex-A Linux)</li><li>data flow (capture → process → act)</li><li>output contract</li></ul><h3>Why Platform Matters</h3><p>The same intent behaves very differently across systems:</p><ul><li>Cortex-M → no GPU, tight memory, ISR-driven</li><li>Cortex-A → Linux, GPU acceleration, user space</li><li>RISC-V → different ABI and toolchain</li><li>x86 → simulation and validation</li></ul><blockquote><em>In embedded systems, intent without platform leads to wrong code, wrong toolchains, and failed integration.</em></blockquote><h3>What This Takes Without Agents</h3><p>Even this “simple” requirement expands quickly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*XTmTe9JUG1ISNq0MUC2tdw.png" /></figure><p>👉 <strong>Total: ~2–3 weeks for a stable baseline</strong></p><h3>Why It’s Hard: Complexity Layers</h3><ul><li>Spec complexity → <strong>O(N)</strong></li><li>Integration complexity → <strong>O(N²)</strong></li><li>Debugging complexity → <strong>O(N³)-like</strong></li></ul><p>Most effort is spent not writing code — but <strong>debugging cross-layer behavior</strong>.</p><h3>From Prompt to System</h3><pre>Camera → Frame Buffer → Inference → Result Handler</pre><p>Each stage requires:</p><ul><li>hardware awareness</li><li>memory control</li><li>timing guarantees</li></ul><blockquote>Enter Firmware Agents: <a href="https://craftifai.com/">CraftifAI</a> FirmGen</blockquote><blockquote><a href="https://craftifai.com/"><strong><em>CraftifAI </em></strong></a><strong><em>FirmGen translates system intent into baseline firmware and system scaffolding</em></strong></blockquote><h3>What It Does</h3><ul><li>generates firmware skeleton</li><li>configures peripherals</li><li>sets up timing loops</li><li>wires inference pipelines</li><li>defines result interfaces</li></ul><h3>Where It Fits</h3><pre>Intent (Prompt)<br>↓<br>Firmware Agent (FirmGen)<br>↓<br>Silicon-agnostic SDK<br>↓<br>Vendor adaptation layer<br>↓<br>Hardware</pre><h3>What It Does NOT Do</h3><ul><li>replace hardware optimization</li><li>guarantee real-time correctness</li><li>remove validation</li></ul><blockquote><em>It reduces </em><strong><em>accidental complexity</em></strong><em>, not </em><strong><em>essential complexity</em></strong></blockquote><h3>Effort Shift with Agents</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*9i8mmQm7pyPQhBCHszQw5w.png" /></figure><p>👉 <strong>Total: ~3–5 days</strong></p><h3>Beyond Code: The Multi-Architecture Toolchain Problem</h3><blockquote><strong><em>Can the same intent be translated across architectures and toolchains?</em></strong></blockquote><h3>Same intent, different targets</h3><ul><li>Cortex-M → arm-none-eabi-gcc</li><li>Cortex-A → clang / aarch64-linux-gnu-gcc</li><li>RISC-V → clang --target=riscv64</li><li>x86 → native toolchain</li></ul><h3>What Changes</h3><ul><li>compiler targets / flags</li><li>linker scripts / memory layout</li><li>SDKs and drivers</li><li>inference runtimes (TensorRT, TFLite, ONNX)</li></ul><h3>What LLM-Based Systems Add</h3><ul><li>build configs (CMake / toolchain files)</li><li>target triples (--target=arm, riscv64)</li><li>compiler flags (-mcpu, -O3)</li><li>runtime bindings</li></ul><blockquote><em>This is not just code generation — it is </em><strong><em>toolchain generation</em></strong></blockquote><h3>Key Shift</h3><blockquote><em>spec → code → fix toolchain → debug</em></blockquote><p>becomes:</p><blockquote><strong><em>intent → code + toolchain → validate</em></strong></blockquote><h3>Adding Intent Verification (Unit Tests)</h3><p>A prompt-driven system should generate:</p><blockquote><strong><em>code + tests + validation artifacts</em></strong></blockquote><p>From the same prompt, derive tests to verify:</p><ul><li>capture loop runs every 100 ms</li><li>inference runs per frame</li><li>output contains label, confidence, timestamp</li><li>end-to-end latency &lt; 100 ms</li><li>error handling (timeouts, dropped frames)</li></ul><blockquote><em>Tests are derived from intent — not written after code.</em></blockquote><h3>Shift-Left Validation: Simulator Before Hardware</h3><p>Testing directly on hardware is expensive and slow.</p><blockquote><strong><em>Validate intent on simulators first</em></strong></blockquote><h3>Where Simulation Fits</h3><ul><li>QEMU / ARM Fast Models / RISC-V ISS</li><li>virtual platforms (peripherals, memory)</li></ul><h3>What You Can Validate</h3><ul><li>control flow correctness</li><li>scheduling behavior (100 ms loop)</li><li>API contracts</li><li>error handling</li></ul><h3>What Still Needs Hardware</h3><ul><li>DMA behavior</li><li>cache effects</li><li>real latency</li><li>resource contention</li></ul><blockquote><strong><em>Simulation verifies intent. Hardware verifies reality.</em></strong></blockquote><h3>Packaging and Deployment: From Binary to Field</h3><p>Generating firmware is not enough.</p><blockquote><em>Systems must be deployable and updatable.</em></blockquote><h3>Embedded / RTOS (Zephyr)</h3><ul><li>firmware image (ELF/bin)</li><li>OTA updates</li><li>bootloader integration</li></ul><h3>Edge Linux (Containers)</h3><ul><li>Docker images with runtime + app</li><li>reproducible deployments</li><li>fleet-wide rollout</li></ul><h3>What Agents Can Generate</h3><ul><li>binaries</li><li>container images</li><li>OTA packages</li><li>deployment manifests</li></ul><h3>Extended Workflow</h3><blockquote><strong><em>prompt → code + tests → simulate → compile → package → deploy → validate</em></strong></blockquote><h3>Performance vs Abstraction</h3><p>Abstractions introduce:</p><ul><li>latency</li><li>jitter</li><li>power overhead</li></ul><p>But enable:</p><ul><li>portability</li><li>scalability</li></ul><h3>Control vs Data Plane</h3><ul><li>Control plane → safe to abstract</li><li>Data plane → must remain optimized</li></ul><h3>Real-Time Constraints: The Hard Boundary</h3><ul><li>100 ms loop → hard deadline</li><li>worst-case latency matters</li><li>jitter breaks systems</li></ul><h3>Naive vs Optimized Design</h3><h3>Naive</h3><pre>Camera → SDK → Agent → Inference → SDK → Output</pre><h3>Optimized</h3><pre>Camera → DMA → Inference Engine<br>             ↑<br>        Agent control</pre><h3>Key Principle</h3><blockquote><strong><em>Agents control decisions — firmware controls execution</em></strong></blockquote><h3>Full System Diagram</h3><pre>+------------------------------------------------------+<br>|              INTENT / GENERATION                     |<br>|------------------------------------------------------|<br>| Prompt (platform-aware)                              |<br>|     ↓                                                |<br>| LLM / FirmGen                                        |<br>|     ↓                                                |<br>| Code + Tests + Build Config                          |<br>|     ↓                                                |<br>| Simulation (QEMU / ISS)                              |<br>|     ↓                                                |<br>| LLVM / Clang (multi-arch targets)                    |<br>+---------------------------↓--------------------------+<br>                            ↓<br>+------------------------------------------------------+<br>|              EXECUTION / DEPLOYMENT                  |<br>|------------------------------------------------------|<br>| Binary / Container                                   |<br>|     ↓                                                |<br>| Firmware / OS Runtime                                |<br>|     ↓                                                |<br>| Hardware (CPU / GPU / Camera / DMA)                  |<br>|     ↓                                                |<br>| Runtime Validation                                   |<br>+------------------------------------------------------+</pre><h3>What Changes for Engineers</h3><p>From:</p><ul><li>writing everything manually</li></ul><p>To:</p><ul><li>defining intent</li><li>setting constraints</li><li>validating system behavior</li></ul><h3>The Bigger Shift</h3><p>We are moving from:</p><ul><li>code-driven systems</li></ul><p>to:</p><ul><li><strong>intent-driven systems</strong></li></ul><h3>Closing Thought</h3><p>In agentic systems, the lifecycle does not stop at deployment. Field failures, validation logs, and customer reports can be ingested back into the system to guide future iterations.</p><p>With proper traceability — from prompt to binary to deployed device — agents can help prioritize fixes and propose release plans.</p><p><strong>The system not only generates firmware — it learns what to fix next.</strong></p><p>We spent decades making embedded systems predictable.</p><p>Now we are making them adaptive.</p><p>The challenge is not building agentic AI.</p><p>It is:</p><blockquote><strong><em>ensuring systems remain predictable when behavior becomes dynamic</em></strong></blockquote><h3>Final Lines</h3><blockquote><em>“With tools like CraftifAI’s FirmGen, development time drops from weeks to days — but responsibility for correctness does not.”</em></blockquote><blockquote><em>“The future is not prompt-to-code. It is prompt-to-platform, prompt-to-toolchain, and prompt-to-validation.”</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7ade7b2b353" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>