LIVE · cybersecurity feed
Live wire
cloud

Saving another 100TB of RAM with math (and Rust)

Cloudflare has announced that it has successfully optimized its Pingora proxy, which is written in Rust, to save approximately 100 terabytes of RAM across its global network. This significant memory reduction was achieved through a series of optimizations, primarily focusing on how Pingora handles HTTP headers.

ZeroDay News ·

Source: Cloudflare Blog

Cloudflare has announced that it has successfully optimized its Pingora proxy, which is written in Rust, to save approximately 100 terabytes of RAM across its global network. This significant memory reduction was achieved through a series of optimizations, primarily focusing on how Pingora handles HTTP headers.

The core of the optimization involved a re-evaluation of how HTTP headers are stored and processed within Pingora. Initially, Pingora would parse incoming HTTP headers and store them in a `HeaderMap` structure, which is a hash map. While functional, this approach proved to be memory-intensive, especially given the high volume of traffic processed by Cloudflare's edge network. The `HeaderMap` would allocate memory for each header key-value pair, leading to considerable overhead.

To address this, Cloudflare engineers implemented a strategy that leverages the fact that many HTTP headers are common and frequently repeated across requests. Instead of storing full copies of these common headers for every request, Pingora now employs a system where it can reference a canonical, pre-allocated copy of these headers. This "deduplication" process significantly reduces the memory footprint by avoiding redundant storage.

Further memory savings were realized by optimizing the parsing process itself. The new approach minimizes temporary allocations during header parsing, ensuring that memory is used more efficiently from the outset. This involved fine-tuning the Rust code to reduce intermediate data structures and directly process header bytes into their final, optimized representation.

The impact of these changes is substantial. By reducing the memory consumption of each Pingora instance, Cloudflare can now handle a greater number of concurrent connections and requests with the same amount of hardware. This not only translates to direct cost savings in terms of RAM but also improves the overall efficiency and performance of their network infrastructure.

Pingora, Cloudflare's custom-built proxy, replaced its previous proxy infrastructure, which included NGINX. The decision to develop Pingora in Rust was driven by the language's strong performance characteristics, memory safety guarantees, and concurrency features, which are critical for a high-performance network proxy. This latest optimization further validates the choice of Rust for such demanding applications.

The 100TB RAM saving represents a cumulative figure across Cloudflare's entire global network of data centers, where Pingora is deployed at the edge to handle incoming web traffic. This optimization is part of Cloudflare's ongoing efforts to enhance the efficiency and scalability of its infrastructure, ensuring it can continue to support the growing demands of the internet.

cloud
ShareXLinkedInWhatsAppFacebook

More News

view all →
security

Canadian cybersecurity executive arrested in federal extortion case

A Canadian cybersecurity executive was arrested in Pennsylvania on Thursday, facing federal charges of conspiracy to commit extortion. Edward Dubrovsky, 54, a co-founder and former Chief Operating Officer of CYPFER, a firm specializing in ransomware negotiation, is charged with conspiring to threaten the confidentiality of information for extortion and conspiring to commit Hobbs Act extortion,…

breach

Criminal IP Introduces AITEM as the Next Evolution of Attack Surface Management

AI SPERA, the company behind the cyber threat intelligence platform Criminal IP, has announced AITEM (AI-Powered Threat Exposure Management), an expansion of its Attack Surface Management (ASM) offerings. AITEM aims to move beyond traditional asset discovery to provide a more comprehensive approach to understanding, prioritizing, and responding to security exposures. The platform is scheduled…

ai

AI Is Getting Really Good at Messing With Cybercriminals

Anti-cybercrime initiatives are increasingly deploying artificial intelligence to disrupt scammers by engaging them with lifelike bots, which the criminals mistake for genuine victims. This strategy aims to waste scammers' time and resources while gathering intelligence on their operations.

ransomware

FBI Arrests Ransomware Negotiation Firm Co-Founder in ShinyHunters Probe

The Federal Bureau of Investigation (FBI) has reportedly arrested Edward Dubrovsky, a co-founder of the ransomware negotiation firm Cypfer and currently associated with CyberSteward. The arrest is said to be part of the ongoing ShinyHunters investigation, specifically in connection with an incident involving FBI job applicant data.

ai

The Third-Party Agent Problem: Why Security Built for AI You Chose Misses the Agents You Didn't

A new report highlights a significant blind spot in enterprise security architectures concerning the proliferation of third-party AI agents. The forthcoming 2026 State of Agent Security Report indicates that current security models, often designed to protect AI systems directly chosen and deployed by an organization, frequently fail to account for AI capabilities embedded within third-party…

security

Insider Cyber Extortion Plot Against Industrial Firm Lands Engineer in Prison

A former core infrastructure engineer has been sentenced to prison for an attempted cyber extortion plot against an industrial firm. The engineer reportedly deleted administrative accounts and reset hundreds of user passwords, subsequently demanding a ransom of 20 Bitcoin to prevent further disruption to the company's servers.