-
Notifications
You must be signed in to change notification settings - Fork 224
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
Possibility of running multiple sourcekitten services in parallel #721
Comments
|
You may have misread this, it's |
|
@johnfairh Yes you are right, I miss-wrote it. Fixed, thanks! 🙌 I added the question in this repository because the issue is mainly about the possibility of running multiple instances of
It looks like swiftlint is sending a correct amount of jobs to |
|
Right, but |
|
Got it, thanks 🙌 |
|
@johnfairh's right, if you want SourceKit itself to behave differently, then you'd need to discuss that with the team within Swift that works on that. The Source Tooling category of the Swift Forums is a good place to start a discussion on this. |
|
Thanks! Already opened a topic, lets see |
👋
Context
My machine is an 2019 macbook pro, 8 core CPU. This allows for 16 threads. Thus, when I run
yes > /dev/null &8 times, I am getting a 50% CPU utilization, and when running it 16 times I get 100% utilization:The problem
I am running the
analyzecommand from swiftlint. When doing that, I observe the following:The CPU utilization usually stays around 50%, even though swiftlint is using concurrentPerform when analyzing and is correctly starting 16 threads (I checked):
There is one unique
SourceKitServicethat takes care of executing all requestsI did manually update the source code of swiftlint to start 32 threads, but the CPU utilisation was the same
Seeing above, I am wondering if maybe the single instance of
SourceKitServiceis wrongly limiting the amount of threads it uses to process the requests, not taking full advantage of the available computing power. Thus the question:SourceKitServicehow many threads to use when handling incoming requests?SourceKitService?SourceKitServiceinstances? Looking at this line, seems like not currently possibleThanks! 🙌
The text was updated successfully, but these errors were encountered: