[#5316] bonnie++ test fails in bf548-ezkit for atapi

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

[#5316] bonnie++ test fails in bf548-ezkit for atapi

Submitted By: Vivi Li

Open Date

2009-07-06 23:49:28     Close Date

2012-06-26 03:35:58

Priority:

Medium     Assignee:

Sonic Zhang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2011R1     Release:

Category:

Tests     Board:

N/A

Processor:

BF548     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Out of Date

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1_09r1-rc9

App binary format:

N/A     

Summary: bonnie++ test fails in bf548-ezkit for atapi

Details:

 

Run atapi test script on bf548-ezkit, it fails to finish bonnie++ test.

 

Bellow is the log:

--

root:/> mount sda2 done, test pass

 

Case 17 ...PASS

 

Case 17 ...PASS

bonnie++ -u root -d /mnt/hd2^M

Using uid:0, gid:0.^M

Writing a byte at a time...done^M

Writing intelligently...done^M

Rewriting...^M

^M

U-Boot 2008.10-svn1956 (ADI-2009R1-rc2) (Jul  2 2009 - 20:20:03)^M

^M

CPU:   ADSP bf548-0.0 (Detected Rev: 0.2) (parallel flash boot)^M

Board: ADI BF548 EZ-Kit board^M

       Support: http://blackfin.uclinux.org/^M

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz^M

RAM:   64 MB^M

Flash: 16 MB^M

NAND:  256 MiB^M

In:    serial^M

Out:   serial^M

Err:   serial^M

Net:   MAC:   00:E0:22:FE:BF:4E^M

Hit any key to stop autoboot:  5 ^H^H^H 4 ^H^H^H 3 ^H^H^H 2 ^H^H^H 1 ^H^H^H 0 ^M

smc911x: initializing^M

smc911x: detected LAN9218 controller^M

smc911x: phy initialized^M

smc911x: MAC 00:e0:22:fe:bf:4e^M

TFTP from server 10.100.4.174; our IP address is 10.100.4.50^M

Filename 'uImage'.^M

Load address: 0x1000000^M

Loading: *^H#################################################################^M

         #################################################################^M

         #################################################################^M

         #################################################################^M

         #################################################################^M

         ####################################################^M

done^M

Bytes transferred = 5531337 (5466c9 hex)^M

## Booting kernel from Legacy Image at 01000000 ...^M

   Image Name:   Linux-2.6.28.10-ADI-2009R1-svn69^M

   Created:      2009-07-07   9:37:25 UTC^M

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)^M

   Data Size:    5531273 Bytes =  5.3 MB^M

   Load Address: 00001000^M

   Entry Point:  0027b824^M

   Verifying Checksum ... OK^M

   Uncompressing Kernel Image ... OK^M

Starting Kernel at = 0027b824^M

Linux version 2.6.28.10-ADI-2009R1-svn6925 (test@uclinux61-bf548-std) (gcc version 4.1.2 (ADI svn)) #24 Tue Jul 7 09:37:01 GMT 2009^M

bootconsole [early_BFuart0] enabled^M

early printk enabled on early_BFuart0^M

Board Memory: 64MB^M

Kernel Managed Memory: 64MB^M

Memory map:^M

  fixedcode = 0x00000400-0x00000490^M

  text      = 0x00001000-0x001a59d0^M

  rodata    = 0x001a59d0-0x00235a00^M

  bss       = 0x00236000-0x0024a5a8^M

  data      = 0x0024a5a8-0x00266000^M

    stack   = 0x00264000-0x00266000^M

  init      = 0x00266000-0x00a2d000^M

  available = 0x00a2d000-0x03dff000^M

  DMA Zone  = 0x03e00000-0x04000000^M

Hardware Trace Active and Enab

(...)

 

 

root:/> version

kernel:    Linux release 2.6.28.10-ADI-2009R1-svn6925, build #24 Tue Jul 7 09:37:01 GMT 2009^M

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

user-dist: release svn-8435, build #456 Tue Jul 7 09:35:25 GMT 2009^M

root:/>

--

 

The last pass version is as bellow:

--

root:/> version^M

kernel:    Linux release 2.6.28.10-ADI-2009R1-svn6921, build #20 Sun Jul 5 22:10:28 GMT 2009^M

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

user-dist: release svn-8427, build #373 Sun Jul 5 22:08:46 GMT 2009^M

root:/>

--

 

Follow-ups

 

--- Vivi Li                                                  2009-07-10 03:54:26

This test failed twice in July.

Bellow are the failed versions:

--

root:/> version^M

kernel:    Linux release 2.6.28.10-ADI-2009R1-svn6925, build #24 Tue Jul 7

09:37:01 GMT 2009^M

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

user-dist: release svn-8435, build #456 Tue Jul 7 09:35:25 GMT 2009^M

--

 

--

root:/> version

kernel:    Linux release 2.6.28.10-ADI-2009R1-svn6941, build #28 Wed Jul 8

19:31:34 GMT 2009^M

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

user-dist: release svn-8452, build #539 Wed Jul 8 19:30:02 GMT 2009^M

root:/>

--

 

And in latest test result, it passed again:

--

root:/> version^M

kernel:    Linux release 2.6.28.10-ADI-2009R1-svn6951, build #32 Fri Jul 10

01:47:56 GMT 2009^M

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

user-dist: release svn-8476, build #622 Fri Jul 10 01:46:23 GMT 2009^M

--

 

--- Sonic Zhang                                              2009-07-14 02:21:54

Can't replicate on SVN 2009R1 branch head r6976.

 

 

root:/> mount /dev/sda2 /mnt/

root:/> bonnie++ -u root -d /mnt

Using uid:0, gid:0.

Writing a byte at a time...done

Writing intelligently...done

Rewriting...done

Reading a byte at a time...done

Reading intelligently...done

start 'em...done...done...done...done...done...

Create files in sequential order...done.

Stat files in sequential order...done.

Delete files in sequential order...done.

Create files in random order...done.

Stat files in random order...done.

Delete files in random order...done.

Version  1.94       ------Sequential Output------ --Sequential Input-

--Random-

Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block--

--Seeks--

Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec

%CP

blackfin       300M    62  99  9751  70  4722  62   175  99 11332  82  97.1 

3

Latency               267ms     195ms     199ms   87999us     571ms    1223ms

Version  1.94       ------Sequential Create------ --------Random

Create--------

blackfin            -Create-- --Read--- -Delete-- -Create-- --Read---

-Delete--

              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec

%CP

                 16   308  99  8904 100  5069  89   309  99  9225 100  1074

95

Latency             60000us    4000us    4000us   40000us    4000us    4000us

1.93c,1.94,blackfin,1,628916,300M,,62,99,9751,70,4722,62,175,99,11332,82,97.1,3,16,,,,,3s

 

--- Vivi Li                                                  2009-07-14 02:33:57

I also can not see this bug on regression.

Close it.

 

--- Vivi Li                                                  2010-03-18 23:32:03

I see this bug again on 2010_Feb_27 and 2010_Mar_16 in trunk.

 

--- Sonic Zhang                                              2010-07-12 06:27:11

fail to replicate on uClinux-dist rev.  9681 and kernel rev. 8927

 

--- Robin Getz                                               2010-07-12 08:26:37

Sonic:

 

Can you put things (in the shell's) "while [ 1 ] ; do bonnie++ -u root -d

/mnt/hd2 ; done" - ping flood it from your host (to create lots of kernel

interrupts), and let it run over night?

 

Just be because it runs once doesn't mean there isn't a problem there... If it

can run 16+ hours without a crash, during a ping flood - it normally means it's

pretty stable.

 

-Robin

 

--- Robin Getz                                               2010-07-12 08:27:19

Sonic:

 

Can you put things (in the shell's) "while [ 1 ] ; do bonnie++ -u root -d

/mnt/hd2 ; done" - ping flood it from your host (to create lots of kernel

interrupts), and let it run over night?

 

Just be because it runs once doesn't mean there isn't a problem there... If it

can run 16+ hours without a crash, during a ping flood - it normally means it's

pretty stable.

 

-Robin

 

--- Sonic Zhang                                              2010-07-13 01:43:30

I have already run it more than 1 hour. Not see the crash.

If 16+ hour is preferred, no problem.

 

--- Vivi Li                                                  2011-11-02 05:22:26

I see this again in 2011r1 branch after test script is modify for out of memory

problem.

 

--

mke2fs /dev/sda2

mke2fs 1.41.12 (17-May-2010)

ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab

file while determining whether /dev/sda2 is mounted.

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

Stride=0 blocks, Stripe width=0 blocks

1281120 inodes, 5120718 blocks

256035 blocks (5.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=0

157 block groups

32768 blocks per group, 32768 fragments per group

8160 inodes per group

Superblock backups stored on blocks:

        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632,

2654208,

        4096000

 

Writing inode tables:

Writing superblocks and filesystem accounting information: done

 

This filesystem will be automatically checked every 31 mounts or

180 days, whichever comes first.  Use tune2fs -c or -i to override.

root:/> mount /dev/sda2 /mnt/hd2

root:/> time bonnie++ -u root -d /mnt/hd2 -s 200M

Using uid:0, gid:0.

Writing a byte at a time...done

Writing intelligently...done

Rewriting...

 

U-Boot 2010.06-svn2467 (ADI-2010R1) (Oct 08 2010 - 16:04:41)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.2) (parallel flash boot)

Board: ADI BF548 EZ-Kit board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz

RAM:   64 MiB

Flash: 16 MiB

NAND:  256 MiB

MMC:  Blackfin SDH: 0

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   smc911x-0

Hit any key to stop autoboot:  5

bfin>

--

 

--- Vivi Li                                                  2011-11-03 02:48:46

Run bellow command to reproduce:

--

root:/> while [ 1 ] ; do mke2fs /dev/sda2; sleep 3; mount /dev/sda2 /mnt;

sleep 3; time bonnie++ -u root -d /mnt -s 200M; done

--

 

--- Sonic Zhang                                              2011-11-04 04:56:53

This bug can be replicated only on large disk size, such as 20G /dev/sda2.

 

--- Sonic Zhang                                              2011-11-04 06:35:44

If reducing the file size of bonnie++ from 200M to 100M, this bug disappear even

on 20G /dev/sda2.

 

--- Sonic Zhang                                              2011-11-07 05:10:57

If limiting bonnie++ file size to 50M, this bug disappears even on 20G /dev/sda2

 

--- Sonic Zhang                                              2012-01-12 03:11:28

This bug disappears after update to kernel 3.2.0.

 

while [ 1 ] ; do mke2fs /dev/sda2; sleep 3; mount /dev/sda2 /mnt; time

bonnie\+\+ -u root -d /mnt -s 100M; umount /mnt; done

 

--- Vivi Li                                                  2012-06-26 04:36:42

Close this bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.atapi_hd    application/octet-stream    40735    Vivi Li

Attachments

Outcomes