quick-caravan-31864
10/05/2023, 2:18 PM2.16.0
. We've been experimenting with using a "shared" cache by having multiple people point to the same location on a shared dev machine, and lmdb_store is getting > 200GB. Previous answers I've seen are "pantsd should garbage-collect", and it seems to be not doing that? Of course I can either configure the cache to be bigger, or wipe lmdb_store periodically, but thought it would be good to chase down why the cache size isn't being bounded over time. Thanks!enough-analyst-54434
10/05/2023, 2:51 PMWe've been experimenting with using a "shared" cache by having multiple people point to the same location on a shared dev machineWhich leads me to question this. Are users all ssh'd in with the same account or is the dev machine lmdb store somehow shared via NFS or sshfs or something like that?
quick-caravan-31864
10/05/2023, 3:29 PM[GLOBAL] local_store_dir=/opt/some/place
in pants.toml. So everyone has their own pantsd running, but a common lmbd_storeenough-analyst-54434
10/05/2023, 4:16 PMquick-caravan-31864
10/05/2023, 4:16 PMquick-caravan-31864
10/05/2023, 4:17 PMenough-analyst-54434
10/05/2023, 4:17 PMquick-caravan-31864
10/05/2023, 4:17 PMquick-caravan-31864
10/05/2023, 4:17 PMenough-analyst-54434
10/05/2023, 4:17 PMenough-analyst-54434
10/05/2023, 4:19 PMenough-analyst-54434
10/05/2023, 4:22 PM.pants.d/pants.log
(by default) in any repo where you run pants
.enough-analyst-54434
10/05/2023, 4:23 PMquick-caravan-31864
10/05/2023, 4:23 PMenough-analyst-54434
10/05/2023, 4:24 PMenough-analyst-54434
10/05/2023, 4:25 PMenough-analyst-54434
10/05/2023, 4:26 PMenough-analyst-54434
10/05/2023, 4:27 PMquick-caravan-31864
10/05/2023, 4:28 PMquick-caravan-31864
10/05/2023, 4:28 PMenough-analyst-54434
10/05/2023, 4:30 PMquick-caravan-31864
10/05/2023, 4:31 PMenough-analyst-54434
10/05/2023, 4:47 PMpants
with --keep-sandboxes=always
and check a few of those sandboxes out. The __run.sh
script will show the env vars used.enough-analyst-54434
10/05/2023, 4:50 PMenough-analyst-54434
10/05/2023, 4:51 PMenough-analyst-54434
10/05/2023, 4:54 PMenough-analyst-54434
10/05/2023, 5:02 PM09:53:39.53 [INFO] Extending leases
09:53:39.55 [INFO] Done extending leases
09:54:59.55 [INFO] Extending leases
09:54:59.56 [INFO] Done extending leases
So, if you do have long lived pantsds on the shared machine, you could have users bounce them every so often or cron that or something maybe.quick-caravan-31864
10/05/2023, 5:22 PMquick-caravan-31864
10/05/2023, 5:22 PMenough-analyst-54434
10/05/2023, 5:23 PM.a
, .so
, etc, but it would be interesting to know if those run afoul of non-reproducible builds in terms of internal file format ordering and embedded timestamps, etc.enough-analyst-54434
10/05/2023, 5:24 PMquick-caravan-31864
10/05/2023, 5:25 PMshell_command
makes a hermetic PATH with a _binary_shims directory, so there doesn't seem to be anything user-specific thereenough-analyst-54434
10/05/2023, 5:26 PMenough-analyst-54434
10/05/2023, 5:26 PMenough-analyst-54434
10/05/2023, 5:27 PMbrfs
tool (build result file system) that does allow you to poke around in an LMDB store fwiw. It's just not very friendly / pretty low level.enough-analyst-54434
10/05/2023, 5:28 PM