lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <5008ea1dfc7a49babd670e94ce5dbda7@gin.de>
Date: Fri, 12 Sep 2025 14:20:13 +0000
From: "Richter, Rafael" <rafael.richter.extern@....de>
To: "linux-ext4@...r.kernel.org" <linux-ext4@...r.kernel.org>
Subject: ext4: slow unmount with large clean page cache; is fsfreeze→umount recommended?

Hi,

we consistently see slow unmounts (~6–8s) on ext4 after heavy buffered writes
(e.g., dd ~30 GiB) that grow the page cache. Same test on XFS unmounts <1s on
the same hardware, but we must stay on ext4.

Env:
  - Kernel: 6.6.36 (Yocto-based)
  - Device: SSD via mdraid (/dev/md0p1)
  - Mount: ext4 on /mnt/disk (defaults)

Repro:
  dd if=/dev/zero of=/mnt/disk/big.bin bs=1M count=30720 status=progress
  sync -f /mnt/disk
  time umount /mnt/disk      # ext4: ~6–8s

Observations:
  - Dirty/Writeback are ~0 before unmount.
  - `fsfreeze -f /mnt/disk` immediately before `umount` makes unmount very fast.
  - `mount -o remount,ro` before `umount` does NOT improve unmount time.

Questions:
  1) Is this unmount time expected on ext4 with a large *clean* page cache?
  2) Why is XFS unmount much faster here—any ext4-side reasons or regressions?
  3) Is `fsfreeze -f` → `umount` acceptable/recommended for shutdown on ext4?
     Any ext4/VFS options or per-filesystem methods to reduce unmount time?


Looking forward for an answer!

Thx,

Rafael

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