Replies: 1 comment
-
I also tried another disk usage analyzer (written in Rust) and the results are similar: Linux:
Linux with dropped caches:
MacOS:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From daily usage of MacOS it seemed to me that Gdu is much slower there than on Linux.
Today I finally tried to collect CPU profiles supporting that.
I ran the analysis on the same folder on both and the results are really quite different.
Linux needed only 1.3s o CPU time to scan 1.7GB and 100k files.
When the file-system caches were flushed, it still needed only 3 seconds.
On the other hand MacOS needed almost 7 seconds of CPU time (no caches flushed).
The Linux machine has KINGSTON OM8PCP3512F-AB SSD which should be almost twice slower than the Apple AP0512 SSD.
Both disks are encrypted (LUKS over LVM on Linux).
Also the Linux machine runs on already quite old AMD Ryzen 4700U (16 GB RAM).
The Apple is M2 Pro (32 GB RAM) from 2023.
From the CPU profile it seems that the slowness all goes to less performant syscall on MacOS.
Does anybody has an idea why is that? Could it be APFS so much slower than Ext4?
Beta Was this translation helpful? Give feedback.
All reactions