obuilder icon indicating copy to clipboard operation
obuilder copied to clipboard

Extend macOS obuilder to support multi-user

Open tmcgilchrist opened this issue 2 years ago • 1 comments

Currently obuilder on macOS only supports a single user account, limiting the throughput on the macOS workers. Extending macOS obuilder to support multiple users should improve throughput and resource usage.

Things to consider:

  • homebrew assumes a single user install, extend the File system redirection to handle multiple users
  • macOS base images might need to be relocatable so they can be shared between users
  • opam root also needs to be sharable

Mark tried putting OPAMROOT on an obuilderfs mounted file system, unfortunately we see issues with opam installing software such as opam install dune and in some cases even opam init. He tested the macOS file system using https://github.com/pjd/pjdfstest and compared the results to a fuse-mounted file system. macOS directly failed 82 of the 8720 tests. When mounted through obuilderfs/macFuse approximately 3500 tests failed. https://ocamllabs.slack.com/archives/D02LTUAT74K/p1665657002246979

As macFuse doesn’t seem to be good enough other alternatives need to be investigated.

tmcgilchrist avatar Dec 13 '22 07:12 tmcgilchrist

This needs to be re-investigated based on using ZFS filesystem.

tmcgilchrist avatar Jun 04 '23 23:06 tmcgilchrist