Hi everybody:
I write a server program and it listens in an address.I only create a goroutine to accept new connection.I make a test, the result: 2.5w qps for accept new connection. Then i create >=2 goroutine for accept new connection, sadly the qps is not improved.
Why?For that linux kernal function accept has lock?
Apologies for the misunderstanding. I am afraid I cannot answer your question about the accept() function of the Linux kernel.
Tip: Ask this in a Linux forum. The question is not related to Go, and in a Linux forum it is more likely that you find someone who is familiar with the accept() function.
Good luck. Sorry that I could not help, I really have no clue about accept().
If it turns out that accept() is not the culprit, feel free to return here and perhaps share some code that we can discuss. Maybe there is something within the Go code itself.