FAQ: [#6551] malloc_perf case fails on 561 SMP kernel(2011)

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

[#6551] malloc_perf case fails on 561 SMP kernel

Submitted By: Mingquan Pan

Open Date

2011-04-19 04:07:44    

Priority:

Low     Assignee:

steven miao

Status:

Open     Fixed In Release:

N/A

Found In Release:

2011R1     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Under Debugging

Uboot version or rev.:

    Toolchain version or rev.:

5013

App binary format:

N/A     

Summary: malloc_perf case fails on 561 SMP kernel

Details:

 

malloc_perf case fails on 561 SMP kernel.

 

bfin> bootm

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

   Image Name:   bf561-0.5-2.6.38.3-ADI-2011R1-pr

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3822535 Bytes = 3.6 MiB

   Load Address: 00001000

   Entry Point:  001ad2dc

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001ad2dc

Linux version 2.6.38.3-ADI-2011R1-pre-svn9857 (test@uclinux65-561-SMP) (gcc version 4.3.5 (ADI-trunk/svn-5013) ) #6 SMP Tue Apr 19 01:54:37 GMT 2011

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00127508

  rodata    = 0x00127520-0x00180f94

  bss       = 0x00181000-0x00192f00

  data      = 0x00192f00-0x001a6000

    stack   = 0x001a4000-0x001a6000

  init      = 0x001a6000-0x00741000

  available = 0x00741000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 0

Reset caused by Software reset

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

Compiled for ADSP-BF561 Rev 0.5

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

Processor Speed: 600 MHz core clock and 100 MHz System Clock

NOMPU: setting up cplb tables

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

  L2 SRAM        : uncacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-through) in data cache

  L2 SRAM        : uncacheable in data cache

PERCPU: Embedded 7 pages/cpu @007c6000 s4384 r8192 d16096 u32768

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

Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf561-ezkit:eth0:off

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

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

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

Memory available: 56444k/65536k RAM, (5740k init code, 1177k kernel code, 507k data, 1024k dma, 644k reserved)

Hierarchical RCU implementation.

NR_IRQS:153

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 1187.84 BogoMIPS (lpj=2375680)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

Booting Core B.

Brought up 2 CPUs

Instruction Cache Enabled for CPU1

  External memory: cacheable in instruction cache

  L2 SRAM        : uncacheable in instruction cache

Data Cache Enabled for CPU1

  External memory: cacheable (write-through) in data cache

  L2 SRAM        : uncacheable in data cache

SMP: Total of 2 processors activated (4.09 BogoMIPS).

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Scratchpad data SRAM: 4 KB

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

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

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

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

Blackfin L1 Instruction SRAM: 16 KB (15 KB free)

Blackfin L1 Instruction SRAM: 16 KB (15 KB free)

Blackfin L2 SRAM: 128 KB (127 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

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

Switching to clocksource bfin_cs_gptimer0

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: 2, 16384 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

UDP hash table entries: 128 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)

NET: Registered protocol family 1

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 110

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

brd: module loaded

smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>

eth0: SMC91C11xFD (rev 2) at 2c010300 IRQ 82 [nowait]

eth0: Ethernet addr: 00:e0:22:fe:ba:2a

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

TCP cubic registered

NET: Registered protocol family 17

eth0: link down

IP-Config: Complete:

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

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

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

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

Freeing unused kernel memory: 5740k freed

eth0: link up, 100Mbps, full-duplex, lpa 0x41E1

                           _____________________________________

        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.18.4 (2011-04-18 18:07:07 GMT) hush - the humble shell

 

root:/> version

kernel:    Linux release 2.6.38.3-ADI-2011R1-pre-svn9857, build #6 SMP Tue Apr 19 01:54:37 GMT 2011

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5013)

user-dist: release svn-10140, build #17 Tue Apr 19 01:52:36 GMT 2011

root:/> successful boot attempt

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

 

uname -a

Linux blackfin 2.6.38.3-ADI-2011R1-pre-svn9857 #6 SMP Tue Apr 19 01:54:37 GMT 2011 blackfin GNU/Linux

root:/> dmesg|grep MPU

NOMPU: setting up cplb tables

NOMPU: setting up cplb tables

root:/> malloc-perf 200

00004k : 0x02950004  000003 000004 000048

00008k : 0x027ca004  000003 000004 000041

00012k : 0x020b8004  000003 000005 000187

00016k : 0x02960004  000004 000004 000054

00020k : 0x02968004  000004 000004 000048

00024k : 0x02970004  000004 000004 000049

00028k : 0x02978004  000004 000004 000059

00032k : 0x02a80004  000039 000040 000067

00036k : 0x02a80004  000045 000049 000220

00040k : 0x02a80004  000045 000054 000779

00044k : 0x02a80004  000045 000050 000237

00048k : 0x02a80004  000046 000049 000219

00052k : 0x02a80004  000045 000048 000198

00056k : 0x02a80004  000045 000050 000223

00060k : 0x02a80004  000045 000050 000236

00064k : 0x02a80004  000045 000048 000217

00068k : 0x02a80004  000058 000063 000215

00072k : 0x02a80004  000058 000074 001142

00076k : 0x02a80004  000058 000062 000239

00080k : 0x02a80004  000059 000065 000372

00084k : 0x02a80004  000058 000065 000254

00088k : 0x02a80004  000058 000063 000227

00092k : 0x02a80004  000058 000061 000090

00096k : 0x02a80004  000057 000069 001166

00100k : 0x02a80004  000057 000061 000234

00104k : 0x02a80004  000058 000065 000258

00108k : 0x02a80004  000058 000062 000235

00112k : 0x02a80004  000059 000063 000232

00116k : 0x02a80004  000058 000062 000235

00120k : 0x02a80004  000058 000063 000232

00124k : 0x02a80004  000058 000061 000090

00128k : 0x02a80004  000058 000061 000086

00256k : 0x02a80004  000084 000094 000269

00384k : 0x02a80004  000138 000162 001221

00512k : 0x02a80004  000138 000151 000323

00640k : 0x02b00004  000249 000270 000437

00768k : 0x02b00004  000249 000270 000431

00896k : 0x02b00004  000249 000273 000435

01024k : 0x02b00004  000249 000277 000512

TEST FAIL

root:/> malloc-perf 200

00004k : 0x027be004  000003 000004 000047

00008k : 0x027ca004  000003 000004 000042

00012k : 0x02948004  000003 000005 000175

00016k : 0x020b8004  000003 000004 000051

00020k : 0x02960004  000004 000004 000049

00024k : 0x02968004  000004 000005 000077

00028k : 0x02970004  000004 000004 000061

00032k : 0x02978004  000037 000038 000063

00036k : 0x02a80004  000045 000048 000195

00040k : 0x02a80004  000045 000048 000204

....root:/> malloc-perf 200

00004k : 0x02919004  000003 000004 000048

00008k : 0x02906004  000003 000004 000040

00012k : 0x02948004  000003 000004 000043

00016k : 0x02910004  000003 000004 000051

00020k : 0x02960004  000003 000004 000050

00024k : 0x02968004  000004 000010 000737

00028k : 0x02970004  000004 000004 000062

00032k : 0x02978004  000037 000039 000191

00036k : 0x02a80004  000045 000048 000215

00040k : 0x02a80004  000045 000048 000201

00044k : 0x02a80004  000045 000052 000232

00048k : 0x02a80004  000045 000049 000187

00052k : 0x02a80004  000045 000049 000215

00056k : 0x02a80004  000045 000048 000200

00060k : 0x02a80004  000045 000050 000224

00064k : 0x02a80004  000045 000053 000251

00068k : 0x02a80004  000058 000063 000240

00072k : 0x02a80004  000058 000062 000261

00076k : 0x02a80004  000058 000062 000220

00080k : 0x02a80004  000058 000064 000240

00084k : 0x02a80004  000058 000064 000237

00088k : 0x02a80004  000058 000063 000243

00092k : 0x02a80004  000058 000065 000272

00096k : 0x02a80004  000058 000063 000243

00100k : 0x02a80004  000058 000062 000233

00104k : 0x02a80004  000058 000062 000229

00108k : 0x02a80004  000058 000063 000233

00112k : 0x02a80004  000058 000063 000244

00116k : 0x02a80004  000058 000065 000263

00120k : 0x02a80004  000058 000062 000231

00124k : 0x02a80004  000058 000061 000087

00128k : 0x02a80004  000058 000063 000235

00256k : 0x02a80004  000085 000092 000257

00384k : 0x02a80004  000138 000149 000326

00512k : 0x02a80004  000138 000160 001314

00640k : 0x02b00004  000250 000272 000448

00768k : 0x02b00004  000250 000275 000448

00896k : 0x02b00004  000250 000272 000435

01024k : 0x02b00004  000250 000271 000433

TEST FAIL

root:/> malloc-perf fails for 10 times

 

Last passed time: 2010_Sep_29_02_32, ucdist ver: 9833, kernel ver: 9171

 

Case 1 ...FAIL

 

Case 1 ...FAIL

 

 

 

Follow-ups

 

--- steven miao                                              2011-07-01 01:11:12

I did some regression tests, it seems that the performance of early revison is

worse than recent revision.

 

Linux version 2.6.34.7-ADI-2010R1-pre-ga2effc0 (steven@lab-desktop) (gcc

version 4.3.5 (ADI-2010R1-RC4) ) #16 SMP Fri Jul 1 11:48:00 CST 2011

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Limiting kernel memory to 56MB due to anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

 

 

root:/> malloc-perf 200

00004k : 0x029db004  000003 000004 000073

00008k : 0x02a1e004  000003 000006 000137

00012k : 0x02a28004  000003 000004 000130

00016k : 0x02a2c004  000003 000004 000150

00020k : 0x02a38004  000003 000007 000279

00024k : 0x02a40004  000003 000011 000716

00028k : 0x02a48004  000003 000006 000241

00032k : 0x02a50004  000152 000179 001100

00036k : 0x02a50004  000194 000223 000965

00040k : 0x02a50004  000233 000266 001343

00044k : 0x02a50004  000274 000304 001378

00048k : 0x02a50004  000311 000335 000460

00052k : 0x02a50004  000346 000379 001451

00056k : 0x02a50004  000383 000415 001477

00060k : 0x02a50004  000424 000465 001549

00064k : 0x02a50004  000464 000487 000918

00068k : 0x02a60004  000497 000528 001668

00072k : 0x02a60004  000522 000547 000634

00076k : 0x02a60004  000549 000576 001713

00080k : 0x02a60004  000575 000610 001679

00084k : 0x02a60004  000602 000638 001665

00088k : 0x02a60004  000628 000659 000874

00092k : 0x02a60004  000654 000694 001762

00096k : 0x02a60004  000680 000720 001781

00100k : 0x02a60004  000706 000749 001774

00104k : 0x02a60004  000732 000770 001798

00108k : 0x02a60004  000758 000793 000867

00112k : 0x02a60004  000785 000829 001855

00116k : 0x02a60004  000811 000856 001904

00120k : 0x02a60004  000837 000886 001934

00124k : 0x02a60004  000863 000912 001935

00128k : 0x02a60004  000889 000943 002055

00256k : 0x02b00004  001745 001830 002896

00384k : 0x02b00004  002612 002735 003847

00512k : 0x02b00004  003526 003607 004617

00640k : 0x02b00004  004493 004534 004992

00768k : 0x02b00004  005330 005390 005555

00896k : 0x02b00004  006166 006268 007283

01024k : 0x02b00004  007065 007142 008203

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes