Hi all,

On 9/11/23 09:36, Alexander Kanavin via lists.yoctoproject.org wrote:
On Mon, 11 Sept 2023 at 06:22, Chen Qi via lists.yoctoproject.org
<[email protected]> wrote:

SSTATE_DIR and DL_DIR are writable. Sharing them among different builds
owned/controlled by the same user is OK, but sharing these writable
directories among different users does not seem to be a good idea.
You could consider using the PREMIRRORS and SSTATE_MIRRORS.

This is not accurate. SSTATE_DIR is designed to be shared in a
read-write fashion via NFS or other over the network filesystem
(between users on the same machine is also ok), and is heavily used
that way in Yocto CI.


But sharing the same SSTATE_DIR with people running cleansstate or manually removing entries is an issue as far as I remember. I don't know if mount allows to mount file systems with read and write but not erase permissions?

On a separate note, we've setup NFS donwload cache for Buildroot and Yocto and for one (maybe both?) we had an issue with filelocks. Basically we had one disk on one of the build servers which we exposed through NFS share to other build servers and users. However, the filelocks weren't respected when one was set in NFS (or ext4) and checked against in ext4 (or NFS respectively). So I suggest to be mindful about this when setting up your infrastructure and use the same FS across all users (you can mount a local FS with NFS as far as I remember).

I haven't done that yet but I believe one is supposed to share the hashequiv server too for max reusability? I am unfortunately not familiar with it but just wanted to raise this.

Cheers,
Quentin

Sharing DL_DIR is less important as it is not that large, and
downloading does not slow down the builds that much compared to the
the actual build (and only needs to happen once).

Li, your understanding is more or less completely correct. The
difficulties are mostly in scaling up, where you might hit the limits
of how many users can be served at the same time.

Alex





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60968): https://lists.yoctoproject.org/g/yocto/message/60968
Mute This Topic: https://lists.yoctoproject.org/mt/101284965/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to