Skip to main content

Btrfs Snapshot Deletion Gets Faster as Developers Tackle One of the Filesystem’s Biggest Pain Points

3 weeks 6 days ago
by George Whittaker

The Btrfs filesystem continues to receive significant performance tuning, and one of the latest areas of focus is snapshot deletion performance. While Btrfs snapshots have long been praised for their speed, flexibility, and efficient use of storage, deleting large numbers of snapshots has historically been one of the filesystem’s most resource-intensive operations.

Recent kernel development efforts are helping address that problem by improving metadata handling, reducing lock contention, and streamlining internal cleanup processes. The result is faster snapshot removal and less disruption on systems that rely heavily on snapshots for backups, rollbacks, and system recovery.

Why Snapshot Deletion Has Been Challenging

Btrfs is a copy-on-write (CoW) filesystem that stores data and metadata in a highly interconnected structure. This design enables many advanced features, including:

  • Instant snapshots
  • Subvolumes
  • Checksumming
  • Compression
  • Efficient data sharing between snapshots

However, the same architecture that makes snapshots so efficient to create can make them more complex to remove. When a snapshot is deleted, Btrfs must determine which blocks are still referenced by other snapshots and which can be safely reclaimed. On systems with many snapshots, this process can generate significant metadata activity.

Recent Performance Improvements

Developers have been working to reduce overhead associated with Btrfs metadata operations, which directly impacts snapshot cleanup performance.

Recent kernel updates include:

  • Reduced lock contention during extent tree operations
  • More efficient extent buffer traversal
  • Improved handling of internal filesystem structures
  • Reduced contention during metadata searches
  • General transaction and cleanup optimizations

These changes help the filesystem spend less time waiting on internal locks and more time performing actual cleanup work.

Less Impact During Cleanup Operations

One common complaint among Btrfs users has been elevated I/O activity during large snapshot deletion jobs.

On systems that maintain dozens, or even hundreds, of snapshots, cleanup operations could temporarily increase:

  • Disk activity
  • CPU usage
  • I/O wait times
  • Metadata processing workloads

Recent improvements are designed to make these operations less disruptive by reducing bottlenecks inside the filesystem's metadata management code.

For users running backup servers, NAS appliances, or snapshot-heavy desktop systems, these optimizations can improve overall responsiveness while cleanup tasks run in the background.

Go to Full Article
George Whittaker

NHS Prescribes Half a Million Copilot Licenses For Its Paperwork Headache

3 weeks 6 days ago
NHS England plans to roll out Microsoft Copilot to 505,000 clinicians and support staff after a 30,000-person pilot claimed the AI assistant saved users an average of 43 minutes a day on administrative work. The Register reports: The rollout won't happen overnight. NHS England said that each trust will receive a central allocation of licenses based on headcount, typically starting with around 2,000 Copilot seats, and that more than half a million staff are expected to have access by October 2026. The NHS has no shortage of administrative work to throw at the software. The rollout envisions Copilot helping with discharge paperwork, bed management, rota planning, meeting minutes, board papers, briefings, data analysis, and assorted HR, finance, and procurement tasks. NHS organizations will also receive access to Copilot Studio, Microsoft's toolkit for building custom AI agents. NHS England said trusts will be able to develop agents for tasks such as handling Freedom of Information requests, processing complaints, reducing helpdesk workloads, and assisting with financial analysis. A governance framework called Agent 365 will oversee the deployment of those systems.

Read more of this story at Slashdot.

BeauHD