Disk cache: cap the free-space reserve at 10 GB, skip encodes the limit refuses

The reserve the cache leaves free on its disk was max(2 GB, 5% of the
disk) (#2551). On a 4 TB disk with 190 GB free that is 200 GB, so a
cache set to 20 GB had a limit of 0: every write was refused, the cache
never held anything, and only a log warning said so.

The reserve is now clamp(5% of the disk, 2 GB, 10 GB). It is there to
keep the cache from filling the disk, not to keep a share of a large
disk free: 10 GB leaves the system room to work on any disk, a small
disk still keeps 2 GB, and a 100 GB disk keeps 5 GB as before. After
Effects has only a maximum cache size and no reserve; a clamp keeps
the floor for small disks, where a fixed 10 GB would take most of the
space.

Writes the limit refuses cost no work: DiskCache::accepts_writes (one
atomic read) is checked before a frame is converted (put_disk_frame)
and before frames and layers are compressed (put_frame, put_frame_f16,
put_layer). The frame workers spent about 8 ms per frame and 14 ms per
layer on encodes that were then refused. persist_missing returns at
once at limit 0 instead of converting the RAM frames on every idle pass.

Settings > Disk shows the limit in effect in MB under Maximum Disk
Cache Size, with a note when free disk space lowers it
(settings.disk.cacheLimit).
This commit is contained in:
vangel76 committed 2026-11-07 23:27:17 +01:00
1 parent 250e52cdc3
commit 4295717ca7
5 files changed
+288 -17

No files matched your search

+127 -12
View File
@@ -353,6 +353,8 @@ pub struct DiskCache {
failed: AtomicU64,
/// Source files looked at to check frame and layer entries ([`DiskCache::file_checks`]).
file_checks: AtomicU64,
/// Frame and layer entries compressed for a queued write ([`DiskCache::encodes`]).
encodes: AtomicU64,
tmp_counter: AtomicU64,
queue: Arc<(Mutex<Queue>, Condvar)>,
/// Layer buffers that took less than this to render are not written (ms).
@@ -396,6 +398,19 @@ fn checksum(data: &[u8]) -> u64 {
h
}
/// The least free space the disk cache leaves on its disk.
const MIN_DISK_RESERVE: u64 = 2 << 30;
/// The most free space the disk cache leaves on its disk: 5% of a large disk is far more than
/// the system needs to keep working (on a 4 TB disk it held a 20 GB cache at 0 with 190 GB free).
const MAX_DISK_RESERVE: u64 = 10 << 30;
/// The free space the disk cache leaves on a disk of `total` bytes: 5% of it, at least 2 GB and
/// at most 10 GB. It keeps the cache from filling the disk; the cache's size is the user's
/// Maximum Disk Cache Size (After Effects has that maximum and no reserve).
pub fn disk_reserve(total: u64) -> u64 {
(total / 20).clamp(MIN_DISK_RESERVE, MAX_DISK_RESERVE)
}
/// The platform's default disk cache folder.
pub fn default_folder() -> PathBuf {
let home = std::env::var_os("HOME").map(PathBuf::from);
@@ -433,6 +448,7 @@ impl DiskCache {
dropped: AtomicU64::new(0),
failed: AtomicU64::new(0),
file_checks: AtomicU64::new(0),
encodes: AtomicU64::new(0),
tmp_counter: AtomicU64::new(0),
queue: Arc::new((
Mutex::new(Queue {
@@ -519,13 +535,14 @@ impl DiskCache {
self.max_bytes().min(self.disk_cap.load(Ordering::Relaxed))
}
/// The cache's disk: `(total, available)` bytes, `None` = unknown. The cache leaves at least
/// 2 GB or 5% of the disk free, whichever is more (evicting when it must).
/// The cache's disk: `(total, available)` bytes, `None` = unknown. The cache leaves
/// [`disk_reserve`] free (5% of the disk, at least 2 GB and at most 10 GB), evicting when it
/// must.
pub fn set_disk_space(&self, space: Option<(u64, u64)>) {
let cap = match space {
// (a disk reported as 0 bytes, such as an automount map, is unknown)
Some((total, available)) if total > 0 => {
let reserve = (2u64 << 30).max(total / 20);
let reserve = disk_reserve(total);
let used = self.index.lock().map(|g| g.total()).unwrap_or_default();
// The cache's own files count as free: below the reserve it gives space back.
used.saturating_add(available).saturating_sub(reserve)
@@ -540,6 +557,25 @@ impl DiskCache {
self.evict();
}
/// Whether a write can be stored at all now: `false` while free disk space holds the limit
/// at 0. One atomic read, so frame and layer writes check it before they spend time
/// converting and compressing pixels that [`DiskCache::write_format`] would refuse anyway.
/// (Whether a given entry fits is known only once it is compressed: `write_format` decides.)
pub fn accepts_writes(&self) -> bool {
self.limit_bytes() > 0
}
/// Frame and layer entries compressed for writing so far (tests: a write refused up front
/// costs no encode).
pub fn encodes(&self) -> u64 {
self.encodes.load(Ordering::Relaxed)
}
/// Count one entry compressed for a queued write.
fn count_encode(&self) {
self.encodes.fetch_add(1, Ordering::Relaxed);
}
/// Layer buffers faster to render than this are not worth a disk write.
pub fn set_min_layer_ms(&self, ms: u64) {
self.min_layer_ms.store(ms, Ordering::Relaxed);
@@ -950,8 +986,9 @@ impl DiskCache {
/// Queue a half-float frame for writing (`width * height * 4` binary16 values) with the
/// source files it was made of. `true` when it is on disk or queued; `false` when refused
/// (wrong size, a full queue, files that can't be checked later: see [`EntryFiles::of`];
/// a file dropped after `since`, the [`DiskCache::drop_generation`] the render started at).
/// (wrong size, a full queue, no room on the disk, files that can't be checked later: see
/// [`EntryFiles::of`]; a file dropped after `since`, the [`DiskCache::drop_generation`] the
/// render started at).
#[allow(clippy::too_many_arguments)]
pub fn put_frame_f16(
&self,
@@ -967,8 +1004,16 @@ impl DiskCache {
return false;
}
let Some(files) = EntryFiles::of(files, virtual_id) else { return false };
if self.contains(Kind::Frame, key) {
return true;
}
// (no room on the disk: refused before the pixels are compressed)
if !self.accepts_writes() {
return false;
}
self.count_encode();
let payload = with_files(&files, encode_frame_f16(width, height, rgba));
self.contains(Kind::Frame, key) || self.enqueue_format(Kind::Frame, key, FORMAT_F16_FILES, payload, Some((&files, since)))
self.enqueue_format(Kind::Frame, key, FORMAT_F16_FILES, payload, Some((&files, since)))
}
/// Write a half-float frame synchronously (tests); a list that can't be stored is not.
@@ -980,16 +1025,25 @@ impl DiskCache {
/// Queue a frame for writing (8-bit premultiplied RGBA, `width * height * 4` bytes) with the
/// source files it was made of. `true` when it is on disk or queued; `false` when refused
/// (wrong size, a full queue, files that can't be checked later: see [`EntryFiles::of`];
/// a file dropped after `since`, the [`DiskCache::drop_generation`] the render started at).
/// (wrong size, a full queue, no room on the disk, files that can't be checked later: see
/// [`EntryFiles::of`]; a file dropped after `since`, the [`DiskCache::drop_generation`] the
/// render started at).
#[allow(clippy::too_many_arguments)]
pub fn put_frame(&self, key: u128, width: u32, height: u32, rgba: &[u8], files: &ReadFiles, virtual_id: Option<VirtualFileId<'_>>, since: u64) -> bool {
if rgba.len() as u64 != width as u64 * height as u64 * 4 {
return false;
}
let Some(files) = EntryFiles::of(files, virtual_id) else { return false };
if self.contains(Kind::Frame, key) {
return true;
}
// (no room on the disk: refused before the pixels are compressed)
if !self.accepts_writes() {
return false;
}
self.count_encode();
let payload = with_files(&files, encode_frame(width, height, rgba));
self.contains(Kind::Frame, key) || self.enqueue_format(Kind::Frame, key, FORMAT_RGBA8_FILES, payload, Some((&files, since)))
self.enqueue_format(Kind::Frame, key, FORMAT_RGBA8_FILES, payload, Some((&files, since)))
}
/// A layer buffer (key: [`layer_disk_key`]) whose source files are unchanged, with those
@@ -1005,10 +1059,12 @@ impl DiskCache {
/// when one of them was dropped after `since`, the [`DiskCache::drop_generation`] its render
/// started at.
pub fn put_layer(&self, key: u128, buf: &Buf, files: &EntryFiles, since: u64) {
if self.contains(Kind::Layer, key) {
// (no room on the disk: refused before the buffer is compressed)
if self.contains(Kind::Layer, key) || !self.accepts_writes() {
return;
}
let _ = self.enqueue_format(Kind::Layer, key, FORMAT_LAYER_FILES, with_files(files, encode_layer(buf)), Some((files, since)));
self.count_encode();
let _ =self.enqueue_format(Kind::Layer, key, FORMAT_LAYER_FILES, with_files(files, encode_layer(buf)), Some((files, since)));
}
/// Write a layer buffer synchronously (tests); a list that can't be stored is not.
@@ -1785,7 +1841,8 @@ mod tests {
// A disk reported as 0 bytes is unknown.
dc.set_disk_space(Some((0, 0)));
assert_eq!(dc.stats().limit_bytes, 1 << 30);
// 100 GB disk, 5 GB reserved, exactly 5 GB free: the cache may not grow.
// 100 GB disk, 5 GB reserved (5%, between the 2 GB floor and the 10 GB cap), exactly
// 5 GB free: the cache may not grow.
dc.set_disk_space(Some((100 << 30, 5 << 30)));
let st = dc.stats();
assert_eq!((st.max_bytes, st.limit_bytes), (1 << 30, used));
@@ -1804,6 +1861,64 @@ mod tests {
let _ = std::fs::remove_dir_all(&dir);
}
/// The reserve is 5% of the disk, at least 2 GB and at most 10 GB: a large disk with plenty
/// free keeps the user's size. (A 4 TB disk with 190 GB free reserved 200 GB, held a 20 GB
/// cache at 0, and every write was refused.)
#[test]
fn a_large_disk_reserves_at_most_ten_gb() {
const GB: u64 = 1 << 30;
assert_eq!(disk_reserve(4096 * GB), 10 * GB);
assert_eq!(disk_reserve(100 * GB), 5 * GB);
assert_eq!(disk_reserve(32 * GB), 2 * GB);
assert_eq!(disk_reserve(1), 2 * GB);
let dir = tmpdir("space-large");
let dc = DiskCache::open(&dir, 20 * GB).unwrap();
dc.set_disk_space(Some((4096 * GB, 190 * GB)));
let st = dc.stats();
assert_eq!((st.max_bytes, st.limit_bytes), (20 * GB, 20 * GB), "{st:?}");
assert!(dc.accepts_writes());
// Just above the 10 GB reserve: the cache may use what is left above it.
dc.set_disk_space(Some((4096 * GB, 15 * GB)));
assert_eq!(dc.stats().limit_bytes, 5 * GB);
// A small disk still keeps 2 GB free: 3 GB free leaves 1 GB for the cache.
dc.set_disk_space(Some((32 * GB, 3 * GB)));
assert_eq!(dc.stats().limit_bytes, GB);
// Below the floor: nothing.
dc.set_disk_space(Some((32 * GB, GB)));
assert_eq!(dc.stats().limit_bytes, 0);
assert!(!dc.accepts_writes());
let _ = std::fs::remove_dir_all(&dir);
}
/// A write the free disk space refuses is refused before its pixels are compressed: the
/// frame workers spent about 8 ms per frame and 14 ms per layer encoding entries that were
/// then refused (`limit_bytes=0`).
#[test]
fn no_encode_while_the_disk_has_no_room() {
const GB: u64 = 1 << 30;
let dir = tmpdir("space-no-encode");
let dc = DiskCache::open(&dir, 20 * GB).unwrap();
// 4 TB disk, 1 GB free: under the 10 GB reserve, the limit is 0.
dc.set_disk_space(Some((4096 * GB, GB)));
assert_eq!(dc.stats().limit_bytes, 0);
let rgba = vec![7u8; 16 * 16 * 4];
assert!(!dc.put_frame(1, 16, 16, &rgba, &ReadFiles::default(), None, 0), "refused");
assert!(!dc.put_frame_f16(2, 16, 16, &[0x3c00u16; 16 * 16 * 4], &ReadFiles::default(), None, 0), "refused");
dc.put_layer(3, &buf(3, 16, 16), &EntryFiles::default(), 0);
dc.flush();
assert_eq!(dc.encodes(), 0, "nothing compressed");
assert_eq!(dc.stats().entries, 0);
// Room again: the same writes are compressed and stored.
dc.set_disk_space(Some((4096 * GB, 500 * GB)));
assert!(dc.put_frame(1, 16, 16, &rgba, &ReadFiles::default(), None, 0));
assert!(dc.put_frame_f16(2, 16, 16, &[0x3c00u16; 16 * 16 * 4], &ReadFiles::default(), None, 0));
dc.put_layer(3, &buf(3, 16, 16), &EntryFiles::default(), 0);
dc.flush();
assert_eq!(dc.encodes(), 3);
assert_eq!(dc.stats().entries, 3);
let _ = std::fs::remove_dir_all(&dir);
}
#[test]
fn failed_writes_are_counted() {
let dir = tmpdir("failed");
+10 -3
View File
@@ -477,9 +477,10 @@ fn frame_disk_key(keys: &ContentKeys, project: &Project, key: &FrameKey, opts_ha
/// Queue `img` for the disk cache under `dk` with the source files it was made of. `false` when
/// refused: a GPU frame (no CPU pixels), files that can't be checked when the entry is read
/// (an incomplete list, #3184: the frame is shown, not stored), a full queue, a file dropped
/// (File ▸ Reload Footage) after `since`, the drop generation its render started at.
/// (File ▸ Reload Footage) after `since`, the drop generation its render started at; no room on
/// the disk (checked first: the conversion and compression would be wasted).
fn put_disk_frame(dc: &DiskCache, dk: u128, img: &FrameImage, files: &ReadFiles, virtual_id: Option<disk_cache::VirtualFileId<'_>>, since: u64) -> bool {
if !files.is_complete() {
if !files.is_complete() || !dc.accepts_writes() {
return false;
}
match img {
@@ -1057,7 +1058,13 @@ impl Frames {
let oh = opts_hash(opts);
self.note_disk_series(base.comp, base.scale, base.view ^ oh);
self.carry_disk(src);
let known = self.content_keys.lock().unwrap_or_else(std::sync::PoisonError::into_inner).get(&(base.revision, base.comp)).copied();
// Free disk space holds the cache at 0: nothing would be stored, so nothing is converted
// (a refusal doesn't count as a try, so every idle pass would convert them all again).
// A later idle pass writes them once there is room.
if !dc.accepts_writes() {
return false;
}
let known =self.content_keys.lock().unwrap_or_else(std::sync::PoisonError::into_inner).get(&(base.revision, base.comp)).copied();
let Some(content) = known else {
self.request_content_key(src.project.clone(), base.revision, base.comp);
return true;
+65
View File
@@ -1732,6 +1732,71 @@ fn ram_frames_missing_on_disk_are_written_as(half: bool) {
let _ = std::fs::remove_dir_all(&dir);
}
/// While free disk space holds the disk cache at 0, frames are not converted or compressed for
/// it (the frame workers spent about 8 ms per frame on writes that were then refused), and idle
/// passes don't keep converting the RAM frames; with room again they are written.
#[test]
fn no_frame_is_encoded_while_the_disk_has_no_room() {
use effectcraft_engine::Session;
use serde_json::json;
const GB: u64 = 1 << 30;
let dir = std::env::temp_dir().join(format!("ec-persist-full-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
let disk = DiskCache::open(&dir, 20 * GB).unwrap();
// 4 TB disk, 1 GB free: under the 10 GB reserve.
disk.set_disk_space(Some((4096 * GB, GB)));
assert!(!disk.accepts_writes());
// The frame worker's write: refused up front.
assert!(!put_disk_frame(&disk, 1, &img(), &ReadFiles::default(), None, disk.drop_generation()));
let mut s = Session::default();
let cid = ItemId(s.execute("comp.new", json!({"name": "A", "width": 8, "height": 8, "duration": 1})).unwrap()["comp"].as_u64().unwrap());
s.execute("layer.newSolid", json!({})).unwrap();
let src = RenderSource {
project: s.project.clone(),
footage: Arc::new(effectcraft_engine::render::NoFootage),
expr: None,
layer_cache: Arc::default(),
gpu: None,
gpu_display: false,
disk: Some(disk.clone()),
};
let f = Frames::default();
let series =
FrameKey { revision: 1, content: f.content_of(&src.project, 1, cid), comp: cid.0, opts: opts_hash(&RenderOpts::default()) ^ 1, ..key(0, 0, 0) };
for fr in 0..10 {
f.cache.lock().unwrap().insert_with(FrameKey { frame: fr, ..series }, img(), Some(Arc::default()), Some(DiskSince::of(&disk, disk.drop_generation())));
}
// Idle passes: nothing to do, nothing converted.
for _ in 0..20 {
assert!(!f.persist_missing(&src, &series, &RenderOpts::default()), "no idle passes while there is no room");
std::thread::sleep(std::time::Duration::from_millis(2));
}
disk.flush();
assert!(f.persisted.lock().unwrap().is_empty());
assert_eq!((disk.encodes(), disk.stats().entries), (0, 0));
// Room again: the RAM frames are written.
disk.set_disk_space(Some((4096 * GB, 500 * GB)));
let on_disk = |fr: i64| {
disk.contains(
disk_cache::Kind::Frame,
frame_disk_key(&f.content_keys, &src.project, &FrameKey { frame: fr, ..series }, opts_hash(&RenderOpts::default())),
)
};
let mut written = false;
for _ in 0..1000 {
f.persist_missing(&src, &series, &RenderOpts::default());
disk.flush();
if (0..10).all(on_disk) && f.persisted.lock().unwrap().is_empty() {
written = true;
break;
}
std::thread::sleep(std::time::Duration::from_millis(5));
}
assert!(written, "every RAM frame written once there is room");
assert_eq!(disk.encodes(), 10);
let _ = std::fs::remove_dir_all(&dir);
}
/// Audio changes pixels only where something draws it: a clip's Audio Levels, audio effects and
/// Audio switch keep every frame, in RAM and on disk, until a waveform picks the clip (on another
/// layer, on itself, or through a precomp of it); then the frames of the reader render again.
+81 -1
View File
@@ -5,7 +5,8 @@
//!
//! Automation ids: `settings.page.<id>`, `settings.<key>` (e.g. `settings.general.undoLevels`),
//! `settings.labels.<n>.name` / `.color`, `settings.button.<label>`, `settings.ok`,
//! `settings.cancel`, `settings.previous`, `settings.next`.
//! `settings.cancel`, `settings.previous`, `settings.next`, `settings.disk.cacheLimit` (the disk
//! cache's limit in effect, a label).
use crate::i18n::{tr, tr_args};
use effectcraft_engine::prefs::{APPEARANCE_MODES, DARK_THEMES, Item, Kind, LIGHT_THEMES, Page, pages};
@@ -234,11 +235,46 @@ fn page_ui(app: &mut EffectcraftApp, ui: &mut egui::Ui, page: &Page, cur: &Value
};
reg(app, &id, &r, label);
}
if key == "disk.diskCacheMaxGb" {
disk_cache_limit_ui(app, ui, t);
}
}
}
}
}
/// Settings ▸ Disk, under Maximum Disk Cache Size: the limit in effect, and why it is lower when
/// free disk space holds the cache below the setting (it never fills the disk). Automation id
/// `settings.disk.cacheLimit`. Nothing without an open disk cache.
fn disk_cache_limit_ui(app: &mut EffectcraftApp, ui: &mut egui::Ui, t: &Tokens) {
let Some(dc) = app.session.disk_cache.clone() else { return };
// (two atomic reads: drawn every frame)
let (max, limit) = (dc.max_bytes(), dc.limit_bytes());
let lines = disk_cache_limit_lines(max, limit);
let color = if limit < max { t.warning } else { t.text_dim };
let r = ui
.vertical(|ui| {
for line in &lines {
ui.label(RichText::new(line).color(color));
}
})
.response;
app.auto.add("settings.disk.cacheLimit", r.rect, &lines.join(" "));
}
/// The lines [`disk_cache_limit_ui`] shows for a disk cache of `max` bytes (Maximum Disk Cache
/// Size) whose limit in effect is `limit` bytes.
pub(crate) fn disk_cache_limit_lines(max: u64, limit: u64) -> Vec<String> {
let mut lines = vec![tr_args("Disk cache limit in effect: {} MB", &[&(limit.min(max) >> 20)])];
if limit < max {
lines.push(tr("Limited by free disk space: EffectCraft keeps 5% of the disk free (at least 2 GB, at most 10 GB).").to_string());
if limit == 0 {
lines.push(tr("No room left: nothing is written to the disk cache until disk space is freed.").to_string());
}
}
lines
}
/// A small EffectCraft window painted with theme `kind`'s tokens: the Tools bar, the Project
/// panel, the Composition panel, the Preview and Properties column and the Timeline with its
/// layer bars.
@@ -1220,4 +1256,48 @@ mod tests {
}
assert!(actions.is_empty());
}
/// Settings ▸ Disk shows the disk cache's limit in effect under Maximum Disk Cache Size, and
/// says when free disk space holds it lower (a 20 GB cache held at 0 showed nothing).
#[test]
fn the_disk_page_shows_the_limit_free_space_allows() {
use effectcraft_engine::render::disk_cache::DiskCache;
const GB: u64 = 1 << 30;
let dir = std::env::temp_dir().join(format!("ec-settings-disk-limit-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
let mut app = EffectcraftApp::new(effectcraft_engine::Session::default());
let dc = DiskCache::open(&dir, 20 * GB).unwrap();
app.session.disk_cache = Some(dc.clone());
let page = pages().into_iter().find(|p| p.id == "disk").unwrap();
let shown = |app: &mut EffectcraftApp| {
// (one frame's elements: `find` returns the first match)
app.auto = Default::default();
let ctx = egui::Context::default();
let (tokens, cur) = (app.tokens, serde_json::to_value(&app.session.prefs).unwrap());
let mut actions = vec![];
let mut output = ctx.run_ui(
egui::RawInput { screen_rect: Some(egui::Rect::from_min_size(egui::Pos2::ZERO, vec2(900.0, 1200.0))), ..Default::default() },
|ui| page_ui(app, ui, &page, &cur, &tokens, &mut actions),
);
output.textures_delta.clear();
app.auto.find("settings.disk.cacheLimit").map(|e| e.label.clone())
};
// A 4 TB disk with 190 GB free: the 20 GB setting holds.
dc.set_disk_space(Some((4096 * GB, 190 * GB)));
let label = shown(&mut app).expect("the limit is shown");
assert!(label.contains("20480 MB") && !label.contains("free disk space"), "{label}");
// 3 GB free on a 4 TB disk: 10 GB stay free, nothing is left for the cache.
dc.set_disk_space(Some((4096 * GB, 3 * GB)));
let label = shown(&mut app).unwrap();
assert!(label.contains(": 0 MB") && label.contains("Limited by free disk space") && label.contains("No room left"), "{label}");
// 12 GB free: 2 GB for the cache.
dc.set_disk_space(Some((4096 * GB, 12 * GB)));
let label = shown(&mut app).unwrap();
assert!(label.contains("2048 MB") && label.contains("Limited by free disk space") && !label.contains("No room left"), "{label}");
// No disk cache: no line.
app.session.disk_cache = None;
assert!(shown(&mut app).is_none());
drop(dc);
let _ = std::fs::remove_dir_all(&dir);
}
}
+5 -1
View File
@@ -142,7 +142,11 @@ Commands (CLI, MCP, control channel):
it supports it)
- `disk.diskCacheEnabled`, `disk.diskCacheMaxGb`, `disk.diskCacheFolder`: the persistent disk
cache of processed layers and frames (in the browser: frames in the Origin Private File System,
at most half the origin's quota; the folder setting does not apply there). The Disk page also
at most half the origin's quota; the folder setting does not apply there). On the desktop the
cache never fills its disk: it leaves 5% of the disk free, at least 2 GB and at most 10 GB, and
is smaller than `disk.diskCacheMaxGb` when free space requires it. The Disk page shows the limit
in effect in MB under Maximum Disk Cache Size, with a note when free disk space lowers it (at 0
nothing is written, and frames and layers are not compressed for it). The Disk page also
shows **Browser Storage** in the web app: usage and quota, persistent storage, Clear buttons
(`storage.info` / `storage.persist` / `storage.clear`, see [web.md](web.md))
- `disk.mediaCacheFolder`: audio waveform summaries kept between sessions (`Peaks/`)