cloudwego / monolake

Rust framework for building high-performance network services
https://www.cloudwego.io/docs/monolake/
Apache License 2.0
15 stars 2 forks source link

fix: set cpu affinity correctly and not bind by default #118

Closed ihciah closed 2 months ago

ihciah commented 2 months ago
  1. Set cpu affinity correctly. Current impl is not correct, it bind the main thread to different cores multiple times. It may brought by some previous refactor.
  2. Change default cpu affinity config to false. Bind thread to cores can make the performance better some time, but for container environment, bind to core may cause different process compete for one core, which can do harm to performance. So in this PR, by default it is disabled.