#14461·talos

periodic trim disrupts cluster workloads

Author: uhthomasCreated Sep 25, 2026Updated Sep 25, 2026

Bug Report

What happened? What did you expect?

I enabled periodic trim, and unfortunately it causes huge latency spikes. It really shouldn't do. These are SSDs with PLP (Intel S3700, and PM983). I tried reducing the max discard request size to 64MiB, but it didn't help. The clusters are not really that busy, and it was bad enough to cause etcd leader elections.

I noticed that CONFIG_BLK_WBT is not configured in the Talos kernel, and that's supposed to help prevent discards from impacting other workloads.

https://docs.siderolabs.com/talos/v1.14/configure-your-talos-cluster/storage-and-disk-management/filesystem-trim

The following graphs show etcd latency spikes in two different clusters with period trim enabled. A mix of enterprise SSDs.

ImageImageImageImageImage

If it helps, these are also using disk encryption, and so discards are enabled on both the disks and the luks volumes.

Steps to reproduce

Enable periodic trimming and observe large etcd latency spikes.

Logs and diagnostics

172.16.0.110: 2026-09-24T12:13:55.743Z INFO trimmed volume {"component": "controller-runtime", "controller": "block.VolumeTrimController", "volume": "EPHEMERAL", "target": "/var", "trimmed": "959 GB"}
172.16.0.120: 2026-09-24T18:31:56.394Z INFO trimmed volume {"component": "controller-runtime", "controller": "block.VolumeTrimController", "volume": "EPHEMERAL", "target": "/var", "trimmed": "398 GB"}
172.16.0.130: 2026-09-24T07:36:35.783Z INFO trimmed volume {"component": "controller-runtime", "controller": "block.VolumeTrimController", "volume": "EPHEMERAL", "target": "/var", "trimmed": "398 GB"}
10.0.10.120: 2026-09-24T23:09:53.671Z INFO trimmed volume {"component": "controller-runtime", "controller": "block.VolumeTrimController", "volume": "EPHEMERAL", "target": "/var", "trimmed": "398 GB"}

Environment

  • Talos version: v1.14.1
  • Kubernetes version (if relevant): v1.36.2
  • Platform (hardware model, hypervisor, or cloud): bare metal
  • System extensions and relevant configuration: N/A
  • Recent changes and last known working version (if known): N/A