Several of our Sprites sit at 64 to 90% io pressure (some) and 37 to 73% (full) all day, while the processes we run on them do very little I/O. Tracing writeback inside the guest points at the platform storage daemon rather than our workload.
Writeback by task (writeback_dirty_folio tracepoint, aggregated by task, 10-second windows):
- Sprite A, runtime 0.0.1-rc48:
juicefsdirtied 976 MB. - Sprite B, runtime 0.0.2:
sbddirtied 286 MB. - In the same windows, every other process in the guest together dirtied under 3 MB.
Block devices (/proc/diskstats, 30-second windows):
- Sprite B: nbd0 read 7.4 MB and wrote 0.4 MB, while vdb took 894 MB of writes.
- Sprite C: nbd0 read 46 MB, while vdb took 1,184 MB of writes.
- Sprite A: 2,893 MB written to vdb in 681,350 small writes.
- Sprite D, a light workload: 1.6 MB written to vdb, io pressure 0.1%.
What it does to a simple write. A 64 MB file written and fsynced:
- into a directory on nbd0: 41 seconds;
- into the root overlay: vdb moved about 25 times the file’s size;
- into the Sprite-local
/tmp: under a second, with no measurable rise on vdb.
Memory on the busy Sprites reads about 270 MB free of 16 GB, with about 5 GB of page cache.
This looks like the same symptom as Sprites fsync issues from February, with the daemon now identified as the writer.
- What is the storage daemon writing to vdb, and why does its volume follow the Sprite rather than the guest’s own I/O?
- Is there a setting, a Sprite class or a runtime layout that stops it?
We can share Sprite names privately if that helps.