On Fri, Apr 20, 2018 at 09:11:47AM +0300, Slawa Olhovchenkov wrote: > > Try 1.8.8, it contains the kqueue fix. > > Work (kqueue), nice!
Excellent, thanks for your feedback! > Average load same as for multiprocess, but load of distinct CPU from > 0.06 to 0.39. Is this normal or expected? It can depend on your workload. There is *always* a small overhead incured by thread synchronization that doesn't exist between processes, but the ability to share certain elements can sometimes be beneficial as well (eg: shared cache in CPU). If you run at high connection rates (tens of connections per second) on 8+ threads, the cost of locking starts to be quite visible. That's where we know that threads scale less than processes (and what we're improving in 1.9). But the as long as you have some idle time, threads are much more convenient to use (single stats, checks, tables etc) and should be preferred. Willy

