Skip to content

Commit 8933ce8

Browse files
committed
Adjust worker threads
1 parent 5e14b91 commit 8933ce8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frameworks/CSharp/wiredio/UnhGHttp/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static void Main(string[] args)
1212
{
1313
var builder = UnhingedEngine
1414
.CreateBuilder()
15-
.SetNWorkersSolver(() => Environment.ProcessorCount / 2)
15+
.SetNWorkersSolver(() => Environment.ProcessorCount)
1616
.SetBacklog(16384)
1717
.SetMaxEventsPerWake(512)
1818
.SetMaxNumberConnectionsPerWorker(512)

frameworks/CSharp/wiredio/src/Platform/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static void Main(string[] args)
3939
// It's the number of real cpu cores not cpu threads
4040
// This can improve the cache hits on L1/L2 since only one thread
4141
// is running per cpu core.
42-
.SetNWorkersSolver(() => Environment.ProcessorCount / 2)
42+
.SetNWorkersSolver(() => Environment.ProcessorCount - 2)
4343

4444
// Accept up to 16384 connections
4545
.SetBacklog(16384)

0 commit comments

Comments
 (0)