You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to v0.4.0, I started to have sccache-dist being sluggish (~5 min to complete 10% of mozilla-central's configure when a full build without cache is ~4min).
After quick investigation, it is on server side. Trying to CTRL+C the sccache-dist server process results in:
long time before processes are killed
unable to restart the process after with:
sccache-dist: error: Overlay builder failed to start
sccache-dist: caused by: Failed to clean up builder directory
sccache-dist: caused by: failed to remove directory `XXX/sccache/build`
sccache-dist: caused by: Device or resource busy (os error 16)
A look at mount shows 1052 instances of mounted overlay similar to:
overlay on XXX/build/builds/746755680e580184e658dbc0c5af280e31b72bf026f2d64adb215757f9099101-769/target type overlay (rw,relatime,lowerdir=XXX/sccache/build/toolchains/746755680e5
80184e658dbc0c5af280e31b72bf026f2d64adb215757f9099101,upperdir=XXX/sccache/build/builds/746755680e580184e658dbc0c5af280e31b72bf026f2d64adb215757f9099101-769/upper,workdir=XXX/sccache/buil
d/builds/746755680e580184e658dbc0c5af280e31b72bf026f2d64adb215757f9099101-769/work)
No, not aware. Suspicious that #1628 might have caused the issue, it's the only thing that modified code in the vincinity.
When I get more time I can try and bisect to verify, but so far, going back to v0.4.0.pre.10 (before 20a08fc) seems to be enough
My guess is something in 20a08fc broke how overlay are unmounted, and this is visible via the error above, because the same way my manual rm -fr fails due to EBUSY on the mount point, fs::remote_all_dir() is likely failing due to the same thing.
I am still running as root via bubblewrap, in case that matters. I'll try and poke around in the code when I get some time, but I remain available to testing patches and/or prodiving more debug inputs.
Activity
sylvestre commentedon Mar 27, 2023
@Xuanwo @drahnr does it bing a bell ? :)
lissyx commentedon Mar 27, 2023
Doing a second build in a row, I get 3631 overlay mounted at the end of the second build that is taking super long to finish.
lissyx commentedon Mar 27, 2023
Looks like I inversed passing env var with sudo. Properlying setting them, I can now see stuff I like (errors):
drahnr commentedon Mar 27, 2023
No, not aware. Suspicious that #1628 might have caused the issue, it's the only thing that modified code in the vincinity.
lissyx commentedon Mar 27, 2023
sccache/src/bin/sccache-dist/build.rs
Lines 400 to 416 in f9cc320
lissyx commentedon Mar 27, 2023
When I get more time I can try and bisect to verify, but so far, going back to
v0.4.0.pre.10(before 20a08fc) seems to be enoughlissyx commentedon Mar 27, 2023
My guess is something in 20a08fc broke how
overlayare unmounted, and this is visible via the error above, because the same way my manualrm -frfails due toEBUSYon the mount point,fs::remote_all_dir()is likely failing due to the same thing.lissyx commentedon Mar 27, 2023
I am still running as
rootviabubblewrap, in case that matters. I'll try and poke around in the code when I get some time, but I remain available to testing patches and/or prodiving more debug inputs.dist: use bubblewrap for overlayFS mounts, run `sccache-dist` without…
dist: use bubblewrap for overlayFS mounts, run `sccache-dist` without…
dist: use bubblewrap for overlayFS mounts, run `sccache-dist` without…
dist: use bubblewrap for overlayFS mounts, run `sccache-dist` without…
dist: use bubblewrap for overlayFS mounts, run `sccache-dist` without…
dist: use bubblewrap for overlayFS mounts, run `sccache-dist` without…
dist: use bubblewrap for overlayFS mounts, run `sccache-dist` without…