ssd_trim trims the same filesystem once per bind mount
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 25/100
Línea de trabajo
Start with emhttp/plugins/dynamix/scripts/ssd_trim, especially xfs_btrfs_trim(), and inspect how findmnt -lnt btrfs,xfs -J results are filtered and passed to fstrim. The issue describes selecting one mount per MAJ:MIN and preferring FSROOT == "/"; PR #2797 is already open. Done means each filesystem is trimmed once through its root mount when available.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
The scheduled SSD trim (emhttp/plugins/dynamix/scripts/ssd_trim, xfs_btrfs_trim()) runs fstrim once per mount of a filesystem instead of once per filesystem. Every bind mount of a pool is trimmed again, and since fstrim always trims the whole filesystem, a pool with three bind mounts is trimmed four times in a row.
Why it happens
The mount list comes from findmnt -lnt btrfs,xfs -J, filtered on .source | test("^/dev/"). A bind mount of a directory on the pool has a source like /dev/nvme0n1p1[/docker], which matches too.
On a 7.4.0-rc.1 server with a 4-device btrfs cache pool, findmnt lists the pool four times:
/mnt/cache 0:55 /
/var/lib/docker 0:55 /docker
<plugin bind mount> 0:55 /appdata/...
<plugin bind mount> 0:55 /appdata/...
/var/lib/docker alone is enough to get two passes on any server that uses a Docker directory on a pool.
Impact
On this server one pass over the cache pool takes about 3.5 hours (the 05:00 run reached the second mount at 08:33), so the whole run would last over 14 hours and overlap with normal use. The array was stopped during it, and the running fstrim held a bind mount, so umount /mnt/cache failed with "target is busy" until it was lazily unmounted by hand.
Expected
Each filesystem is trimmed once, preferably through the mount of its root.
Fix
Select MAJ:MIN and FSROOT from findmnt, keep one entry per MAJ:MIN, and prefer FSROOT == "/". PR: #2797
- Lenguaje dominante
- PHP
- Estrellas
- 266
- Forks
- 116
- Merge medio
- 1 d 5 h
- PR fusionados (30 d)
- 4
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de unraid/webgui
-
CPU core labels missing for Low-Power E-cores on hybrid Intel CPUs (Arrow Lake-H) — get_intel_core_types() ignores /sys/devices/cpu_lowpowerPosiblemente ocupada @dgongut la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
unraid/webgui#2785 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
rsyslog_config: "Mirror syslog to flash" rule is appended again on every Apply — each line written to the boot device N timesPosiblemente ocupada @junkerderprovinz la tomó hace 38 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Los mantenedores suelen responder en 1 día
-
Notification e-mails are sent without Date and Message-ID headersPosiblemente ocupada @nofuturekid la tomó hace 56 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
unraid/webgui#2781 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Static asset caching misses the Connect plugin's hashed bundle: ~144 JS chunks (8.5 MB) revalidate on every page loadPosiblemente ocupada @davidcoulson la tomó hace 54 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
Todos los issues de unraid/webgui
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
sonata-project/SonataAdminBundle#8426 ·
Los mantenedores suelen responder en 1 día
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
erkamyaman/rust-anything#942 ·
Los mantenedores suelen responder en 1 día
-
area/plugins area/tests type/enhancement when/later
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día