Xen bridging issue.
Quoted 61 lines · johnny Strom
Hello
I sent an email before about bridging not working in domU using Debian 8.1 and XEN 4.4.1.
It was not the network card "igb" as I first taught.
I managed to get bridging working in DOMU if is set the limit of cpu's in dom0 to 14, this is from
/etc/default/grub
when it works ok:GRUB_CMDLINE_XEN="dom0_max_vcpus=14
dom0_vcpus_pin"Is there any known issue/limitations running xen with more with more than 14 CPU cores in dom0?
The cpu in question is:
processor : 16
vendor_id: GenuineIntel
cpu family : 6
model : 63
model name : Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz
stepping : 2
microcode :0x2d
cpu MHz : 2298.718
cache size : 25600 KB
physical id : 0
siblings : 17
core id : 11
cpu cores : 9
apicid : 22
initial apicid : 22
fpu : yesfpu_exception: yes
cpuid level : 15
wp : yes
flags : fpu de tsc msr pae mce cx8 apic sep mca cmov pat
clflush acpi mmx fxsr sse sse2 ss ht syscall nx lmconstant_tscrep_goodnoplnonstop_tsceagerfpu pni pclmulqdq monitor est ssse3 fma cx16sse4_1sse4_2movbe popcnttsc_deadline_timeraes xsave avx f16c rdrand hypervisorlahf_lmabm ida arat epb xsaveopt pln pts dtherm fsgsbase bmi1 avx2 bmi2 erms
bogomips : 4597.43
clflush size : 64cache_alignment: 64
address sizes : 46 bits physical, 48 bits virtual
power management:If I set it to 17 in dom0:
GRUB_CMDLINE_XEN="dom0_max_vcpus=17
dom0_vcpus_pin"Then I get this oops whan I try to boot domU with 40 vcpu's.
Quoted 9 lines
[ 1.588313] systemd-udevd[255]: starting version 215 [ 1.606097] xen_netfront: Initialising Xen virtual ethernet driver [ 1.648172] blkfront: xvda2: flush diskcache: enabled; persistent grants: enabled; indirect descriptors: disabled; [ 1.649190] blkfront: xvda1: flush diskcache: enabled; persistent grants: enabled; indirect descriptors: disabled; [ 1.649705] Setting capacity to 2097152 [ 1.649716] xvda2: detected capacity change from 0 to 1073741824 [ 1.653540] xen_netfront: can't alloc rx grant refs
The frontend has run out of grant refs, perhaps due to multiqueue support in the front/backend where I think the number of queues scales with number of processors.
I've added some relevant maintainers for net{front,back} and grant tables, plus people who were involved with MQ and the devel list.
Quoted 63 lines
[ 1.653547] net eth1: only created 17 queues [ 1.654027] BUG: unable to handle kernel NULL pointer dereference at 0000000000000018 [ 1.654033] IP: [] netback_changed+0x964/0xee0 [xen_netfront] [ 1.654041] PGD 0 [ 1.654044] Oops: 0000 [#1] SMP [ 1.654048] Modules linked in: xen_netfront(+) xen_blkfront(+) crct10dif_pclmul crct10dif_common crc32c_intel [ 1.654057] CPU: 3 PID: 209 Comm: xenwatch Not tainted 3.16.0-4-amd64 #1 Debian 3.16.7-ckt11-1+deb8u3 [ 1.654061] task: ffff880faf477370 ti: ffff880faf478000 task.ti: ffff880faf478000 [ 1.654064] RIP: e030:[] [] netback_changed+0x964/0xee0 [xen_netfront] [ 1.654071] RSP: e02b:ffff880faf47be20 EFLAGS: 00010202 [ 1.654074] RAX: 0000000000000000 RBX: ffff880002a729c0 RCX: 0000000000000001 [ 1.654077] RDX: 000000000066785c RSI: ffff880002a72a58 RDI: 0000000000003f1f [ 1.654080] RBP: ffff880faa44e000 R08: ffffc90006240000 R09: ffffea0036d3f180 [ 1.654083] R10: 000000000000251e R11: 0000000000000000 R12: ffff880faa44f000 [ 1.654086] R13: ffff880002a72a58 R14: 00000000000729c0 R15: ffff880fab6f4000 [ 1.654093] FS: 0000000000000000(0000) GS:ffff880fb7060000(0000) knlGS:0000000000000000 [ 1.654096] CS: e033 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1.654099] CR2: 0000000000000018 CR3: 0000000001813000 CR4: 0000000000042660 [ 1.654102] Stack: [ 1.654104] ffff880faf5aec00 ffff880f0000000f 0000001100000001 ffff880faf5aec00 [ 1.654109] ffff880002a6b041 ffff880002a6af84 00000001af561000 0000001100000001 [ 1.656945] ffff8800028e9df1 ffff8800028e8880 ffff880faf47beb8 ffffffff8135b9e0 [ 1.656945] Call Trace: [ 1.656945] [] ? unregister_xenbus_watch+0x220/0x220 [ 1.656945] [] ? xenwatch_thread+0x98/0x140 [ 1.656945] [] ? prepare_to_wait_event+0xf0/0xf0 [ 1.656945] [] ? kthread+0xbd/0xe0 [ 1.656945] [] ? kthread_create_on_node+0x180/0x180 [ 1.656945] [] ? ret_from_fork+0x58/0x90 [ 1.656945] [] ? kthread_create_on_node+0x180/0x180 [ 1.656945] Code: 48 89 c6 e9 bd fd ff ff 48 8b 3c 24 48 c7 c2 b3 52 06 a0 be f4 ff ff ff 31 c0 e8 38 61 2f e1 e9 54 ff ff ff 48 8b 43 20 4c 89 ee <48> 8b 78 18 e8 13 63 2f e1 85 c0 0f 88 b0 fd ff ff 48 8b 43 20 [ 1.656945] RIP [] netback_changed+0x964/0xee0 [xen_netfront] [ 1.656945] RSP [ 1.656945] CR2: 0000000000000018 [ 1.656945] ---[ end trace d92264e4041d27a1 ]---Best regards Johnny
_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xen.org/xen-users
Quoted 72 lines · Ian Campbell
Quoted 61 lines · johnny Strom
Hello
I sent an email before about bridging not working in domU using Debian 8.1 and XEN 4.4.1.
It was not the network card "igb" as I first taught.
I managed to get bridging working in DOMU if is set the limit of cpu's in dom0 to 14, this is from
/etc/default/grub
when it works ok:GRUB_CMDLINE_XEN="dom0_max_vcpus=14
dom0_vcpus_pin"Is there any known issue/limitations running xen with more with more than 14 CPU cores in dom0?
The cpu in question is:
processor : 16
vendor_id: GenuineIntel
cpu family : 6
model : 63
model name : Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz
stepping : 2
microcode :0x2d
cpu MHz : 2298.718
cache size : 25600 KB
physical id : 0
siblings : 17
core id : 11
cpu cores : 9
apicid : 22
initial apicid : 22
fpu : yesfpu_exception: yes
cpuid level : 15
wp : yes
flags : fpu de tsc msr pae mce cx8 apic sep mca cmov pat
clflush acpi mmx fxsr sse sse2 ss ht syscall nx lmconstant_tscrep_goodnoplnonstop_tsceagerfpu pni pclmulqdq monitor est ssse3 fma cx16sse4_1sse4_2movbe popcnttsc_deadline_timeraes xsave avx f16c rdrand hypervisorlahf_lmabm ida arat epb xsaveopt pln pts dtherm fsgsbase bmi1 avx2 bmi2 erms
bogomips : 4597.43
clflush size : 64cache_alignment: 64
address sizes : 46 bits physical, 48 bits virtual
power management:If I set it to 17 in dom0:
GRUB_CMDLINE_XEN="dom0_max_vcpus=17
dom0_vcpus_pin"Then I get this oops whan I try to boot domU with 40 vcpu's.
Quoted 9 lines
[ 1.588313] systemd-udevd[255]: starting version 215 [ 1.606097] xen_netfront: Initialising Xen virtual ethernet driver [ 1.648172] blkfront: xvda2: flush diskcache: enabled; persistent grants: enabled; indirect descriptors: disabled; [ 1.649190] blkfront: xvda1: flush diskcache: enabled; persistent grants: enabled; indirect descriptors: disabled; [ 1.649705] Setting capacity to 2097152 [ 1.649716] xvda2: detected capacity change from 0 to 1073741824 [ 1.653540] xen_netfront: can't alloc rx grant refs
Quoted 4 lines
The frontend has run out of grant refs, perhaps due to multiqueue support in the front/backend where I think the number of queues scales with number of processors.
The default number of queues would be number of _backend_ processors. Xen command line indicates 17 Dom0 vcpus, which isn't too large I think.
Can you check in xenstore what the value of multi-queue-max-queues is? Use xenstore-ls /local/domain/$DOMID/ when the guest is still around.
Quoted 5 lines
I've added some relevant maintainers for net{front,back} and grant tables, plus people who were involved with MQ and the devel list.
Quoted 1 line
[ 1.653547] net eth1: only created 17 queues
This indicates it only created 16 queues. And there seems to be a bug in code.
Wei.
Quoted 1 line · Wei Liu
xenstore-ls/local/domain/$DOMID/
Here is the output of xenstore-ls only one network card is working.
xenstore-ls /local/domain/1
vm = "/vm/63d68f91-093d-4cf2-8c8e-28c7bd8028ab" name = "test-debian-jessie"
cpu = ""
0 = ""
availability = "online"
1 = ""
availability = "online"
2 = ""
availability = "online"
3 = ""
availability = "online"
4 = ""
availability = "online"
5 = ""
availability = "online"
6 = ""
availability = "online"
7 = ""
availability = "online"
8 = ""
availability = "online"
9 = ""
availability = "online"
10 = ""
availability = "online"
11 = ""
availability = "online"
12 = ""
availability = "online"
13 = ""
availability = "online"
14 = ""
availability = "online"
15 = ""
availability = "online"
16 = ""
availability = "online"
17 = ""
availability = "online"
18 = ""
availability = "online"
19 = ""
availability = "online"
20 = ""
availability = "online"
21 = ""
availability = "online"
22 = ""
availability = "online"
23 = ""
availability = "online"
24 = ""
availability = "online"
25 = ""
availability = "online"
26 = ""
availability = "online"
27 = ""
availability = "online"
28 = ""
availability = "online"
29 = ""
availability = "online"
30 = ""
availability = "online"
31 = ""
availability = "online"
32 = ""
availability = "online"
33 = ""
availability = "online"
34 = ""
availability = "online"
35 = ""
availability = "online"
36 = ""
availability = "online"
37 = ""
availability = "online"
38 = ""
availability = "online"
39 = ""
availability = "online"
memory = ""
static-max = "4194304"
target = "4194305"
videoram = "-1"
device = ""
suspend = ""
event-channel = ""
vbd = ""
51713 = ""
backend = "/local/domain/0/backend/qdisk/1/51713" backend-id = "0"
state = "4"
virtual-device = "51713"
device-type = "disk"
protocol = "x86_64-abi"
ring-ref = "8"
event-channel = "243"
feature-persistent = "1"
51714 = ""
backend = "/local/domain/0/backend/qdisk/1/51714" backend-id = "0"
state = "4"
virtual-device = "51714"
device-type = "disk"
protocol = "x86_64-abi"
ring-ref = "9"
event-channel = "244"
feature-persistent = "1"
vif = ""
0 = ""
backend = "/local/domain/0/backend/vif/1/0" backend-id = "0"
state = "4"
handle = "0"
mac = "00:16:3e:ee:aa:aa" multi-queue-num-queues = "17"
queue-0 = ""
tx-ring-ref = "8960"
rx-ring-ref = "8961"
event-channel-tx = "245"
event-channel-rx = "246"
queue-1 = ""
tx-ring-ref = "8962"
rx-ring-ref = "8963"
event-channel-tx = "247"
event-channel-rx = "248"
queue-2 = ""
tx-ring-ref = "8964"
rx-ring-ref = "8965"
event-channel-tx = "249"
event-channel-rx = "250"
queue-3 = ""
tx-ring-ref = "8966"
rx-ring-ref = "8967"
event-channel-tx = "251"
event-channel-rx = "252"
queue-4 = ""
tx-ring-ref = "8968"
rx-ring-ref = "8969"
event-channel-tx = "253"
event-channel-rx = "254"
queue-5 = ""
tx-ring-ref = "8970"
rx-ring-ref = "8971"
event-channel-tx = "255"
event-channel-rx = "256"
queue-6 = ""
tx-ring-ref = "8972"
rx-ring-ref = "8973"
event-channel-tx = "257"
event-channel-rx = "258"
queue-7 = ""
tx-ring-ref = "8974"
rx-ring-ref = "8975"
event-channel-tx = "259"
event-channel-rx = "260"
queue-8 = ""
tx-ring-ref = "8976"
rx-ring-ref = "8977"
event-channel-tx = "261"
event-channel-rx = "262"
queue-9 = ""
tx-ring-ref = "8978"
rx-ring-ref = "8979"
event-channel-tx = "263"
event-channel-rx = "264"
queue-10 = ""
tx-ring-ref = "8980"
rx-ring-ref = "8981"
event-channel-tx = "265"
event-channel-rx = "266"
queue-11 = ""
tx-ring-ref = "8982"
rx-ring-ref = "8983"
event-channel-tx = "267"
event-channel-rx = "268"
queue-12 = ""
tx-ring-ref = "8984"
rx-ring-ref = "8985"
event-channel-tx = "269"
event-channel-rx = "270"
queue-13 = ""
tx-ring-ref = "8986"
rx-ring-ref = "8987"
event-channel-tx = "271"
event-channel-rx = "272"
queue-14 = ""
tx-ring-ref = "8988"
rx-ring-ref = "8989"
event-channel-tx = "273"
event-channel-rx = "274"
queue-15 = ""
tx-ring-ref = "8990"
rx-ring-ref = "8991"
event-channel-tx = "275"
event-channel-rx = "276"
queue-16 = ""
tx-ring-ref = "8992"
rx-ring-ref = "8993"
event-channel-tx = "277"
event-channel-rx = "278" request-rx-copy = "1"
feature-rx-notify = "1"
feature-sg = "1"
feature-gso-tcpv4 = "1"
feature-gso-tcpv6 = "1"
feature-ipv6-csum-offload = "1"
1 = ""
backend = "/local/domain/0/backend/vif/1/1"
backend-id = "0"
state = "1"
handle = "1"
mac = "00:16:3e:ec:a7:b5"
control = ""
shutdown = ""
platform-feature-multiprocessor-suspend = "1"
platform-feature-xs_reset_watches = "1"
data = ""
domid = "1"
store = ""
port = "1"
ring-ref = "34073523"
console = ""
backend = "/local/domain/0/backend/console/1/0"
backend-id = "0"
limit = "1048576"
type = "xenconsoled"
output = "pty"
tty = "/dev/pts/1"
port = "2"
ring-ref = "16977980"
image = ""
device-model-pid = "5539"
Quoted 7 lines · johnny Strom
Quoted 1 line · Wei Liu
xenstore-ls/local/domain/$DOMID/
Here is the output of xenstore-ls only one network card is working.
xenstore-ls /local/domain/1
[...]
Quoted 8 lines
vif = ""
0 = ""
backend = "/local/domain/0/backend/vif/1/0"
backend-id = "0"
state = "4"
handle = "0"
mac = "00:16:3e:ee:aa:aa"
multi-queue-num-queues = "17"
OK so the number of queues is 17. You probably don't need that many queues.
Set module parameter "xenvif_max_queues" of netback to something like 4 should work around the problem for you.
Wei.
Quoted 16 lines · Wei Liu
Quoted 6 lines · johnny Strom
Quoted 1 line · Wei Liu
xenstore-ls/local/domain/$DOMID/
Here is the output of xenstore-ls only one network card is working.
xenstore-ls /local/domain/1
[...]
Quoted 8 lines
vif = ""
0 = ""backend = "/local/domain/0/backend/vif/1/0" backend-id = "0" state = "4" handle = "0" mac = "00:16:3e:ee:aa:aa" multi-queue-num-queues = "17"
Quoted 5 lines
OK so the number of queues is 17. You probably don't need that many queues.
Set module parameter "
xenvif_max_queues" of netback to something like 4 should work around the problem for you.
Hello
I tried to set it to 4 in /etc/modprobe.d/xen_netback.conf
rmmod xen_netback
modprobe -v xen_netback
insmod /lib/modules/3.16.0-4-amd64/kernel/drivers/net/xen-netback/xen-netback.ko xenvif_max_queues=4
But it is still the same issue..
Is xenvif_max_queues supported in Linux kernel 3.16?
modinfo -p xen_netback
separate_tx_rx_irq: (bool)rx_drain_timeout_msecs: (uint)rx_stall_timeout_msecs: (uint)
max_queues:Maximum number of queues per virtual interface (uint)fatal_skb_slots: (uint)
Here is how it looks after I set it to 4...
xenstore-ls /local/domain/3
vm = "/vm/56850be4-4ca4-4ae7-b7c7-b4e6f9336bd2" name = "test-debian-jessie"
cpu = ""
0 = ""
availability = "online"
1 = ""
availability = "online"
2 = ""
availability = "online"
3 = ""
availability = "online"
4 = ""
availability = "online"
5 = ""
availability = "online"
6 = ""
availability = "online"
7 = ""
availability = "online"
8 = ""
availability = "online"
9 = ""
availability = "online"
10 = ""
availability = "online"
11 = ""
availability = "online"
12 = ""
availability = "online"
13 = ""
availability = "online"
14 = ""
availability = "online"
15 = ""
availability = "online"
16 = ""
availability = "online"
17 = ""
availability = "online"
18 = ""
availability = "online"
19 = ""
availability = "online"
20 = ""
availability = "online"
21 = ""
availability = "online"
22 = ""
availability = "online"
23 = ""
availability = "online"
24 = ""
availability = "online"
25 = ""
availability = "online"
26 = ""
availability = "online"
27 = ""
availability = "online"
28 = ""
availability = "online"
29 = ""
availability = "online"
30 = ""
availability = "online"
31 = ""
availability = "online"
32 = ""
availability = "online"
33 = ""
availability = "online"
34 = ""
availability = "online"
35 = ""
availability = "online"
36 = ""
availability = "online"
37 = ""
availability = "online"
38 = ""
availability = "online"
39 = ""
availability = "online"
memory = ""
static-max = "4194304"
target = "4194305"
videoram = "-1"
device = ""
suspend = ""
event-channel = ""
vbd = ""
51713 = ""
backend = "/local/domain/0/backend/qdisk/3/51713" backend-id = "0"
state = "4"
virtual-device = "51713"
device-type = "disk"
protocol = "x86_64-abi"
ring-ref = "8"
event-channel = "243"
feature-persistent = "1"
51714 = ""
backend = "/local/domain/0/backend/qdisk/3/51714" backend-id = "0"
state = "4"
virtual-device = "51714"
device-type = "disk"
protocol = "x86_64-abi"
ring-ref = "9"
event-channel = "244"
feature-persistent = "1"
vif = ""
0 = ""
backend = "/local/domain/0/backend/vif/3/0" backend-id = "0"
state = "4"
handle = "0"
mac = "00:16:3e:ee:aa:aa" multi-queue-num-queues = "17"
queue-0 = ""
tx-ring-ref = "8960"
rx-ring-ref = "8961"
event-channel-tx = "245"
event-channel-rx = "246"
queue-1 = ""
tx-ring-ref = "8962"
rx-ring-ref = "8963"
event-channel-tx = "247"
event-channel-rx = "248"
queue-2 = ""
tx-ring-ref = "8964"
rx-ring-ref = "8965"
event-channel-tx = "249"
event-channel-rx = "250"
queue-3 = ""
tx-ring-ref = "8966"
rx-ring-ref = "8967"
event-channel-tx = "251"
event-channel-rx = "252"
queue-4 = ""
tx-ring-ref = "8968"
rx-ring-ref = "8969"
event-channel-tx = "253"
event-channel-rx = "254"
queue-5 = ""
tx-ring-ref = "8970"
rx-ring-ref = "8971"
event-channel-tx = "255"
event-channel-rx = "256"
queue-6 = ""
tx-ring-ref = "8972"
rx-ring-ref = "8973"
event-channel-tx = "257"
event-channel-rx = "258"
queue-7 = ""
tx-ring-ref = "8974"
rx-ring-ref = "8975"
event-channel-tx = "259"
event-channel-rx = "260"
queue-8 = ""
tx-ring-ref = "8976"
rx-ring-ref = "8977"
event-channel-tx = "261"
event-channel-rx = "262"
queue-9 = ""
tx-ring-ref = "8978"
rx-ring-ref = "8979"
event-channel-tx = "263"
event-channel-rx = "264"
queue-10 = ""
tx-ring-ref = "8980"
rx-ring-ref = "8981"
event-channel-tx = "265"
event-channel-rx = "266"
queue-11 = ""
tx-ring-ref = "8982"
rx-ring-ref = "8983"
event-channel-tx = "267"
event-channel-rx = "268"
queue-12 = ""
tx-ring-ref = "8984"
rx-ring-ref = "8985"
event-channel-tx = "269"
event-channel-rx = "270"
queue-13 = ""
tx-ring-ref = "8986"
rx-ring-ref = "8987"
event-channel-tx = "271"
event-channel-rx = "272"
queue-14 = ""
tx-ring-ref = "8988"
rx-ring-ref = "8989"
event-channel-tx = "273"
event-channel-rx = "274"
queue-15 = ""
tx-ring-ref = "8990"
rx-ring-ref = "8991"
event-channel-tx = "275"
event-channel-rx = "276"
queue-16 = ""
tx-ring-ref = "8992"
rx-ring-ref = "8993"
event-channel-tx = "277"
event-channel-rx = "278" request-rx-copy = "1"
feature-rx-notify = "1"
feature-sg = "1"
feature-gso-tcpv4 = "1"
feature-gso-tcpv6 = "1"
feature-ipv6-csum-offload = "1"
1 = ""
backend = "/local/domain/0/backend/vif/3/1"
backend-id = "0"
state = "1"
handle = "1"
mac = "00:16:3e:ec:a7:b5"
control = ""
shutdown = ""
platform-feature-multiprocessor-suspend = "1"
platform-feature-xs_reset_watches = "1"
data = ""
domid = "3"
store = ""
port = "1"
ring-ref = "34073524"
console = ""
backend = "/local/domain/0/backend/console/3/0"
backend-id = "0"
limit = "1048576"
type = "xenconsoled"
output = "pty"
tty = "/dev/pts/1"
port = "2"
ring-ref = "16977979"
image = ""
device-model-pid = "7247"
Quoted 6 lines
Wei.
_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xen.org/xen-users
Quoted 38 lines · johnny Strom
Quoted 16 lines · Wei Liu
Quoted 6 lines · johnny Strom
Quoted 1 line · Wei Liu
xenstore-ls/local/domain/$DOMID/
Here is the output of xenstore-ls only one network card is working.
xenstore-ls /local/domain/1
[...]
Quoted 8 lines
vif = ""
0 = ""
backend = "/local/domain/0/backend/vif/1/0"
backend-id = "0"
state = "4"
handle = "0"
mac = "00:16:3e:ee:aa:aa"
multi-queue-num-queues = "17"Quoted 5 lines
OK so the number of queues is 17. You probably don't need that many queues.
Set module parameter "
xenvif_max_queues" of netback to something like 4 should work around the problem for you.Hello
I tried to set it to 4 in
/etc/modprobe.d/xen_netback.confrmmod
xen_netbackmodprobe -v
xen_netback
insmod/lib/modules/3.16.0-4-amd64/kernel/drivers/net/xen-netback/xen-netback.koxenvif_max_queues=4But it is still the same issue..
Quoted 8 lines
Is
xenvif_max_queuessupported in Linux kernel 3.16?modinfo -p
xen_netback
separate_tx_rx_irq: (bool)rx_drain_timeout_msecs: (uint)rx_stall_timeout_msecs: (uint)
max_queues:Maximum number of queues per virtual interface (uint)
Oh, right, the parameter name should be "max_queues".
Sorry about that!
Wei.
Quoted 46 lines · Wei Liu
Quoted 37 lines · johnny Strom
Quoted 16 lines · Wei Liu
Quoted 6 lines · johnny Strom
Quoted 1 line · Wei Liu
xenstore-ls/local/domain/$DOMID/
Here is the output of xenstore-ls only one network card is working.
xenstore-ls /local/domain/1
[...]
Quoted 8 lines
vif = ""
0 = ""backend = "/local/domain/0/backend/vif/1/0" backend-id = "0" state = "4" handle = "0" mac = "00:16:3e:ee:aa:aa" multi-queue-num-queues = "17"Quoted 5 lines
OK so the number of queues is 17. You probably don't need that many queues.
Set module parameter "
xenvif_max_queues" of netback to something like 4 should work around the problem for you.Hello
I tried to set it to 4 in
/etc/modprobe.d/xen_netback.confrmmod
xen_netbackmodprobe -v
xen_netback
insmod/lib/modules/3.16.0-4-amd64/kernel/drivers/net/xen-netback/xen-netback.koxenvif_max_queues=4But it is still the same issue..
Quoted 8 lines
Is
xenvif_max_queuessupported in Linux kernel 3.16?modinfo -p
xen_netback
separate_tx_rx_irq: (bool)rx_drain_timeout_msecs: (uint)rx_stall_timeout_msecs: (uint)
max_queues:Maximum number of queues per virtual interface (uint)
Quoted 5 lines
Oh, right, the parameter name should be "
max_queues".Sorry about that!
Wei.
It's still the same issue:
modprobe -v xen_netback
insmod /lib/modules/3.16.0-4-amd64/kernel/drivers/net/xen-netback/xen-netback.ko max_queues=4
But what could be reason for this?
Could it be problems with one of the CPUS? since if I boot dom0 with just 14 cpu cores then it works....
xenstore-ls /local/domain/7
vm = "/vm/8602b443-6828-44ca-9e2c-8023b2fe8583" name = "test.debian-jessie"
cpu = ""
0 = ""
availability = "online"
1 = ""
availability = "online"
2 = ""
availability = "online"
3 = ""
availability = "online"
4 = ""
availability = "online"
5 = ""
availability = "online"
6 = ""
availability = "online"
7 = ""
availability = "online"
8 = ""
availability = "online"
9 = ""
availability = "online"
10 = ""
availability = "online"
11 = ""
availability = "online"
12 = ""
availability = "online"
13 = ""
availability = "online"
14 = ""
availability = "online"
15 = ""
availability = "online"
16 = ""
availability = "online"
17 = ""
availability = "online"
18 = ""
availability = "online"
19 = ""
availability = "online"
20 = ""
availability = "online"
21 = ""
availability = "online"
22 = ""
availability = "online"
23 = ""
availability = "online"
24 = ""
availability = "online"
25 = ""
availability = "online"
26 = ""
availability = "online"
27 = ""
availability = "online"
28 = ""
availability = "online"
29 = ""
availability = "online"
30 = ""
availability = "online"
31 = ""
availability = "online"
32 = ""
availability = "online"
33 = ""
availability = "online"
34 = ""
availability = "online"
35 = ""
availability = "online"
36 = ""
availability = "online"
37 = ""
availability = "online"
38 = ""
availability = "online"
39 = ""
availability = "online"
memory = ""
static-max = "4194304"
target = "4194305"
videoram = "-1"
device = ""
suspend = ""
event-channel = ""
vbd = ""
51713 = ""
backend = "/local/domain/0/backend/qdisk/7/51713" backend-id = "0"
state = "4"
virtual-device = "51713"
device-type = "disk"
protocol = "x86_64-abi"
ring-ref = "8"
event-channel = "243"
feature-persistent = "1"
51714 = ""
backend = "/local/domain/0/backend/qdisk/7/51714" backend-id = "0"
state = "4"
virtual-device = "51714"
device-type = "disk"
protocol = "x86_64-abi"
ring-ref = "9"
event-channel = "244"
feature-persistent = "1"
vif = ""
0 = ""
backend = "/local/domain/0/backend/vif/7/0" backend-id = "0"
state = "4"
handle = "0"
mac = "00:16:3e:ee:aa:aa" multi-queue-num-queues = "17"
queue-0 = ""
tx-ring-ref = "8960"
rx-ring-ref = "8961"
event-channel-tx = "245"
event-channel-rx = "246"
queue-1 = ""
tx-ring-ref = "8962"
rx-ring-ref = "8963"
event-channel-tx = "247"
event-channel-rx = "248"
queue-2 = ""
tx-ring-ref = "8964"
rx-ring-ref = "8965"
event-channel-tx = "249"
event-channel-rx = "250"
queue-3 = ""
tx-ring-ref = "8966"
rx-ring-ref = "8967"
event-channel-tx = "251"
event-channel-rx = "252"
queue-4 = ""
tx-ring-ref = "8968"
rx-ring-ref = "8969"
event-channel-tx = "253"
event-channel-rx = "254"
queue-5 = ""
tx-ring-ref = "8970"
rx-ring-ref = "8971"
event-channel-tx = "255"
event-channel-rx = "256"
queue-6 = ""
tx-ring-ref = "8972"
rx-ring-ref = "8973"
event-channel-tx = "257"
event-channel-rx = "258"
queue-7 = ""
tx-ring-ref = "8974"
rx-ring-ref = "8975"
event-channel-tx = "259"
event-channel-rx = "260"
queue-8 = ""
tx-ring-ref = "8976"
rx-ring-ref = "8977"
event-channel-tx = "261"
event-channel-rx = "262"
queue-9 = ""
tx-ring-ref = "8978"
rx-ring-ref = "8979"
event-channel-tx = "263"
event-channel-rx = "264"
queue-10 = ""
tx-ring-ref = "8980"
rx-ring-ref = "8981"
event-channel-tx = "265"
event-channel-rx = "266"
queue-11 = ""
tx-ring-ref = "8982"
rx-ring-ref = "8983"
event-channel-tx = "267"
event-channel-rx = "268"
queue-12 = ""
tx-ring-ref = "8984"
rx-ring-ref = "8985"
event-channel-tx = "269"
event-channel-rx = "270"
queue-13 = ""
tx-ring-ref = "8986"
rx-ring-ref = "8987"
event-channel-tx = "271"
event-channel-rx = "272"
queue-14 = ""
tx-ring-ref = "8988"
rx-ring-ref = "8989"
event-channel-tx = "273"
event-channel-rx = "274"
queue-15 = ""
tx-ring-ref = "8990"
rx-ring-ref = "8991"
event-channel-tx = "275"
event-channel-rx = "276"
queue-16 = ""
tx-ring-ref = "8992"
rx-ring-ref = "8993"
event-channel-tx = "277"
event-channel-rx = "278" request-rx-copy = "1"
feature-rx-notify = "1"
feature-sg = "1"
feature-gso-tcpv4 = "1"
feature-gso-tcpv6 = "1"
feature-ipv6-csum-offload = "1"
1 = ""
backend = "/local/domain/0/backend/vif/7/1"
backend-id = "0"
state = "1"
handle = "1"
mac = "00:16:3e:ec:a7:b5"
control = ""
shutdown = ""
platform-feature-multiprocessor-suspend = "1"
platform-feature-xs_reset_watches = "1"
data = ""
domid = "7"
store = ""
port = "1"
ring-ref = "34073524"
console = ""
backend = "/local/domain/0/backend/console/7/0"
backend-id = "0"
limit = "1048576"
type = "xenconsoled"
output = "pty"
tty = "/dev/pts/1"
port = "2"
ring-ref = "16977978"
image = ""
device-model-pid = "9186"
Quoted 4 lines
_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xen.org/xen-users
Quoted 54 lines · johnny Strom
Quoted 46 lines · Wei Liu
Quoted 37 lines · johnny Strom
Quoted 16 lines · Wei Liu
Quoted 6 lines · johnny Strom
Quoted 1 line · Wei Liu
xenstore-ls/local/domain/$DOMID/
Here is the output of xenstore-ls only one network card is working.
xenstore-ls /local/domain/1
[...]
Quoted 8 lines
vif = ""
0 = ""
backend = "/local/domain/0/backend/vif/1/0"
backend-id = "0"
state = "4"
handle = "0"
mac = "00:16:3e:ee:aa:aa"
multi-queue-num-queues = "17"Quoted 5 lines
OK so the number of queues is 17. You probably don't need that many queues.
Set module parameter "
xenvif_max_queues" of netback to something like 4 should work around the problem for you.Hello
I tried to set it to 4 in
/etc/modprobe.d/xen_netback.confrmmod
xen_netbackmodprobe -v
xen_netback
insmod/lib/modules/3.16.0-4-amd64/kernel/drivers/net/xen-netback/xen-netback.koxenvif_max_queues=4But it is still the same issue..
Quoted 8 lines
Is
xenvif_max_queuessupported in Linux kernel 3.16?modinfo -p
xen_netback
separate_tx_rx_irq: (bool)rx_drain_timeout_msecs: (uint)rx_stall_timeout_msecs: (uint)
max_queues:Maximum number of queues per virtual interface (uint)Quoted 5 lines
Oh, right, the parameter name should be "
max_queues".Sorry about that!
Wei.
Quoted 7 lines
It's still the same issue:
modprobe -v
xen_netback
insmod/lib/modules/3.16.0-4-amd64/kernel/drivers/net/xen-netback/xen-netback.komax_queues=4
If there are the precise steps you took, isn't modprobe -v already inserted the module without parameter set? I.e. the later insmod had no effect.
Quoted 3 lines
But what could be reason for this?
Make sure that parameter is correctly set. You can look at /sys/module/xen_netback/parameter/max_queues for the actual number.
You can even just echo a number to that file to set the value on the fly.
Quoted 3 lines
Could it be problems with one of the CPUS? since if I boot dom0 with just 14 cpu cores then it works....
No, it can't be related to CPUs. That's because DomU doesn't exhaust resources anymore.
Wei.
Quoted 65 lines · Wei Liu
Quoted 51 lines · johnny Strom
Quoted 50 lines · Wei Liu
Quoted 37 lines · johnny Strom
Quoted 16 lines · Wei Liu
Quoted 6 lines · johnny Strom
Quoted 1 line · Wei Liu
xenstore-ls/local/domain/$DOMID/
Here is the output of xenstore-ls only one network card is working.
xenstore-ls /local/domain/1
[...]
Quoted 8 lines
vif = ""
0 = ""backend = "/local/domain/0/backend/vif/1/0" backend-id = "0" state = "4" handle = "0" mac = "00:16:3e:ee:aa:aa" multi-queue-num-queues = "17"Quoted 5 lines
OK so the number of queues is 17. You probably don't need that many queues.
Set module parameter "
xenvif_max_queues" of netback to something like 4 should work around the problem for you.Hello
I tried to set it to 4 in
/etc/modprobe.d/xen_netback.confrmmod
xen_netbackmodprobe -v
xen_netback
insmod/lib/modules/3.16.0-4-amd64/kernel/drivers/net/xen-netback/xen-netback.koxenvif_max_queues=4But it is still the same issue..
Quoted 8 lines
Is
xenvif_max_queuessupported in Linux kernel 3.16?modinfo -p
xen_netback
separate_tx_rx_irq: (bool)rx_drain_timeout_msecs: (uint)rx_stall_timeout_msecs: (uint)
max_queues:Maximum number of queues per virtual interface (uint)Oh, right, the parameter name should be "
max_queues".Sorry about that!
Quoted 9 lines
Quoted 1 line
Wei.
It's still the same issue:
modprobe -v
xen_netback
insmod/lib/modules/3.16.0-4-amd64/kernel/drivers/net/xen-netback/xen-netback.komax_queues=4If there are the precise steps you took, isn't modprobe -v already inserted the module without parameter set? I.e. the later insmod had no effect.
Quoted 7 lines
Quoted 2 lines
But what could be reason for this?
Make sure that parameter is correctly set. You can look at
/sys/module/xen_netback/parameter/max_queuesfor the actual number.You can even just echo a number to that file to set the value on the fly.
Yes thanks that works, I will figure out how to load the module.
Quoted 6 lines
Quoted 4 lines
Could it be problems with one of the CPUS? since if I boot dom0 with just 14 cpu cores then it works....
No, it can't be related to CPUs. That's because DomU doesn't exhaust resources anymore.
Ok
And DomU also works if I use the kernel 3.2.68-1+deb7u2 that is in debian Wheezy.
Best Regards Johnny
Quoted 7 lines
Wei.
_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xen.org/xen-users
Quoted 56 lines · Wei Liu
Quoted 55 lines · johnny Strom
Quoted 46 lines · Wei Liu
Quoted 37 lines · johnny Strom
Quoted 16 lines · Wei Liu
Quoted 6 lines · johnny Strom
Quoted 1 line · Wei Liu
xenstore-ls/local/domain/$DOMID/
Here is the output of xenstore-ls only one network card is working.
xenstore-ls /local/domain/1
[...]
Quoted 8 lines
vif = ""
0 = ""backend = "/local/domain/0/backend/vif/1/0" backend-id = "0" state = "4" handle = "0" mac = "00:16:3e:ee:aa:aa" multi-queue-num-queues = "17"Quoted 5 lines
OK so the number of queues is 17. You probably don't need that many queues.
Set module parameter "
xenvif_max_queues" of netback to something like 4 should work around the problem for you.Hello
I tried to set it to 4 in
/etc/modprobe.d/xen_netback.confrmmod
xen_netbackmodprobe -v
xen_netback
insmod/lib/modules/3.16.0-4-amd64/kernel/drivers/net/xen-netback/xen-netback.koxenvif_max_queues=4But it is still the same issue..
Quoted 8 lines
Is
xenvif_max_queuessupported in Linux kernel 3.16?modinfo -p
xen_netback
separate_tx_rx_irq: (bool)rx_drain_timeout_msecs: (uint)rx_stall_timeout_msecs: (uint)
max_queues:Maximum number of queues per virtual interface (uint)Quoted 5 lines
Oh, right, the parameter name should be "
max_queues".Sorry about that!
Wei.
It's still the same issue:
Quoted 8 lines
Quoted 5 lines
modprobe -v
xen_netback
insmod/lib/modules/3.16.0-4-amd64/kernel/drivers/net/xen-netback/xen-netback.komax_queues=4If there are the precise steps you took, isn't modprobe -v already inserted the module without parameter set? I.e. the later insmod had no effect.
Hello again
I am not sure but there might be another issue with the xen_netback module in Debian jessie.
I am not able to set the max_queues options so that it is set at load time.
I have tested with the loop kernel module where it works to set an value but doing the same for the xen_netback driver dose not work:
This works with loop module like this:
options loop max_loop=50
And then doing the same with the xen_netback that dose not work:
options xen_netback max_queues=4
Or is there some other way it should be set in /etc/modprobe.d/xen_netback.conf?
Best regards Johnny
Quoted 20 lines
Quoted 2 lines
But what could be reason for this?
Make sure that parameter is correctly set. You can look at
/sys/module/xen_netback/parameter/max_queuesfor the actual number.You can even just echo a number to that file to set the value on the fly.
Quoted 3 lines
Could it be problems with one of the CPUS? since if I boot dom0 with just 14 cpu cores then it works....
No, it can't be related to CPUs. That's because DomU doesn't exhaust resources anymore.
Wei.
_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xen.org/xen-users
On Wed, Sep 09, 2015 at 10:09:09AM +0300, johnny Strom wrote:
[...]
Quoted 15 lines
Hello again
I am not sure but there might be another issue with the
xen_netbackmodule in Debian jessie.I am not able to set the
max_queuesoptions so that it is set at load time.I have tested with the loop kernel module where it works to set an value but doing the same for
thexen_netbackdriver dose not work:This works with loop module like this:
options loop max_loop=50
Quoted 9 lines
And then doing the same with the
xen_netbackthat dose not work:
optionsxen_netbackmax_queues=4Or is there some other way it should be set in
/etc/modprobe.d/xen_netback.conf?Best regards Johnny
After looking at the code more carefully I think that's a bug.
I will send a patch to fix it when I get around to do it. In the mean time (till the bug fix is propagated to Debian, that probably takes quite a bit of time), you can use a script to echo the value you want to the control knob during system startup.
I will put a Reported-by tag with your email address in my patch if you don't mind. I will also CC you on that patch I'm going to send so that you have an idea when it's merged upstreamed.
Wei.
Quoted 27 lines · Wei Liu
On Wed, Sep 09, 2015 at 10:09:09AM +0300, johnny Strom wrote:
[...]Quoted 14 lines
Hello again
I am not sure but there might be another issue with the
xen_netbackmodule in Debian jessie.I am not able to set the
max_queuesoptions so that it is set at load time.I have tested with the loop kernel module where it works to set an value but doing the same for
thexen_netbackdriver dose not work:This works with loop module like this:
options loop max_loop=50Quoted 9 lines
And then doing the same with the
xen_netbackthat dose not work:
optionsxen_netbackmax_queues=4Or is there some other way it should be set in
/etc/modprobe.d/xen_netback.conf?Best regards Johnny
After looking at the code more carefully I think that's a bug.
Quoted 8 lines
I will send a patch to fix it when I get around to do it. In the mean time (till the bug fix is propagated to Debian, that probably takes quite a bit of time), you can use a script to echo the value you want to the control knob during system startup.
I will put a Reported-by tag with your email address in my patch if you don't mind. I will also CC you on that patch I'm going to send so that you have an idea when it's merged upstreamed.
Thanks
It's ok to put my email in the patch.
Best regards Johnny
Quoted 1 line
Wei.