Repository navigation
Description
Description
Extremely poor performance (slow execution of every single type of operation, prolonged excessive CPU use) 95% of the time, as reported by myself in #4290 and numerous others in various other threads.
As another user reported:
Any normal use. Trying to select anything in the menu. Even entering in a comment for a commit will freeze mid typing. Other programs in the OS are running fine.
At the most extreme, I have sat for 30+ minutes waiting for single commits to push. But on an everyday basis, routine actions such as repo refreshes typically take 3-10 minutes.
Windows Task Manager sometimes shows GD spawning dozens of threads at a time.
Here is a profile of the following actions as requested:
- Refresh a repo (which only has the master branch and one commit)
- Switch to another repo (a few branches, lengthy commit history)
- Refresh that repo
- Update branch from default (I noticed that the options for the "Branch" menu took several seconds to render)
While these operations were quite slow, I did not get the same excessive CPU usage that often accompanies such operations.
As you know, I have eliminated antivirus/anti-malware interference as outlined in #4290
Git-related performance issues persist across repositories, regardless of size or structure. Severe lag/hanging of local actions (rendering menu options, typing, etc.) is persistent.
Version
- GitHub Desktop:
1.3.0 beta 3
- Operating system:
It's worth mentioning that the performance issues have persisted across machines and OS versions (Win7/10).
Activity
shiftkey commentedon Jul 24, 2018
@109digital thanks for the performance profile and machine details. I'm still digging into this but the most interesting thing I wanted to call out is how the Git operations are performing:
All of these use the NodeJS
spawnAPI, and the pattern of the majority of them (within a tolerance of a few milliseconds) executing in a round number of seconds is what I'd like to figure out. The???entries above were traced to microtasks, so I didn't have the full stack to identify them with.These are important because we require Git data in the app, and if these are running slow then it'll affect the whole experience of the app (because we're waiting for data).
I'm going to wrap my head around how
spawninteroperates with the Windows OS, because maybe that will help me with troubleshooting.A few questions I have to help with my investigating:
Is this
GitHubDesktop.exeyou're measuring? I'm less interested in this stat at the moment because Desktop should be spawninggit.exeinstances to perform Git operations on a repository, and that appears to be the bottleneck for app responsiveness. If thesegit.exeoperations are consuming 100% CPU time then it's likely to affect the rest of the app.Do you see any other programs taking CPU time when Desktop is running aside from
git.exe? This might be a clue for some unexpected interactions that we aren't aware of between running programs/services.What software in common is installed on both these machines that might help me reproduce this issue on my end?
109digital commentedon Jul 24, 2018
Sample here. I also created a dump from task manager, but it seems to have captured an entirely different set of information - I didn't see anything in there about running processes, resource consumption, etc.
The trouble with monitoring this when the resource usage is at its most extreme is that my system virtually freezes, only bringing up task manager (or updating it) when it finishes processing whatever GD is doing. This can take anywhere from 5-20 seconds.
I've sat here for a few minutes switching between repos and refreshing, trying to reproduce. And while the operations are consistently slow, I'm not seeing the crippling resource consumption that randomly occurs. I'm not sure how to reproduce that piece, it just happens randomly.
Not really. As I said though, nothing responds - include Task Manager - during the occasional/random periods of intense resource usage, so it's hard for me to tell. Generally speaking, Github's CPU usage (and my overall CPU usage) is < 50%.
That are actually running while GD is open? Chrome is probably the only major commonality I can think of. Skype and Postbox, but I highly doubt they are causing this.
shiftkey commentedon Jul 24, 2018
Let me see if I can put together instructions for using Perfmon or similar so you can capture this data in a scripted way. I'll report back once I've figured out some steps to follow that will give me helpful context.
I'm more interested in installed software - something that's registered itself to run as a service or is running as a process in the background not necessarily started by you when you're also running Desktop.
109digital commentedon Jul 25, 2018
I will try to use it. I'm currently in the midst of a refresh operation which is now pushing 20 minutes.
109digital commentedon Aug 1, 2018
I have Perfmon installed, please let me know what you need...
109digital commentedon Aug 6, 2018
@shiftkey
Hi, please let me know how I can use Perfmon to continue diagnosing the issue.
109digital commentedon Aug 8, 2018
Are these the counters I should use? Any others?
109digital commentedon Aug 10, 2018
@shiftkey Following up...
109digital commentedon Aug 15, 2018
@shiftkey Following up
lee-dohm commentedon Aug 15, 2018
@109digital I can understand you're frustrated with the lack of response here. Frankly, we're unable to reproduce this or find any useful information in the logs that you've shared so far. We're still intending on looking into this as time allows and will see if we get any fresh ideas. The issue remains open specifically because we acknowledge that it is something that we still intend to work on. When we have something meaningful to add, we'll respond to the issue.
However, your actions, specifically repeatedly pinging for a response with no new information and even reaching out directly and privately to our maintainers, constitute harassment under the Desktop Code of Conduct. You may consider this an official warning.
j-f1 commentedon Aug 15, 2018
@lee-dohm I think they’re waiting on instructions:
109digital commentedon Aug 15, 2018
From a support conversation with Steve Ward on 5/7/18:
Just look around in the issues here, you'll find plenty of people complaining about the same problems I've experienced ever since I started using GitHub Desktop. I get it - one user is a meaningless edge case. But I am not the only person experiencing severe performance issues. You're deluding yourself if you think there is nothing to see here. And I'd venture that many users just suffer through it without saying anything.
Brendan seemed to have found useful information in the profile data I posted, and advised that Perfmon data could possibly pinpoint the cause of the issue. Direction on how to provide that, as j-f1 pointed out, is exactly what I have been requesting.
See above. The request was for him to follow through so I could supply additional information. You guys do actually want to solve bugs, right?
Yes, after weeks of being ignored, I emailed the publicly listed address on his profile, asking him to please direct me to someone who can help me, as he appears to be too busy.
Threaten and ignore me all you wish, but you are doing a tremendous disservice to the users who are struggling with GitHub Desktop's performance on Windows.
Believe me, I would love to leave you guys alone and just pay another company. I don't believe in having to beg for product support. But unfortunately, there doesn't seem to be a suitable alternative so for now, I'm just getting through by making simple commits through the web UI, and budgeting extra time when GitHub Desktop is needed.
lee-dohm commentedon Aug 15, 2018
I understand that you feel ignored but we have been contacted by you across three platforms and statements like “You do actually want to solve bugs” is insulting to the people in this community who work very hard to make sure everyone who comes in has a good experience. Because these comments are doing more harm than good and you feel justified in emailing individuals personally with similar comments, we will be banning you.
We don’t want anyone to have performance issues or have to adjust your workflow to get the job done. This is something the team is working on. Unfortunately, this work takes time. It is hard to find the quick fix for every issue and we realize it’s the pain in the present that is frustrating. We haven’t forgotten about you or the other folks who have posted issues and are patiently waiting for answers. Until then, there are other alternative Git interfaces that are architected differently and we don’t take it personally if you have to switch!
jpetro416 commentedon Nov 25, 2019
Same issue here, randomly freezing. The APP has an issue, let's be clear about that. An intel 9900k and 32GB RAM on a fresh Windows install shouldn't be having this issue. I've switched over to my laptop running an i7 9750h 16GB ram with the same stuttering issue. It's not our PC's, this is an internal issue for sure.
antoniokly commentedon Jun 18, 2020
still an issue here
