Data broken during FTP test
Hi all,
Currently we have severe problem and are struggling to investigate it. The problem is data broken.
Reproduce pocess is following,
0. test FTP function between guest domain and FTP client(other PC).
1. put data from FTP client to guest domain.
2. get data from guest domain to FTP client.
3. compare put data and get data on FTP client.
4. repeat process from step1 to step3.
5. create other guest domain his configuration including vif
definition during test repeating.
It is more possible to be happen when some FTP tests are running at
same time.
And at every moments data are broken when FTP client get data from
guest domain.
When we set SG(scatter/gather) flag off with peth0 of domain0, data
are not broken.
This problem is happened only particular NIC,
08:04.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5715 Gigabit
Ethernet (rev a3)
The following NIC case, we can not recreate the problem.
04:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708S Gigabit
Ethernet (rev 11)
Do you have any idea for investigating.
Thank you. Nishi
Quoted 10 lines · Hidetoshi Nishi
It is more possible to be happen when some FTP tests are running at
same time.
And at every moments data are broken when FTP client get data from
guest domain.
When we set SG(scatter/gather) flag off with peth0 of domain0, data
are not broken.This problem is happened only particular NIC,
08:04.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5715 Gigabit
Ethernet (rev a3)
Rather worrying. I wonder if you are triggering one of the Broadcom highmem DMA bugs? It would possibly happen that turning off scatter/gather will cause you to copy to skbuffs that happen to be e.g., below 1GB.
How much memory does the offending machine have? If more than 1GB, can you repro if you boot Xen with 'mem=1G' as a boot parameter?
How much memory do you allocate to domain0 at boot time? What version of Xen are you using? What version of dom0 kernel?
-- Keir
Hi Keir,
Thank you for reply.
Quoted 1 line
How much memory does the offending machine have?
This machine has the memory of 10GB.
Quoted 1 line
If more than 1GB, can you repro if you boot Xen with 'mem=1G' as a boot parameter?
We tried to boot Xen with 'mem=1G' as boot parameter. At this time, FTP data was not broken.
The environment is as follows.
- SG(scatter/gather) flag on
- The memory of dom0 is 256MByte.
- The memory of guest(PV) domain is 256MByte.
Quoted 1 line
How much memory do you allocate to domain0 at boot time?
The memory of dom0 allocated 1GByte at boot time. (dom0_mem=1024M)
Quoted 1 line
What version of Xen are you using?
The version of Xen uses RHEL5GA.
Therefore, the base of Xen is xen-3.0.3-testing.hg.
Quoted 1 line
What version of dom0 kernel?
The version of dom0 is 2.6.18-8.
Best regards,
--
Takanori Kasai
If you are running in PAE mode then you should try modifying the kernel file drivers/net/tg3.c and changing any '#ifdef CONFIG_HIGHMEM' to '#if 0'. It may also be worth doing some tracing around the code that does pci_set_dma_mask() to see what path you are taking there and what mask the driver is choosing to set.
-- Keir
Quoted 37 lines · Kasai Takanori
Hi Keir,
Thank you for reply.
Quoted 1 line
How much memory does the offending machine have?
This machine has the memory of 10GB.
Quoted 2 lines
If more than 1GB, can you repro if you boot Xen with 'mem=1G' as a boot parameter?
We tried to boot Xen with 'mem=1G' as boot parameter. At this time, FTP data was not broken.
The environment is as follows.
- SG(scatter/gather) flag on
- The memory of dom0 is 256MByte.
- The memory of guest(PV) domain is 256MByte.Quoted 1 line
How much memory do you allocate to domain0 at boot time?
The memory of dom0 allocated 1GByte at boot time. (dom0_mem=1024M)
Quoted 1 line
What version of Xen are you using?
The version of Xen uses RHEL5GA.
Therefore, the base of Xen is xen-3.0.3-testing.hg.Quoted 1 line
What version of dom0 kernel?
The version of dom0 is 2.6.18-8.
Best regards,
--
Takanori Kasai_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hi Keir,
Thank you for reply.
Quoted 5 lines
If you are running in PAE mode then you should try modifying the kernel file
drivers/net/tg3.cand changing any '#ifdefCONFIG_HIGHMEM' to '#if 0'. It may also be worth doing some tracing around the code that doespci_set_dma_mask()to see what path you are taking there and what mask the driver is choosing to set.
However, the same problem happens to another NIC connected with the same machine. It is the following NIC.
05:03.0 Intel Corporation 82545GM Gigabit Ethernet Controller (rev 04)
'# ifdef CONFIG_HIGHMEM' was not being at least defined by the e1000 driver.
When pethX was captured with tcpdump, FTP data was not broken. But, when it was captured in the FTP client(other PC), FTP data was broken.
When we create other domain, FTP data seems to be sent again.
Do you have any idea for investigating.
Best regards,
--
Takanori Kasai