Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> writes: > Wouldn't it be lovely if it was slightly smarter (something more akin > to the index preloading that takes number of files into account) or at > least allowed people to set the parallelism explicitly with a command > line switch? Yeah, a reasonable starting point for auto-tuning may be to use the same kind of parameters and heuristics (i.e. max parallel of 20 threads, assume a cost to use an extra thread is the same as running 500 greps), and then tweak them (for example, thread cost of 500 may be reasonable for lstat() but it would be way too big for grep()). The real issue may be that we do not have a good estimate of how many paths are involved in the request before starting these threads, though. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html