2009-02-12 21:32:25     Writing data to SD card with exceptionally in BF527+uClinux-SVN-7715

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

2009-02-12 21:32:25     Writing data to SD card with exceptionally in BF527+uClinux-SVN-7715

Bill Xie (CHINA)

Message: 69361   

 

Hi,

 

    I download uClinux-svn-7715 and test writing data to sd card,but  kernel run with exceptionally.

 

  root:/> time dd if=/dev/zero of=/mnt/100M.bin bs=1M count=100

 

dd invoked oom-killer: gfp_mask=0x1200d2, order=0, oomkilladj=0

Hardware Trace:

   0 Target : <0x0000493c> { _dump_stack + 0x0 }

     Source : <0x0002fc62> { _oom_kill_process + 0xd2 } CALL pcrel

   1 Target : <0x0002fc62> { _oom_kill_process + 0xd2 }

     Source : <0x0000f0d2> { _printk + 0x16 } RTS

   2 Target : <0x0000f0ce> { _printk + 0x12 }

     Source : <0x0000f8da> { _vprintk + 0x12a } RTS

   3 Target : <0x0000f8ce> { _vprintk + 0x11e }

     Source : <0xffa00aea> { __common_int_entry + 0xca } RTI

   4 Target : <0xffa00a88> { __common_int_entry + 0x68 }

     Source : <0xffa008ee> { _return_from_int + 0x4e } RAISE 0xf

   5 Target : <0xffa008ee> { _return_from_int + 0x4e }

     Source : <0xffa008ce> { _return_from_int + 0x2e } 0x5488

   6 Target : <0xffa008a0> { _return_from_int + 0x0 }

     Source : <0xffa00a84> { __common_int_entry + 0x64 } 0x0113

   7 Target : <0xffa00a82> { __common_int_entry + 0x62 }

     Source : <0xffa002e2> { _asm_do_IRQ + 0x62 } RTS

   8 Target : <0xffa002da> { _asm_do_IRQ + 0x5a }

     Source : <0x00012dca> { __local_bh_enable + 0x3e } RTS

   9 Target : <0x00012d8c> { __local_bh_enable + 0x0 }

     Source : <0x00012eb4> { ___do_softirq + 0xa0 } JUMP.L

  10 Target : <0x00012eac> { ___do_softirq + 0x98 }

     Source : <0x00012e8c> { ___do_softirq + 0x78 } IF !CC JUMP

  11 Target : <0x00012e6e> { ___do_softirq + 0x5a }

     Source : <0x00016402> { _run_timer_softirq + 0x82 } RTS

  12 Target : <0x000163ec> { _run_timer_softirq + 0x6c }

     Source : <0x00016446> { _run_timer_softirq + 0xc6 } JUMP.S

  13 Target : <0x00016430> { _run_timer_softirq + 0xb0 }

     Source : <0x0001bc56> { _queue_work_on + 0x56 } RTS

  14 Target : <0x0001bc4e> { _queue_work_on + 0x4e }

     Source : <0x0001bbda> { ___queue_work + 0x26 } RTS

  15 Target : <0x0001bbc2> { ___queue_work + 0xe }

     Source : <0x0001ba72> { _insert_work + 0x3e } RTS

Stack info:

SP: [0x00527af8] <0x00527af8> /* kernel dynamic memory */

FP: (0x00527c10)

Memory from 0x00527af0 to 00528000

00527af0: 00527af8  00001520 [00037b64]<0002fc66> 01ede9a0  00000000  00000000  01ede288

00527b10: 001200d2  00000000  00000000  001df860  00036886  000000e4 <0002fde8> 001a67c4

00527b30: 00526000 <0002ff7a> 01ede9a0  001e881c  00000124  00000011  01ede0a0  000000a0

00527b50: 001e881c  00000001  00527b78  00000048  00000016  00000000  001a67c4  00527b54

00527b70: 000001be  2b275d02  00000000  00000002 <00031f04> 01ede0a0  001fd9cc  00000000

00527b90: 00000000  001200d2  00000000  00000042  001200d2  001200d2  00000000  001fd9cc

00527bb0: 00000002  00000048  00526000  00526000  00000000  001200d2  00526000  00000010

00527bd0: 00000000  00000000  00000000  00000000  0047e510 <0002dc8e> ffffffff  0047e478

00527bf0: 00527d34  00000000  0047e510  00000000  00002ddb  01531c68  0047e510 <00055230>

00527c10:(00000000)<00056356> 00000000  00000000  00000000  02ddb000  00000000  006dc900

00527c30: 00000000 <00055452> 0047e478  0047e478 <000565f0> 00526000  0047e510  00002ddb

00527c50: 00000000  02ddb000  02ddb000  00000000  00001000 <000554bc> 02ddb000  00000000

00527c70: 00001000  00000000  00527d34  00527d30  00080c04  00000200  00001000  00001000

00527c90: 006dc900  00000000 <00081736> 00526000  0047e510  01a74f20  00001000  00000000

00527cb0: 02ddb000  00001000  01a74f20  00000000  02ddb000  00000000  00001000  00000000

00527cd0: 00527d34  00527d30  00080c04  0047e454 <0002e0de><000df000> 01ede0cc  02ddb000

00527cf0: 00000000  00001000  00000000  00527d34  00527d30  0047e510  0016d544  0047e478

00527d10: 00000000  00000000  0016d544  000db000  00527e9c  00000001  000db000  00025000

00527d30: 00527d30  00000000  0047e510 <0002e5d8> 0047e478  00100000  01a74f20  00000000

00527d50: 00527e9c  00000000  02d00000  00527e18  00000006  00100000  02d00000  00000000

00527d70: 00527e60  00100000  00000000  00100000  00000006  00000000 <ffa002da> 001e2a8c

00527d90: 00000000  00800000  00100000  ffa00a82  00100000  0047e510 <0002ef48> 00527e18

00527db0: 0047e478  01a74f20  0047e4e4  00527e9c  00000000  02d00000  00527e18  00527e9c

00527dd0: 00000001  00527e60  00527dfc <00009ebe> 01061d7c <0003d0f8> 01a74f20  00527ef0

00527df0: 00100000  00527e18  00527e9c  00100000  00000001  00000000  01ede0a0  00000001

00527e10: 02d00000  00000000 <00163a30> 00000000  00000000  00000001  ffffffff  01a74f20

00527e30: 00000000  00000000  00000000  00000000  01ede0a0  00000000  00000000  00100000

00527e50: 01ede0a0  0001e98c  00527e58  00527e58  02d00000  00000000  00001000  00527e8c

00527e70:<00163ba8> 00001000  00100000  00020000  00000000  00edf004  00000000  00000000

00527e90:<000b3a78> 01061dc8 <0003d8f8> 00e00004  00100000 <0003d7dc> 01a74f20  00000004

00527eb0: 00527ef0  00e00004 <00009f48> 00000000  01ede0a0  00527ef0  00000000 <0003db42>

00527ed0: 01a74f20  00e00004  00100000  00000001  0003bb3c <0003b9f6> 01eeae00  00527ef0

00527ef0: 02d00000  00000000  00000000 <ffa0076c> 0003db10  00000000  ffffe000  ffffe000

00527f10: 00000001  0000fffe  00e00004  00000001  00000001  010027e6  00008000  00002000

00527f30: 00000000  00528000  010027e6  010027e6 <0101a0b0> ffa00ca0  02003004  006122cd

00527f50: 0100bf5f  006122c6  0100bf4c  00000000  ffffffff  0000069e  00000000  014ff000

00527f70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

00527f90: 00000000  00000000  00000000  00000000  00000000  00000000  000000e3  00261f48

00527fb0: 01061e65  01061d70  01061d7c  01059b04  00e00004  00100000  0105a0b4  00f00ff4

00527fd0: 00000004  00100000  00e00004  00000001  00000001  00e00004  00100000  00e00004

00527ff0: 00000001  00000001  00000004  00000006  62203233

