projectcalico / bird

Calico's fork of the BIRD protocol stack
90 stars 86 forks source link

sleep 10ms, fix cpu 100% in some cases #74

Closed colin-lee closed 4 years ago

colin-lee commented 4 years ago

in some cases, bird will use 1 core, cpu keeps 100%

sleep 10 ms in io_loop

CLAassistant commented 4 years ago

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

colin-lee commented 4 years ago

image

[root@vlnx005038 ~]# uname -a Linux vlnx005038.foneshare.cn 3.10.0-957.27.2.el7.x86_64 #1 SMP Mon Jul 29 17:46:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

[root@vlnx005038 ~]# docker exec -it 66c2d6bba703 sh / # bird --version BIRD version v0.3.3+birdv1.6.3

colin-lee commented 4 years ago

image

nelljerram commented 4 years ago

@colin-lee Please could you submit this upstream instead? We're not experts on this area of code, so it would be much better for the upstream BIRD team to consider it. Once it gets into the upstream 1.6.x branch, we can then merge it here.