[#5165] netperf TCP REQUEST/RESPONSE test with big buffer on bf537 has obvious drop

Document created by Aaronwu Employee on Sep 3, 2013
Version 1Show Document
  • View in full screen mode

[#5165] netperf TCP REQUEST/RESPONSE test with big buffer on bf537 has obvious drop

Submitted By: Mingquan Pan

Open Date

2009-05-27 00:25:31     Close Date

2009-06-17 04:12:02

Priority:

Medium     Assignee:

Michael Hennerich

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Assigned (Not Start)

Uboot version or rev.:

    Toolchain version or rev.:

09r1-rc6

App binary format:

N/A     

Summary: netperf TCP REQUEST/RESPONSE test with big buffer on bf537 has obvious drop

Details:

 

netperf TCP REQUEST/RESPONSE test with big buffer on bf537 has obvious drop.

 

Log from May_26:

bfin> bootm

## Booting kernel from Legacy Image at 02000000 ...

   Image Name:   Linux-2.6.28.10-ADI-2009R1-svn64

   Created:      2009-05-26  11:57:23 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    4888918 Bytes =  4.7 MB

   Load Address: 00001000

   Entry Point:  0018855c

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 0018855c

Linux version 2.6.28.10-ADI-2009R1-svn6473 (test@uclinux54-adv7393-ad1981-usb1362) (gcc version 4.1.2 (ADI svn)) #4 Tue May 26 19:57:10 CST 2009

Warning: limiting memory to 56MB due to hardware anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00105bc0

  rodata    = 0x00105bc0-0x00157204

  bss       = 0x00158000-0x00169728

  data      = 0x00169728-0x0017a000

    stack   = 0x00178000-0x0017a000

  init      = 0x0017a000-0x0090a000

  available = 0x0090a000-0x037ff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 0

Reset caused by Software reset

Blackfin support (C) 2004-2009 Analog Devices, Inc.

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 500 MHz core clock and 125 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-back)

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 14223

Kernel command line:

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

console [ttyBF0] enabled

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 47516k/65536k RAM, (7744k init code, 1042k kernel code, 466k data, 1024k dma, 7744k reserved)

Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (15 KB free)

Blackfin L1 Data B SRAM: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 48 KB (37 KB free)

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

NET: Registered protocol family 1

msgmni has been set to 92

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

brd: module loaded

bfin_mii_bus: probed

bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-10-11 00:51:49 UTC (24454309)

Freeing unused kernel memory: 7744k freed

dma_alloc_init: dma_page @ 0x00906000 - 256 pages at 0x03f00000

                           _____________________________________

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/

/     \.___.d|    .'           - http://www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin

 

Have a lot of fun...

 

 

BusyBox v1.13.4 (2009-05-26 18:08:37 CST) built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/> version

kernel:    Linux release 2.6.28.10-ADI-2009R1-svn6473, build #4 Tue May 26 19:57:10 CST 2009

toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release svn-8134, build #4 Tue May 26 19:56:14 CST 2009

root:/>

************** STEP 3: Start testing.

 

ifconfig eth0 10.100.4.50

root:/> PHY: 0:01 - Link is Up - 100/Full

 

************** STEP 4: Untar netperf.

 

sh-3.00$ sudo ./netserver_x86

Password:

Starting netserver at port 12865

sh-3.00$ ps aux| grep netserver_x86 | head -1

root     24490  0.0  0.0   1692   436 ?        Ss   19:58   0:00 ./netserver_x86

sh-3.00$ cd /

root:/> chmod 777 netperf_script

root:/> ./netperf_script

root:/> sudo pkill netserver_x86

Password:

sh-3.00$ cat netperf_tcp_rr

TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.100.4.174 (10.100.4.174) port 0 AF_INET

Local /Remote

Socket Size   Request  Resp.   Elapsed  Trans.

Send   Recv   Size     Size    Time     Rate

bytes  Bytes  bytes    bytes   secs.    per sec

 

16384  87380  1        1       600.00   1765.17

16384  87380

root:/> cat netperf_tcp_stream

TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.100.4.174 (10.100.4.174) port 0 AF_INET

Recv   Send    Send

Socket Socket  Message  Elapsed

Size   Size    Size     Time     Throughput

bytes  bytes   bytes    secs.    10^6bits/sec

 

87380  16384  16384    600.00     93.36

root:/>

Last passed time: 2009_May_24_03_00, ucdist ver: 8100, kernel ver: 6451

 

Case 1 ...FAIL

 

while on May 24:

root:/> sudo pkill netserver_x86 ^M

Password:^M

sh-3.00$ cat netperf_tcp_rr^M

TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.100.4.174 (10.100.4.174) port 0 AF_INET^M

Local /Remote^M

Socket Size   Request  Resp.   Elapsed  Trans.^M

Send   Recv   Size     Size    Time     Rate         ^M

bytes  Bytes  bytes    bytes   secs.    per sec   ^M

^M

16384  87380  1        1       600.00   5259.96   ^M

16384  87380 ^M

root:/> cat netperf_tcp_stream^M

TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.100.4.174 (10.100.4.174) port 0 AF_INET^M

Recv   Send    Send                          ^M

Socket Socket  Message  Elapsed              ^M

Size   Size    Size     Time     Throughput  ^M

bytes  bytes   bytes    secs.    10^6bits/sec  ^M

^M

87380  16384  16384    600.00     93.24   ^M

root:/>

 

The results are got from the same board and same machine, and this issue is seen on several other machines that test bf537 board.

 

The kernel config is:

  Ethernet (10 or 100Mbit) (NET_ETHERNET) [Y/n/?] ^M

    Generic Media Independent Interface device support (MII) [Y/?] y^M

    Blackfin on-chip MAC support (BFIN_MAC) [Y/n/m/?] ^M

      Use L1 memory for rx/tx packets (BFIN_MAC_USE_L1) [Y/n/?] N^M

      Number of transmit buffer packets (BFIN_TX_DESC_NUM) [10] 100^M

      Number of receive buffer packets (BFIN_RX_DESC_NUM) [20] 500^M

      RMII PHY Interface (EXPERIMENTAL) (BFIN_MAC_RMII) [N/y/?] ^M

    SMC 91C9x/91C1xxx support (SMC91X) [N/m/y/?] ^M

    SMSC LAN911x/LAN921x families embedded ethernet support (SMSC911X) [N/m/y/?] ^M

    DM9000 support (DM9000) [N/m/y/?] ^M

    ENC28J60 support (ENC28J60) [N/m/y/?] ^M

    Broadcom 440x/47xx ethernet support (B44) [N/m/y/?] ^M

 

config file for kernel is attached.

 

Pass ver: uclinux-dist:8100,linux:6451

FAIL ver: uclinux-dist:8138,linux:6473

 

 

Follow-ups

 

--- Mingquan Pan                                             2009-06-17 04:12:02

ok, it looks the results comes back to normal again now.

 

on branch head, we get:

...

Linux version 2.6.28.10-ADI-2009R1-svn6731

(test@uclinux54-adv7393-ad1981-usb1362) (gcc version 4.1.2 (ADI svn)) #34 Tue

Jun 16 15:34:25 CST 2009^M

...

Password:^M

sh-3.00$ cat netperf_tcp_rr^M

TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.100.4.174

(10.100.4.174) port 0 AF_INET^M

Local /Remote^M

Socket Size   Request  Resp.   Elapsed  Trans.^M

Send   Recv   Size     Size    Time     Rate         ^M

bytes  Bytes  bytes    bytes   secs.    per sec   ^M

^M

16384  87380  1        1       600.00   5265.77   ^M

16384  87380 ^M

root:/> cat netperf_tcp_stream^M

TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.100.4.174

(10.100.4.174) port 0 AF_INET^M

Recv   Send    Send                          ^M

Socket Socket  Message  Elapsed              ^M

Size   Size    Size     Time     Throughput  ^M

bytes  bytes   bytes    secs.    10^6bits/sec  ^M

^M

87380  16384  16384    600.00     89.65   ^M

 

So close for now.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.ethernet_in_buffer    application/octet-stream    32797    Mingquan Pan

Outcomes