Deepseek r1 says this
-
APFS Global Kernel Lock (vfs-layer lock):
- Not fully bypassed: Even with a RAM disk formatted as APFS, macOS's global I/O lock still technically exists. However, because RAM disk operations are orders of magnitude faster than disk I/O, contention for this lock is drastically reduced. This makes the lock effectively irrelevant for most workflows, as operations complete before significant contention occurs.
- Not the same as Linux: macOS lacks a true
tmpfs
equivalent, so while a RAM disk helps, it’s not as seamless as Linux’s in-memory filesystem.
-
RAM Disk Format:
- macOS RAM disks can be formatted as HFS+ or APFS. While APFS is the default, formatting as HFS+ might slightly reduce lock contention (though benchmarks vary). Either way, the speed of RAM mitigates lock-related bottlenecks.