View Issue Details

IDProjectCategoryView StatusLast Update
0018311CentOS-7-OTHERpublic2021-09-24 09:24
Reporterliuxianfeng Assigned To 
Status newResolutionopen 
PlatformlinuxOScentosOS Version7.5
Product Version7.5.1804 
Summary0018311: SO_REUSEPORT doesn't work in centos-7.5
Descriptionwhen i use SO_REUSEPORT in centos-7.5, only one thread could handle the packets. same app and test pcaps tested in centos-7.4 is ok.

i hope someone could help me. thanks.

what's more, SO_REUESADDR is the same.
Steps To Reproduce1. use SO_REUSEPORT option to bind a udp socket for ipv6, remember launch multi-thread
2. send some test packet
3. you will find that even the test packets scale is ok, but only thread could handle the packets

however, every thread could handle the packets is expected
TagsNo tags attached.




2021-09-23 01:15

reporter   ~0038635

same app in centos-7.4 or below is ok!


2021-09-23 01:34

reporter   ~0038636

detailed centos & depended kernel version as below
Linux CSP-DNS-88 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
CentOS Linux release 7.9.2009 (Core)

this bug may be kernel's bad, i'm not quite sure. it stuck me for a long time, i'd be grateful if you could help me


2021-09-24 09:24

reporter   ~0038637

i update the kernel from 3.10.0-862.el7.x86_64 to 5.14.7-1.el7.elrepo.x86_64, the bug disappeared.
do you notice this bug and repaired ? if you do,please leave a link to me, thanks

Issue History

Date Modified Username Field Change
2021-09-23 01:14 liuxianfeng New Issue
2021-09-23 01:15 liuxianfeng Note Added: 0038635
2021-09-23 01:34 liuxianfeng Note Added: 0038636
2021-09-23 01:37 toracat Category CentOS-7-Plus => -OTHER
2021-09-24 09:24 liuxianfeng Note Added: 0038637