Print time taken to copy things to store when verbose logging #653
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#653
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Motivation
I find that excessive copying to the store is often the cause of Lix evaluation slowness. But AFAIK we don't have great tools for debugging this stuff. I often just end up staring at the verbose logs and trying to catch the "copying ... to the store" lines that hang around for the longest. Or I dump the logs and see their sizes.
Solution
It would be nice if, when logging verbosely, Lix emitted information about how long each path took to be copied to the store.
Describe alternatives you've considered
We could have a more general opentelemetry-esque tracing output from evaluation, or other forms of tracing/profiling, but that seems like a lot more work.
Additional context
This is my first issue on this tracker :)
Well, on the plus side, we want to implement rust tracing in lix. It's just hard. It would be maybe plausible, perhaps easy even, to fix up https://github.com/lf-/nix-otel but that's a bit of a distraction and my goal is to get tracing through to the finish line instead. It's approximately my next priority.
That's really exciting!
This issue was mentioned on Gerrit on the following CLs: