i Gustavo Rios [rios.gust...@gmail.com] wrote: > Hi folks! > > I have a simple question: how many cores does OBSD support ? >
There's various hard-coded limits at something like 64-128 cores (depending on architecture) Depending on your application, a useful number of cores is somewhere between 4 and 16 right now, although a purely computational multi-thread/multi-process application could perhaps use much more. Applications that make heavy use of kernel services are all undergoing acceleration as the kernel unlocks and things are changed to take advantage of parallelization where this is possible. Here's a 16 core box doing NAT on 250kpps (250k in and out) with vlan tagging and if_ix multiqueue. One more interesting item here is that the majority of work is spread across four CPUs. It's running OpenBSD 7.4 (not current which is has a bit more unlocked.) The same config starts to putter around 800-900kpps in/out (increased latency) but doesn't drop traffic. load averages: 1.91, 2.11, 2.04 test 18:33:34 35 processes: 34 idle, 1 on processor up 0 days 09:56:29 CPU00: 0.0% user, 0.0% nice, 0.0% sys, 0.4% spin, 4.8% intr, 94.8% idle CPU01: 0.0% user, 0.0% nice, 39.4% sys, 1.4% spin, 0.0% intr, 59.2% idle CPU02: 0.0% user, 0.0% nice, 36.8% sys, 0.4% spin, 1.0% intr, 61.8% idle CPU03: 0.0% user, 0.0% nice, 32.6% sys, 1.6% spin, 0.8% intr, 65.0% idle CPU04: 0.0% user, 0.0% nice, 23.6% sys, 0.6% spin, 0.8% intr, 75.0% idle CPU05: 0.0% user, 0.0% nice, 6.0% sys, 0.2% spin, 0.6% intr, 93.2% idle CPU06: 0.0% user, 0.0% nice, 0.2% sys, 0.2% spin, 1.4% intr, 98.2% idle CPU07: 0.0% user, 0.0% nice, 0.0% sys, 0.4% spin, 1.8% intr, 97.8% idle CPU08: 0.0% user, 0.0% nice, 0.0% sys, 0.0% spin, 1.8% intr, 98.2% idle CPU09: 0.0% user, 0.0% nice, 0.0% sys, 0.0% spin, 2.0% intr, 98.0% idle CPU10: 0.0% user, 0.0% nice, 0.0% sys, 0.2% spin, 1.8% intr, 98.0% idle CPU11: 0.0% user, 0.0% nice, 0.0% sys, 0.2% spin, 0.8% intr, 99.0% idle CPU12: 0.0% user, 0.0% nice, 0.0% sys, 0.0% spin, 1.4% intr, 98.6% idle CPU13: 0.0% user, 0.0% nice, 0.0% sys, 0.2% spin, 1.4% intr, 98.4% idle CPU14: 0.0% user, 0.0% nice, 0.0% sys, 0.2% spin, 1.0% intr, 98.8% idle CPU15: 0.0% user, 0.0% nice, 0.0% sys, 0.0% spin, 1.8% intr, 98.2% idle Memory: Real: 57M/2222M act/tot Free: 60G Cache: 815M Swap: 0K/2035M