You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by "cmdmspaint (via GitHub)" <gi...@apache.org> on 2023/02/15 07:59:15 UTC

[GitHub] [brpc] cmdmspaint opened a new issue, #2125: 调整bthread_concurrency小于cpu核数不生效问题

cmdmspaint opened a new issue, #2125:
URL: https://github.com/apache/brpc/issues/2125

   用于测试的server是128核的cpu
   brpc内部bthread_concurrency参数的default value应该是9
   ![image](https://user-images.githubusercontent.com/50624748/218966802-2053df34-4bd2-4f2f-b8db-11b131609bdc.png)
   但是为什么在bavr上显示的value是129而不是9呢,这和ServerOptions.num_threads数量默认是cpu core的个数有关吗?
   ![image](https://user-images.githubusercontent.com/50624748/218967035-9eedafb2-16bb-4a66-a88c-bba8a323fcd0.png)
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [brpc] cmdmspaint commented on issue #2125: 调整bthread_concurrency小于cpu核数不生效问题

Posted by "cmdmspaint (via GitHub)" <gi...@apache.org>.
cmdmspaint commented on issue #2125:
URL: https://github.com/apache/brpc/issues/2125#issuecomment-1430927749

   > 是的。
   > 
   > https://github.com/apache/brpc/blob/3d4db04303736903f5345be2187a7842cf4a11f7/src/brpc/server.cpp#L146-L148
   > 
   > 这里会初始化为 cpu 个数 + 1。
   > 
   > https://github.com/apache/brpc/blob/3d4db04303736903f5345be2187a7842cf4a11f7/src/brpc/server.cpp#L960-L968
   > 
   > 这里会增加 worker 数量。
   
   好的,多谢


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [brpc] ehds commented on issue #2125: 调整bthread_concurrency小于cpu核数不生效问题

Posted by "ehds (via GitHub)" <gi...@apache.org>.
ehds commented on issue #2125:
URL: https://github.com/apache/brpc/issues/2125#issuecomment-1430923990

   是的。
   https://github.com/apache/brpc/blob/3d4db04303736903f5345be2187a7842cf4a11f7/src/brpc/server.cpp#L146-L148
   
   这里会初始化为 cpu 个数 + 1。
   https://github.com/apache/brpc/blob/3d4db04303736903f5345be2187a7842cf4a11f7/src/brpc/server.cpp#L960-L968
   
   这里会增加 worker 数量。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [brpc] cmdmspaint closed issue #2125: 调整bthread_concurrency小于cpu核数不生效问题

Posted by "cmdmspaint (via GitHub)" <gi...@apache.org>.
cmdmspaint closed issue #2125: 调整bthread_concurrency小于cpu核数不生效问题 
URL: https://github.com/apache/brpc/issues/2125


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org