Advertisement
teknoraver

ext4 discard writeback

Dec 17th, 2020
516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. # data=writeback
  2. root@debian64:~# dmesg |grep EXT4
  3. [ 0.299135] EXT4-fs (vda1): mounted filesystem with writeback data mode. Opts: (null)
  4. [ 0.516813] EXT4-fs (vda1): re-mounted. Opts: discard
  5. root@debian64:~# time rm -rf linux-5.10
  6.  
  7. real 0m3.736s
  8. user 0m0.078s
  9. sys 0m0.830s
  10. root@debian64:~# tar xf linux-5.10.tar.xz ; sync
  11. root@debian64:~# mount / -oremount,nodiscard
  12. [ 1931.165795] EXT4-fs (vda1): re-mounted. Opts: discard,nodiscard
  13. root@debian64:~# time rm -rf linux-5.10
  14.  
  15. real 0m0.424s
  16. user 0m0.040s
  17. sys 0m0.385s
  18.  
  19. # data=ordered
  20. root@debian64:~# dmesg |grep EXT4
  21. [ 0.245088] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null)
  22. [ 0.436585] EXT4-fs (vda1): re-mounted. Opts: discard
  23. root@debian64:~# tar xf linux-5.10.tar.xz ; sync
  24. root@debian64:~# time rm -rf linux-5.10
  25.  
  26. real 0m0.550s
  27. user 0m0.061s
  28. sys 0m0.393s
  29. root@debian64:~# mount / -oremount,nodiscard
  30. [ 43.612304] EXT4-fs (vda1): re-mounted. Opts: discard,nodiscard
  31. root@debian64:~# tar xf linux-5.10.tar.xz ; sync
  32. root@debian64:~# time rm -rf linux-5.10
  33.  
  34. real 0m0.451s
  35. user 0m0.010s
  36. sys 0m0.421s
  37. root@debian64:~#
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement