We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11d273d commit 2b307e9Copy full SHA for 2b307e9
src/guidellm/scheduler/strategy.py
@@ -226,7 +226,9 @@ def processes_limit(self) -> int:
226
:return: {self.streams} for the concurrent scheduling strategy to limit
227
the worker processes to the number of streams.
228
"""
229
- return self.streams
+ cpu_cores = os.cpu_count() or 1
230
+
231
+ return min(max(1, cpu_cores - 1), self.streams)
232
233
@property
234
def queued_requests_limit(self) -> int:
0 commit comments