arXiv:2610.13318cs.DCOct 2026

Manuscript Offprint

arXiv:2610.13318

SnapShare: Isolation-Preserving Deduplication for Serverless Snapshots

Leonid Kondrashov, Likun Zhang, André Filipe do Pilar de Jesus, Hans Pistor, Marco Cali, Riccardo Mancini, Rodrigo Bruno, Dmitrii Ustiugov

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Leonid Kondrashov

NTU Singapore

Singapore

Hans Pistor

AWS

United States

Likun Zhang

NTU Singapore

Singapore

Marco Cali

AWS

United Kingdom

André Filipe do Pilar de Jesus

Instituto Superior Técnico, University

of Lisbon

Portugal

Rodrigo Bruno

INESC-ID, Instituto Superior Técnico,

University of Lisbon

Portugal

Riccardo Mancini

AWS

United Kingdom

Abstract

The efficiency of serverless computing fundamentally depends on rapid function startup, a challenge increasingly addressed by restoring from virtual machine snapshots. However, because content deduplication techniques can open timing-channel attacks that leak sensitive tenant data, production platforms like AWS Lambda instead enforce strict, zero-sharing isolation between snapshots of different tenants. While secure, this isolation precludes the deduplication of common infrastructure components, wasting per-worker cache capacity and exacerbating cold-start latency through inefficient remote fetching. Our characterization reveals that non-sensitive, shareable infrastructure accounts for roughly 70% of a typical snapshot’s contents and, on average, about 50% of its working set.

We present SnapShare, a cluster-wide snapshot management system that co-designs storage and caching to exploit this commonality without compromising sensitive data isolation. SnapShare classifies a snapshot page as shareable only when its full content matches that of a page from a provider-approved source; any non-matching content is treated as isolated private content. Common infrastructure components are selectively deduplicated and pinned across the cluster's worker nodes, while private data remains strictly isolated and is eagerly fetched as part of the tracked working set, falling back to on-demand retrieval only for pages that fall outside it. Implemented as an extension to Knative, SnapShare reduces end-to-end tail request slowdowns by 10–29% compared to traditional working-set and chunk-based platforms. It also reduces remote storage requirements by 39% and local cache footprints by 38%, reducing network retrieval payloads and bounding worst-case fetch delays by 10×.

Dmitrii Ustiugov

NTU Singapore

Singapore

Figure

Figure 1. Snapshot restoration through a worker-local cache. A cold start fetches missing state from remote storage; duplicate copies of common infrastructure consume capacity in both tiers.

1 Introduction

Serverless elasticity is limited by how fast function instances are created during workload changes [8]. Platforms such as AWS Lambda [6] accelerate function instance cold starts by restoring virtual machines from snapshots. As Figure 1 illustrates, workers cache snapshot chunks locally and fetch missing ones from remote storage. The capacity of this cache determines how much state can be reused during a cold start. However, snapshots of different functions contain duplicate copies of common infrastructure data found in popular container and base VM images. Duplicate snapshot data wastes remote storage and displaces useful state from worker caches, forcing more cold starts and remote state retrieval.

Production platforms store VM snapshots encrypted in remote storage [6], but encryption alone does not prevent deduplication-induced disclosure: reusing a victim’s cached content can change an attacker’s retrieval time, revealing the presence of sensitive state or cryptographic keys [18, 42, 45, 50]. Production platforms thus take a conservative isolation approach that forces separate copies across security domains [3, 25], treating all snapshot state (including

Leonid Kondrashov, Likun Zhang, André Filipe do Pilar de Jesus, Hans Pistor, Marco Cali, Riccardo Mancini, Rodrigo Bruno, and Dmitrii Ustiugov

Figure

Figure 2. Mean source composition of full snapshots and cold-start working sets. Base-snapshot, rootfs, and container-image matches account for roughly 70% of nonzero full-snapshot content and 50% of working sets. Source composition is distinct from the duplicate-storage fraction in Figure 4a.

public infrastructure state) as private state (Figure 3a). While container-based platforms already share infrastructure artifacts to accelerate cold starts [20], guest memory snapshots complicate this opportunity by intermixing infrastructure bytes with customer-specific run-time state. Prior snapshot-deduplication systems, including SnapStore [36] and Medes [41] depicted in Figure 3b, demonstrate the snapshot deduplication potential but lack the critical capability to distinguish the state that is safe to share from the sensitive data. Instead, both systems treat all content as shareable, opening up surface for timing attacks.

Key Insights. To quantify the shareable infrastructure snapshot state, we compare and classify the snapshot pages across three reference sources accessed during execution, when running a mix of 17 vSwarm [5] functions written in Go, Python, and Node.js (methodology detailed in §4.1). We differentiate all remaining pages (Rest) and conservatively attribute them to the application itself. These sources include the pages found in the booted guest-OS (base) snapshot, VM root filesystem, and function container image. Also, we record the working set, i.e., the pages accessed after restoration and initial request execution. Figure 2 shows that infrastructure matches account for roughly 70% of a nonzero snapshot's content and 50% of the working set in a mix of workloads. These matches identify potential sharing opportunities, not automatic permission to share or bytes saved. Our detailed breakdown (§2.2) shows that base-snapshot and rootfs matches recur ubiquitously across functions, whereas image matches recur mainly among functions using the same language runtime.

Key contribution: page attribution that enables selective deduplication. We present SnapShare, 1^{1} a snapshot management system that co-designs remote storage and worker-local caching around a page-level sharing boundary. When a function is deployed, a snapshot is taken and an offline classifier compares the contents of each 4 KB snapshot page against provider-approved references. Only complete matches are Shared; every other page is Private (Figure 3c). A page loaded from an approved image but modified

Figure

(a) No cross-tenant sharing, as in AWS Lambda [14], REAP [47].

Figure

(b) Unrestricted deduplication, as in Medes [41], SnapStore [36].

Figure

(c) SnapShare.

Figure 3. Snapshot sharing policies and their capacity cost. (a) Separate copies duplicate common infrastructure. (b) Unrestricted deduplication also shares private content. (c) SnapShare deduplicates approved reference content while retaining separate private content.

to contain application state stays private. The SnapShare classifier checks what the page contains at snapshot time; it does not assume that all pages loaded from an approved image remain shareable. Independently, deployment-time userfaultfd profiling identifies the Working Set for eager retrieval and the remaining Lazy pages.

Attribution exposes a useful, operator-controlled sharing boundary. The trusted operator approves reference content and acceptable disclosure of its use; private pages remain tenant-separated even when equal ( §2.3§2.3). Operators can exclude libraries or images, including in response to published CVEs. The source-recurrence study ( §2.2§2.2) explains why this remains useful: common base-snapshot and rootfs pages supply much of the reuse. With container-image sharing disabled, cache savings relative to the best safe baseline, Sabre [31], decline from 38% to 31% ( §4.3.1§4.3.1). Image sharing therefore provides an additional benefit, but is not required to obtain substantial savings.

SnapShare stores approved shared components once across snapshots and pins common components in worker caches according to operator policy. Private components remain

1^{1}We will release the code and the toolchain upon publication.

cacheable for reuse by their owning function, but retain tenant and function-version identity rather than being shared across tenants. Both storage and caches distinguish shared and private working-set files from shared and private lazy pages. During a cold start, the controller reuses resident shared components and eagerly fetches the missing private working set; the page-fault handler serves accesses outside the recorded working set on demand at 4 KB granularity. This avoids placing every initial page fetch on the critical path while preserving the sharing boundary. SnapShare builds on working-set coalescing and eager restoration from REAP [47] and FaaSnap [15]. Selective sharing adds capacity for more private working sets and avoids repeated infrastructure fetches on misses; the smaller payload also complements compression techniques such as Sabre [31].

We implement SnapShare atop vHive [47] and Firecracker [14], evaluating 17 vSwarm [5] functions and a workload driven by 700 Azure Functions [43] trace profiles. All evaluated systems use streaming compression. Relative to the tenant-isolated Sabre [31] baseline, which combines coalesced working-set retrieval with streaming compression, SnapShare reduces remote storage by 39% and cache footprint by 38% (§4.3.1). SnapShare reduces the geometric mean of per-function P99 request slowdowns by 29% versus the chunk-based baseline representative of a production AWS Lambda baseline [4] and 10% versus Sabre (§4.2). Its storage and cache footprints remain within 6% and 3% of the idealized unsafe, fully deduplicated baseline, which also shares all snapshot content.

Our contributions include:

  • A characterization study showing that common infrastructure accounts for approximately half of cold-start working sets, exposing substantial reuse opportunities even when private application state cannot be shared.

  • A page-attribution method that enables policy-controlled sharing through complete matches to approved reference content, with all other pages private by default.

  • A classification-driven storage and cache co-design delivering 39% lower remote-storage requirements and 38% smaller cache footprints than Sabre, with 10–29% lower aggregate tail request slowdown than safe baselines. Storage and cache footprints remain within 6% and 3% of unsafe fully deduplicated baseline, respectively. Even without container-image sharing, the system reduces cache footprint by 31% relative to Sabre [31].