On Fri, Jul 01, 2022 at 03:21:18AM -0700, xin ma wrote:

>   I am using git fetch under one repository and it will create a lot of 
> threads, does anyone know about this problem?
> git version 2.33.0

The process of fetching is more complicated than it may seem on the first
glance: it first need to figure out which objects the receiving part lacks
compared to the sending one, then process the received objects - probably
updating one or more so-called "pack files" in the process.

Git implements paralleling some of its CPU-intensive tasks, so creating
several threads to handle that is nothing special - each thread utilises a CPU
core to do some number crunching.

Hence, the real question is: is there any real problem?
I mean, does the number of threads created is so insane (like hundreds to
thousands) your system becomes unstable or whatever? Are there any other
problem - like these threads remain lingering in an apparently hung process
you would expect to go away after fetching?
Also: are you 100% sure these threads are Git's and not of some other
proccess? How are you sure they are created by Git?

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/20220704114334.3eu34svkiuahw3bb%40carbon.

Reply via email to