-
-
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
Add "nix processes" command that is equivalent to "guix processes" #3751
Comments
There is as an adhoc solution nix-top. But yeah, a real nix subcommand could be usefully (or at least protocol definition to query this info from the daemon) |
Related to that, it would be great if nix would report back what is blocking a build when it is locked or waiting on a runner to become available. |
One simple idea which would not be too complicated in implementing is writing the current build step into Is that a good idea? |
I like the idea of it being discoverable via files. Though perhaps they should live in |
Of course. My idea behind that was that it would make it easier to see if the look on the user is already held without calling flock. As the locks live under /nix/var/nix/userpool |
I made a quick proof of concept here: I think handling build steps would be useful too. Right now you can check /proc for child processes, but it only works on systems with a procfs. |
I assume we limit to trusted users? |
userpool is only readable by root (or whoever owns NIX_STORE_DIR) so any new information we expose would have that restriction. I don’t think it’s worth letting trusted-users see it. There’s nothing stopping them from doing |
I marked this as stale due to inactivity. → More info |
Still important to me. |
I marked this as stale due to inactivity. → More info |
Still important to me |
I marked this as stale due to inactivity. → More info |
Still important to me. |
Guix has a feature that is missing in Nix:
https://guix.gnu.org/manual/en/html_node/Invoking-guix-processes.html
guix processes
is used to list derivations that are running by the daemon. It's useful to system administrators who want to know what is using up so much of their resources.The text was updated successfully, but these errors were encountered: