[#4545] netperf REQUEST/RESPONSE test on bfin mac slower than before      

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

[#4545] netperf REQUEST/RESPONSE test on bfin mac slower than before

Submitted By: Mingquan Pan

Open Date

2008-10-19 23:19:54     Close Date

2009-03-03 03:30:44

Priority:

Medium     Assignee:

Nobody

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:

Out of Date

Uboot version or rev.:

    Toolchain version or rev.:

Oct 10

App binary format:

N/A     

Summary: netperf REQUEST/RESPONSE test on bfin mac slower than before

Details:

 

netperf REQUEST/RESPONSE test on bfin mac slower than before now.

 

The current number of the test is about:

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

sh-3.00$ sudo ./netserver_x86 ^M

Password:^M

Starting netserver at port 12865^M

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

root       572  0.0  0.0   1728   448 ?        Ss   00:08   0:00 ./netserver_x86^M

sh-3.00$ cd /^M

root:/> chmod 777 netperf_script^M

root:/> ./netperf_script^M

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   3646.33   ^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     80.38   ^M

 

in which Trans.Rate per sec is around 3646.33, seldom over 4000, which is a normal value about one month ago, and STREAM TEST sometimes would get lower than 80 10^6bits/sec.

 

Follow-ups

 

--- Mingquan Pan                                             2009-01-20 22:44:14

And the Blackfin on-chip MAC driver on bf527 ezkit board is much slower with the

same default

 

<*>   Blackfin on-chip MAC support                                     

                                  │ │

  │ │                                     [*]     Use L1 memory for rx/tx

packets                                                                    │

  │ │                                     (10)    Number of transmit buffer

packets                                                                  │

  │ │                                     (20)    Number of receive buffer

packets  

 

the results are:

 

## Booting image at 02000000 ...

   Image Name:   Linux-2.6.28-ADI-2009R1-pre-svn6

   Created:      2009-01-18   7:29:20 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3929120 Bytes =  3.7 MB

   Load Address: 00001000

   Entry Point:  0018b48c

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 18b48c

Linux version 2.6.28-ADI-2009R1-pre-svn6027 (test@uclinux60-bf527-std) (gcc

version 4.1.2 (ADI svn)) #21 Sun Jan 18 15:29:04 CST 2009

console [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0010c0f0

  rodata    = 0x0010c0f0-0x0015f508

  bss       = 0x0015f510-0x0016dfa8

  data      = 0x0016dfa8-0x0017e000

    stack   = 0x0017c000-0x0017e000

  init      = 0x0017e000-0x00753000

  available = 0x00753000-0x03eff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 1

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

Compiled for ADSP-BF527 Rev 0.0

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 525 MHz core clock and 131 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-through)

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

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600

ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf527-ezkit:eth0:off

Configuring Blackfin Priority Driven Interrupts

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

console handover: boot [early_BFuart0] -> real [ttyBF0]

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

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

Memory available: 56428k/65536k RAM, (5972k init code, 1068k kernel code, 456k

data, 1024k dma, 584k reserved)

Calibrating delay loop... 1044.48 BogoMIPS (lpj=2088960)

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 (42 KB free)

PDA for CPU0 reserved at 00160440

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

ezkit_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 110

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bfin-t350mcqb: 320x240 24-bit RGB FrameBuffer initializing...

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

bfin-otp: initialized

Serial: Blackfin serial driver

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

brd: module loaded

bfin_mac_mdio: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1,

mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)

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

m25p80 spi0.1: m25p16 (2048 Kbytes)

Creating 2 MTD partitions on "m25p80":

0x00000000-0x00040000 : "bootloader(spi)"

0x00040000-0x00200000 : "linux kernel(spi)"

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 2004-06-01 14:08:02 UTC

(1086098882)

IP-Config: Complete:

     device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,

     host=bf527-ezkit, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 5972k freed

                           _____________________________________

        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|            -   blackfin.uclinux.org/

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

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

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

 

Have a lot of fun...

 

 

BusyBox v1.13.2 (2009-01-18 14:09:17 CST) built-in shell (msh)

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

 

root:/> PHY

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

 

: 0:01 - Link is Up - 100/Full

ifconfig eth0 10.100.4.50

root:/>

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

 

test@uclinux60-bf527-std:~/work/cruise/checkouts/uclinux-dist/testsuites/ethernet>

sudo ./netserver_x86

root's password:

Starting netserver at port 12865

test@uclinux60-bf527-std:~/work/cruise/checkouts/uclinux-dist/testsuites/ethernet>

ps aux| grep netserver_x86 | head -1

root     16421  0.0  0.0   1812   240 ?        Ss   15:30   0:00

./netserver_x86

test@uclinux60-bf527-std:~/work/cruise/checkouts/uclinux-dist/testsuites/ethernet>

cd /

root:/> chmod 777 netperf_script

root:/> ./netperf_script

root:/> sudo pkill netserver_x86

root's password:

test@uclinux60-bf527-std:~/work/cruise/checkouts/uclinux-dist/testsuites/ethernet>

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   3772.95

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     27.33

root:/> Connected to 10.100.4.50.

220 localhost.localdomain FTP server (GNU inetutils 1.4.1) ready.

Name (10.100.4.50:test): root

331 Password required for root.

uClinux

 

 

--- Sonic Zhang                                              2009-03-03 03:30:44

out of date after the ssync fix in bfin_mac driver.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes