Closed Dexus0 closed 1 year ago
Did you clear the disk cache with sync; sudo sysctl -w vm.drop_caches=3
before each invocation? With such short execution times, rmlint is probably CPU-bound, so paranoid mode can easily be faster. On the other hand, it tends to use much more memory. See the benchmarks here.
running with the command rm -I rmlint.* ; sync; sysctl -w vm.drop_caches=3; rmlint [-p]
(in a root shell) has made the times noticeably closer.
/home 10.9s => 9.1s
/Data-Disk 3.2s => 3.2s
In Data-Disk's case the results were rather volatile. I noted them done as the same but it did have times where it went lower than -p
ever did, it just didn't do it very consistently.
I don't think there's a problem here. The advantages and disadvantages of paranoid mode are covered well by the documentation, and the difference you've noted is very small with disk cache out of the picture.
I ran rmlint on 2 separate disks both of which kept showing a consistent speed up with the
-p
flag.Data-disk is an old hard disk drive I will note they all use btrfs.
It's rather counter intuitive that using the
-p
flag seems faster than the default