-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Operations randomly hang and consume tons of memory #938
Comments
Probably related to #937. |
The process hanging has command line |
Hi @williewillus, do you notice git-branchless printing a lot of output lines saying that it processed new references/branches? You can also try applying #913 to see if it improves the behavior of the reference-transaction hook. Can you also say how big your packed-refs file is, i.e. If you are working with a large repository, the problem might not be with the reference transactions, but instead with working copy snapshots. You can try disabling |
I'm having the same issue. My .git/packed-refs is 136 lines. Disabling |
re-installing git branchless via cargo fixed my issue. |
@williewillus does |
Waleed Khan ***@***.***> writes:
@williewillus does `git smartlog` complete in a reasonable amount of time? It might just
be the post-operation smartlog printing which is using too much time and memory, as it's
not efficiently implemented (see #937).
git sl completes reasonably quickly, it's just when committing,
amending, or otherwise manipulating the commit graph in my experience.
Would it help for me to zip up my entire repo and send it? It's about 200MiB.
|
@williewillus unfortunately, I don't have time lately to debug git-branchless issues. If you want to investigate yourself, you can follow the profiling section of the runbook: https://github.com/arxanas/git-branchless/wiki/Runbook#profiling and see what operation is taking too long. |
Is it possible this is an issue in v0.7.0 (the latest released to crates.io and installed via I ran into this today with v0.7.0 but installing from the repo master (6dcdd06) works fine. |
@williewillus want to try building from source as per the above comment? You can see the installation instructions here: https://github.com/arxanas/git-branchless/wiki/Runbook#global-installation |
Waleed Khan ***@***.***> writes:
@williewillus want to try building from source as per the above comment? You can see the
installation instructions here:
https://github.com/arxanas/git-branchless/wiki/Runbook#global-installation
I reinstalled from source and it seems to have gone away. I'm guessing
some change since 0.7.1 has fixed it. Maybe a new release is in order?
|
Just to add another datapoint: git-branchless 0.7.0 ends up consuming >20G of memory and eventually have to kill it when it doesn't finish 30m later on a repo of mine, but completes successfully and quickly once installing the latest git. |
@edwintorok what versions of Git were you running before and after? |
@arxanas sorry I should've been clearer by 'the latest git' I meant 'the latest version of git-branchless from git'. |
Description of the bug
Operations such as
git prev
orgit checkout --detach
hang and consume tons of memory (>10G).If I SIGINT the process and check git status, it appears the operation went through.
Expected behavior
Not hang
Actual behavior
Hang
Version of
rustc
1.65
Automated bug report
report.txt
Version of
git-branchless
No response
Version of
git
No response
The text was updated successfully, but these errors were encountered: