←back to thread

495 points guntars | 1 comments | | HN request time: 0.282s | source
Show context
butterisgood ◴[] No.44985475[source]
Where do people get the idea that one thread per core is correct on a system that deals with time slices?

In my experience “oversubscribing” threads to cores (more threads than cores) provides a wall-clock time benefit.

I think one thread per core would work better without preemptive scheduling.

But then we aren’t talking about Unix.

replies(4): >>44985631 #>>44986628 #>>44988220 #>>44988584 #
1. wahern ◴[] No.44988584[source]
In the case of io_uring, one user thread per core is not a bad rule of thumb given that the kernel side is using a pool of worker threads.