-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nix copy to ssh is sometimes very slow #2246
Comments
Dupe of #1988 possibly. |
I still experience huge differences in speed between |
I marked this as stale due to inactivity. → More info |
I closed this issue due to inactivity. → More info |
I often have massive performance issues when copying paths to remote hosts and I started seeing this since I started using While the performance in ~95% of the cases is just fine, it seems to happen especially with Aborting
I also created backtraces from the corresponding Nix processes that hint at something like this, but I lack the knowledge of Nix internals to make an informed statement about those results - maybe they provide to someone else a little more insights and might give a clue at what's going wrong here: |
I'm using
nix copy
to copy the closure and paths from my local machine to my servers.nix copy
to remote host is sometimes very slow.It doesn't happen everytime I deploy, but it usually happens when I copy large paths to the remote. Say I copy 2gig data, the upload will usually stop after 1.99gig after a few seconds (plenty of bandwidth) and then hang for up to 5 whole minutes! .. before completing the very last couple of MBs.
I tried strace'ing the nix-daemon threads on my local machine (which were sleeping or waiting for mutexes), and subsequently strace'd the SSH-subthread, which was hanging in:
select(8, [3 5], [], NULL, NULL) = 1 (in [3])
.Looks like an SQLite statement running slow on the remote host?
My network bandwidth is fine, my local host is idling and no significant load on the remote host. No Swap, Plenty of free mem.
I don't know how to help further?
Please tell me what further info you need to debug. I'll be happy to help.
Local machine: Ubuntu 17 with Nix 2.0.4
Remote host: NixOS 18.03
The text was updated successfully, but these errors were encountered: