2 ms·
> When I ran this I gave the server and client 2 cores each. Neither were maxing out the cores. grep for GOMAXPROCS didn't turn up anything so not sure what yo
by eternalban 12y ago
> When I ran this I gave the server and client 2 cores each. Neither were maxing out the cores.
grep for GOMAXPROCS didn't turn up anything so not sure what you mean by that. This may help with core utilization.
func init() {
//
runtime.GOMAXPROCS(runtime.NumCPU())
// …
}
- zhenjl 12y agoI ran with GOMAXPROCS=2 on the command line. The post showed the actual commands that I used in each case.
- eternalban 12y agoAh, missed that. In any event, that sets the number of Go Processors per Go runtime. It has no bearing on the number of "cores" utilized.