why grpc server can not use as many cpus as possiable

35 views
Skip to first unread message

longguang yue

unread,
Jan 15, 2018, 1:19:43 AM1/15/18
to grpc.io
Hi,all:
   in my cace of a golang grpc server,   i  set GOMAXPROCS  as 160,  but the server just  use 10 cpus. i do some to optimise, but a bit improvement.


how to let grpc server uss as many as cpus and can process as many as packets?

thanks

mmu...@google.com

unread,
Jan 17, 2018, 7:50:30 PM1/17/18
to grpc.io
GOMAXPROCS basically tells you how many parallel units of work can happen at a time. It should by default be equal to the number of CPUs you have on your machine. For optimizing gRPC-go performance I won't recommend updating it manually. If there's a specific scenario that you are looking to advise feel free to share more information and we can go from there. 
Reply all
Reply to author
Forward
0 new messages