Return addresses in stack:

    address : <0x00037b64> { _congestion_wait + 0x54 }

    address : <0x0002fc66> { _oom_kill_process + 0xd6 }

    address : <0x0002fde8> { _badness + 0xb4 }

    address : <0x0002ff7a> { _out_of_memory + 0x11a }

    address : <0x00031f04> { ___alloc_pages_internal + 0x234 }

    address : <0x0002dc8e> { _grab_cache_page_write_begin + 0x56 }

    address : <0x00055230> { ___block_commit_write + 0x54 }

   frame  1 : <0x00056356> { _block_write_begin + 0xfa }

    address : <0x00055452> { _block_write_end + 0x36 }

    address : <0x000565f0> { _cont_write_begin + 0x288 }

    address : <0x000554bc> { _generic_write_end + 0x3c }

    address : <0x00081736> { _fat_write_begin + 0x3e }

    address : <0x0002e0de> { _generic_file_buffered_write + 0xca }

    address : <0x000df000> { _sg_read + 0x160 }

    address : <0x0002e5d8> { ___generic_file_aio_write_nolock + 0x1e4 }

    address : <0xffa002da> { _asm_do_IRQ + 0x5a }

    address : <0x0002ef48> { _generic_file_aio_write + 0x54 }

    address : <0x00009ebe> { _set_next_entity + 0x16 }

    address : <0x0003d0f8> { _do_sync_write + 0xac }

    address : <0x00163a30> { _schedule + 0x184 }

    address : <0x00163ba8> { __cond_resched + 0x34 }

    address : <0x000b3a78> { _read_zero + 0x48 }

    address : <0x0003d8f8> { _vfs_read + 0xb0 }

    address : <0x0003d7dc> { _vfs_write + 0x6c }

    address : <0x00009f48> { _pick_next_task_fair + 0x44 }

    address : <0x0003db42> { _sys_write + 0x32 }

    address : <0x0003b9f6> { _sys_close + 0x62 }

    address : <0xffa0076c> { _system_call + 0x68 }

    address : <0x0101a0b0> [ dd + 0x1a070 ]

Mem-Info:

DMA per-cpu:

CPU    0: hi:    0, btch:   1 usd:   0

Active_anon:0 active_file:2605 inactive_anon:0

inactive_file:2567 dirty:0 writeback:0 unstable:0

free:262 slab:574 mapped:0 pagetables:0 bounce:0

DMA free:1048kB min:708kB low:884kB high:1060kB active_anon:0kB inactive_anon:0kB active_file:10420kB inactive_file:10268kB present:31492kB pages_scanned:1561 all_unreclaimable? no

lowmem_reserve[]: 0 0 0

DMA: 34*4kB 26*8kB 0*16kB 0*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB 0*32768kB = 1048kB

5183 total pagecache pages

7935 pages RAM

588 pages reserved

21 pages shared

7041 pages non-shared

Out of memory: kill process 295 (dd) score 22 or a child

Killed process 295 (dd)

Command terminated by signal 9

real    3m 42.73s

user    0m 0.00s

sys    0m 5.57s

QuoteReplyEditDelete

 

 

2009-02-12 21:36:29     Re: Writing data to SD card with exceptionally in BF527+uClinux-SVN-7715

Mike Frysinger (UNITED STATES)

Message: 69362   

 

so dont write a 100mb file ?  like the message says, you ran out of memory and so the OOM killer was invoked.

QuoteReplyEditDelete

 

 

2009-02-12 21:53:37     Re: Writing data to SD card with exceptionally in BF527+uClinux-SVN-7715

Bill Xie (CHINA)

Message: 69365   

 

Hi Mike,

 

      Thank you for your reply.I also test other way.Sd card is writed 320 byte in every time,continuous with 10000 count . It is also with exceptional.

 

--Bill

QuoteReplyEditDelete

 

 

2009-02-12 22:52:21     Re: Writing data to SD card with exceptionally in BF527+uClinux-SVN-7715

Sonic Zhang (CHINA)

Message: 69367   

 

Did you close and reopen the file in between your 10000 writes? If no, the same result.

 

 

QuoteReplyEditDelete

 

 

2009-02-13 01:42:22     Re: Writing data to SD card with exceptionally in BF527+uClinux-SVN-7715

Bill Xie (CHINA)

Message: 69372   

 

Hi Sonic,

 

    Thank you for your reply. In my way ,It is only one time to open and close file in my test.

 

-Bill

Attachments

    Outcomes