ffs icon indicating copy to clipboard operation
ffs copied to clipboard

Faster testing and benchmarking

Open mgree opened this issue 2 years ago • 1 comments

We have a lot of sleep calls that could be faster.

Write a tool to detect when a mount is ready. (Current benchmarks do this by busy looping on umount.) Use its exit status to determine when it's okay to proceed on the mount and proceed checking that process has completed.

It'll also be useful to have a way to pad a few milliseconds on, i.e., unmount means the process may not be done yet. The current utils/timeout script is okay, but (a) it's noisy, and (b) it'd be nice to not fix it on ffs when we start. Maybe a waitfor command that takes a time limit before killing the process?

mgree avatar Jul 29 '21 15:07 mgree

One possibility: spin on the presence of an xattr on the root directory. The attribute will appear as soon as the mount is live.

mgree avatar Oct 01 '21 13:10 mgree