Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

flock issues? #372

Open
chebee7i opened this issue Oct 2, 2023 · 0 comments
Open

flock issues? #372

chebee7i opened this issue Oct 2, 2023 · 0 comments

Comments

@chebee7i
Copy link

chebee7i commented Oct 2, 2023

Are there any known issues with building and an inability to get file locks? During builds, some of the processes spend a lot of time trying and failing to get a lock:

[pid 104235] 23:54:29 select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=50000}) = 0 (Timeout) <0.050073>
[pid 104235] 23:54:29 openat(AT_FDCWD, "/home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6", O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0644) = 27</home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6> <0.000142>
[pid 104235] 23:54:29 fchmod(27</home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6>, 0644) = 0 <0.000005>
[pid 104235] 23:54:29 flock(27</home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6>, LOCK_EX|LOCK_NB) = -1 EAGAIN (Resource temporarily unavailable) <0.000013>
[pid 104235] 23:54:29 close(27</home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6>) = 0 <0.000011>
[pid 104235] 23:54:29 select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=50000}) = 0 (Timeout) <0.050073>
[pid 104235] 23:54:29 openat(AT_FDCWD, "/home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6", O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0644) = 27</home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6> <0.000145>
[pid 104235] 23:54:29 fchmod(27</home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6>, 0644) = 0 <0.000007>
[pid 104235] 23:54:29 flock(27</home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6>, LOCK_EX|LOCK_NB) = -1 EAGAIN (Resource temporarily unavailable) <0.000006>
[pid 104235] 23:54:29 close(27</home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6>) = 0 <0.000010>
[pid 104235] 23:54:29 openat(AT_FDCWD, "/home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6", O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0644) = 27</home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6> <0.000105>
[pid 104235] 23:54:29 fchmod(27</home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6>, 0644) = 0 <0.000005>
[pid 104235] 23:54:29 flock(27</home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6>, LOCK_EX|LOCK_NB) = -1 EAGAIN (Resource temporarily unavailable) <0.000006>
[pid 104235] 23:54:29 close(27</home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6>) = 0 <0.000007>
[pid 104235] 23:54:29 select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=50000}) = 0 (Timeout) <0.050073>
[pid 104235] 23:54:29 openat(AT_FDCWD, "/home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6", O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0644) = 27</home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6> <0.000127>
[pid 104235] 23:54:29 fchmod(27</home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6>, 0644) = 0 <0.000006>
[pid 104235] 23:54:29 flock(27</home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6>, LOCK_EX|LOCK_NB) = -1 EAGAIN (Resource temporarily unavailable) <0.000007>
[pid 104235] 23:54:29 close(27</home/username/.conda_build_locks/1cd77edf90f2f329ca43c24c5306e5dc77e506ac978b36a79c4bd6cc97fec1a6>) = 0 <0.000011>

This can continue for a long time...usually I end up killing it. I'm doing the build on GPFS.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant