Bug 4983 - Affinity broken due to vector space exhaustion
Summary: Affinity broken due to vector space exhaustion
Status: NEW
Alias: None
Product: ANCK 4.19 Dev
Classification: ANCK
Component: drivers (show other bugs) drivers
Version: 4.19-026.x
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: GuixinLiu
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-16 15:03 UTC by wangchuanguo_lc
Modified: 2023-05-16 15:17 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wangchuanguo_lc inspur_group 2023-05-16 15:03:15 UTC
Description of problem:
For Intel ethernet card(e.g. X710)
Set smp_affinity by writing /proc/irq/{$irq}/smp_affinity,
but effective_affinity does not equal to smp_affinity, and dmesg shows the warning:Affinity broken due to vector space exhaustion


How reproducible:
1、ethtool -K $eth_info ntuple on
2、cat /sys/class/net/enp33s0f0/device/numa_node  
--Assuming the output is :2
3、lscpu|grep node2
--Assuming the output is :NUMA node2 CPU(s):   12-17, 60-65
4、cat /proc/interrupts | grep $eth_info | awk -F ':' '{print $1}'
 --Assuming the output is :
 133
 134
 135
 136
 137
 138
 139
 140
5、echo 800000 > /proc/irq/137/smp_affinity
   cat /proc/irq/137/smp_affinity
   cat /proc/irq/137/effective_affinity

Actual results:
#cat /proc/irq/137/smp_affinity
00000000,00000000,00000000,00800000
#/proc/irq/137/effective_affinity
00000000,00000000,00000000,00800000

Expected results:
#cat /proc/irq/137/smp_affinity
00000000,00000000,00000000,00800000
#/proc/irq/137/effective_affinity
00000000,00000000,00000000,00000001
Comment 1 wangchuanguo_lc inspur_group 2023-05-16 15:17:31 UTC
Actual results:
#cat /proc/irq/137/smp_affinity
00000000,00000000,00000000,00800000
#/proc/irq/137/effective_affinity
00000000,00000000,00000000,00000001

Expected results:
#cat /proc/irq/137/smp_affinity
00000000,00000000,00000000,00800000
#/proc/irq/137/effective_affinity
00000000,00000000,00000000,00800000