Skip to content

perf(quickemu): enable TRIM/discard and detect-zeroes for qcow2 drives#1825

Merged
flexiondotorg merged 1 commit intomasterfrom
diskio
Jan 25, 2026
Merged

perf(quickemu): enable TRIM/discard and detect-zeroes for qcow2 drives#1825
flexiondotorg merged 1 commit intomasterfrom
diskio

Conversation

@flexiondotorg
Copy link
Member

Enabling discard=unmap passes guest TRIM requests through to the qcow2
layer, allowing automatic disk space reclamation as guests delete files,
while detect-zeroes=unmap converts zero-block writes into additional
discard operations for further space savings. This configuration mirrors
Proxmox VE's default settings, where it has proven stable across millions
of production VMs since QEMU 1.5.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • I have performed a self-review of my code

Signed-off-by: Martin Wimpress <martin@wimpress.org>
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@flexiondotorg flexiondotorg merged commit 76b29c6 into master Jan 25, 2026
4 of 5 checks passed
@flexiondotorg flexiondotorg deleted the diskio branch January 25, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant