spkenv / spk

A Package Manager for high velocity software environments, built on spfs.
https://spkenv.dev
Apache License 2.0
40 stars 6 forks source link

spfs clean doesn't clean renders it cases it should be able to #1145

Open jrray opened 2 weeks ago

jrray commented 2 weeks ago

A situation has developed here where workstations are being used for overnight rendering but workstations are not configured to use spfs-fuse. Therefore workstations create spfs runtime for various users overnight, creating local renders for each user in the local spfs repo. By morning these jobs easily fill up the local disk.

Then, spfs clean during the day is only able to reclaim a small amount of space, depending on what the daytime user is doing on the workstation. In one case, there are three active runtimes, holding strong references to a number of spfs objects (payloads). These payloads exist in renders for numerous users (55). Although the only active runtimes on the workstation are from user A, renders for users B, C, ..., are not deleted.

It should be possible to also consider if user-specific renders are in use, and clean up renders for users that do not have any active runtimes.

rydrman commented 2 weeks ago

From the meeting today: