While testing latest bindfs I wanted to see if there were any differences, so:
- Create macos-trunk-arm64 sandbox
- Build sysutils/coreutils
- Time 'bmake' after depends has done.
Results:
original bindfs 1.17.7 --multithreaded
real 1m41.541s
user 1m15.336s
sys 1m16.597s
bindfs-1.18.3 --multithreaded
real 1m46.467s
user 1m16.200s
sys 1m23.400s
bindfs-1.18.3 not multithreaded
real 1m45.581s
user 1m15.562s
sys 1m21.857s
I was also curious to remember why I needed bindfs instead of using NFS mounts. To get /System mounted (which is the hot path due to lookups), I needed to also mount Preboot and Data, but after that was done the perf (despite nfsd being lower in top(1) while I was measuring compared to bindfs) was worse:
real 1m49.257s
user 1m12.550s
sys 1m39.673s
"upgrading" to macOS 27 made things a lot slower, so I had to do a bunch more tweaking.
first I did a bunch of testing where bindfs was being traced to see number of calls etc, this obviously had some probe effect.
this indicated that a lot of time was spent doing
readlink()calls for xcode due to/Applicationsvs/System/Volumes/Data/Applications, and also even theMacOSX15.5.sdk -> MacOSX.sdksymlink. I tweaked the configs to use the full paths, and also setCLANGBASE:summary
we're now at:
in bob's mount options, with:
in the sandbox setup, and
etc in mk.conf