Hi,
At last i could create symbolic backtrace (attached).
The hardware is an Asus WL500GP-V2, a 160 Gb HD (on USB), a UVC webcam
(Logitech Quickcam Sphere).
The commandline is:
mjpg-streamer -i "input_uvc.so -f 25 -r 320x240 -l off" -o "output_file.so -r
/data/jpeg"
128Mb swap is used.
Some commands are executed immediately before crash (see the attached file),
the free memory and other things are shown.
I cannot imagine that all the memory got allocated within some seconds
(filling 128Mb space through USB takes some time). I assume that there is a
problem in the kernel instead.
Regards
K. Gy.
r...@openwrt:~#
r...@openwrt:~# df
Filesystem Size Used Available Use% Mounted on
/dev/root 3.1M 3.1M 0 100% /rom
tmpfs 14.1M 184.0K 13.9M 1% /tmp
tmpfs 512.0K 0 512.0K 0% /dev
root 3.1M 3.1M 0 100% /tmp/root
mini_fo:/tmp/root 3.1M 3.1M 0 100% /tmp/root
/dev/mtdblock3 3.6M 432.0K 3.2M 12% /jffs
mini_fo:/jffs 3.1M 3.1M 0 100% /
/dev/sda2 148.9G 9.3G 139.6G 6% /mnt/xxx
r...@openwrt:~#
r...@openwrt:~#
r...@openwrt:~# free
total used free shared buffers
Mem: 28856 28068 788 0 17492
Swap: 136512 1808 134704
Total: 165368 29876 135492
r...@openwrt:~#
r...@openwrt:~#
r...@openwrt:~# ps
PID USER VSZ STAT COMMAND
1 root 1340 S init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [events/0]
5 root 0 SW [khelper]
8 root 0 SW [async/mgr]
24 root 0 SW [sync_supers]
26 root 0 SW [bdi-default]
28 root 0 SW [kblockd/0]
60 root 0 SW [kswapd0]
61 root 0 SW [aio/0]
63 root 0 SW [crypto/0]
78 root 0 SW [mtdblockd]
280 root 1352 S /bin/ash --login
308 root 1344 S syslogd -C16
310 root 1324 S klogd
324 root 712 S /sbin/hotplug2 --override --persistent --set-worker /
452 root 0 SW [cfg80211]
521 root 0 SW [khubd]
576 root 0 SW [rpciod/0]
582 root 0 SW [nfsiod]
652 root 0 SW [scsi_eh_0]
653 root 0 SW [usb-storage]
905 root 1344 S udhcpc -t 0 -i eth0.1 -b -p /var/run/eth0.1.pid -O ro
946 root 1332 S /usr/sbin/httpd -p 80 -h /www -r OpenWrt
950 root 1328 S telnetd -l /bin/login.sh
976 nobody 868 S /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/ -
998 root 0 SWN [jffs2_gcd_mtd3]
1028 root 1324 S watchdog -t 5 /dev/watchdog
1038 root 1116 S /usr/sbin/dropbear -p 22 -P /var/run/dropbear.1.pid
1059 root 0 SW [reiserfs/0]
1260 root 1692 S SCREEN
1261 root 1340 S /bin/ash
1262 root 1340 S /bin/ash
1263 root 1404 S /bin/ash
1264 root 1348 S /bin/ash
1326 root 0 SW [flush-8:0]
1333 root 2116 S mjpg_streamer -i input_uvc.so -f 25 -r 320x240 -l off
1334 root 2116 S mjpg_streamer -i input_uvc.so -f 25 -r 320x240 -l off
1335 root 2116 S mjpg_streamer -i input_uvc.so -f 25 -r 320x240 -l off
1336 root 2116 S mjpg_streamer -i input_uvc.so -f 25 -r 320x240 -l off
1349 root 1332 R ps
r...@openwrt:~#
r...@openwrt:~#
r...@openwrt:~# top -h
watchdog invoked oom-killer: gfp_mask=0x200da, order=0, oom_adj=0
Call Trace:
[<8000a254>] dump_stack+0x8/0x34
[<8006ba94>] T.348+0x68/0x1f8
[<8006bd94>] __out_of_memory+0x170/0x1a4
[<8006be3c>] out_of_memory+0x74/0xa4
[<8006f5fc>] __alloc_pages_nodemask+0x470/0x594
[<800928b8>] read_swap_cache_async+0x94/0x2a8
[<80092b2c>] swapin_readaead+0x60/0xe0
[<800859a0>] handle_mm_fault+0x374/0x740
[<8001794c>] do_page_fault+0x100/0x2ec
[<80001820>] ret_from_exception+0x0/0x24
Mem-Info:
Normal per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
active_anon:1 inactive_anon:3 isolated_anon:0
active_file:2281 inactive_file:2293 isolated_file:0
unevictable:0 dirty:0 writeback:0 unstable:0
free:247 slab_reclaimable:199 slab_unreclaimable:1081
mapped:61 shmem:0 pagetables:53 bounce:0
Normal free:984kB min:720kB low:900kB high:1080kB active_anon:4kB
inactive_anon:12kB active_file:9124kB inactive_file:9172kB unevictable:0kB
isolated(anon):0kB isolated(file):0kB present:32512kB mlocked:0kB dirty:0kB
writeback:0kB mapped:244kB shmem:0kB slab_reclaimable:796kB
slab_unreclaimable:4324kB kernel_stack:328kB pagetables:212kB unstable:0kB
bounce:0kB writeback_tmp:0kB pages_scanned:2333 all_unreclaimable? no
lowmem_reserve[]: 0 0
Normal: 30*4kB 10*8kB 5*16kB 0*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB
0*2048kB 0*4096kB = 984kB
4577 total pagecache pages
3 pages in swap cache
Swap cache stats: add 1134, delete 1131, find 198/334
Free swap = 134508kB
Total swap = 136512kB
8192 pages RAM
978 pages reserved
4635 pages shared
2207 pages non-shared
Out of memory: kill process 976 (dnsmasq) score 217 or a child
Killed process 976 (dnsmasq)
mjpg_streamer invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0
Call Trace:
[<8000a254>] dump_stack+0x8/0x34
[<8006ba94>] T.348+0x68/0x1f8
[<8006bd94>] __out_of_memory+0x170/0x1a4
[<8006be3c>] out_of_memory+0x74/0xa4
[<8006f5fc>] __alloc_pages_nodemask+0x470/0x594
[<800721dc>] __do_page_cache_readahead+0xe0/0x2b8
[<800723dc>] ra_submit+0x28/0x34
[<80068a44>] filemap_fault+0x270/0x50c
[<80082e40>] __do_fault+0x70/0x6c0
[<80085950>] handle_mm_fault+0x324/0x740
[<8001794c>] do_page_fault+0x100/0x2ec
[<80001820>] ret_from_exception+0x0/0x24
Mem-Info:
Normal per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
active_anon:0 inactive_anon:3 isolated_anon:0
active_file:2312 inactive_file:2262 isolated_file:0
unevictable:0 dirty:0 writeback:0 unstable:0
free:188 slab_reclaimable:199 slab_unreclaimable:1078
mapped:60 shmem:0 pagetables:50 bounce:0
Normal free:752kB min:720kB low:900kB high:1080kB active_anon:0kB
inactive_anon:12kB active_file:9248kB inactive_file:9048kB unevictable:0kB
isolated(anon):0kB isolated(file):0kB present:32512kB mlocked:0kB dirty:0kB
writeback:0kB mapped:240kB shmem:0kB slab_reclaimable:796kB
slab_unreclaimable:4312kB kernel_stack:320kB pagetables:200kB unstable:0kB
bounce:0kB writeback_tmp:0kB pages_scanned:21856 all_unreclaimable? no
lowmem_reserve[]: 0 0
Normal: 4*4kB 0*8kB 2*16kB 0*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB
0*2048kB 0*4096kB = 752kB
4577 total pagecache pages
3 pages in swap cache
Swap cache stats: add 1161, delete 1158, find 198/337
Free swap = 134592kB
Total swap = 136512kB
8192 pages RAM
978 pages reserved
4634 pages shared
2267 pages non-shared
Out of memory: kill process 1260 (screen) score 69 or a child
Killed process 1261 (ash)
screen invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0
Call Trace:
[<8000a254>] dump_stack+0x8/0x34
[<8006ba94>] T.348+0x68/0x1f8
[<8006bd94>] __out_of_memory+0x170/0x1a4
[<8006be3c>] out_of_memory+0x74/0xa4
[<8006f5fc>] __alloc_pages_nodemask+0x470/0x594
[<800721dc>] __do_page_cache_readahead+0xe0/0x2b8
[<800723dc>] ra_submit+0x28/0x34
[<80068a44>] filemap_fault+0x270/0x50c
[<80082e40>] __do_fault+0x70/0x6c0
[<80085950>] handle_mm_fault+0x324/0x740
[<8001794c>] do_page_fault+0x100/0x2ec
[<80001820>] ret_from_exception+0x0/0x24
Mem-Info:
Normal per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
active_anon:0 inactive_anon:1 isolated_anon:0
active_file:2288 inactive_file:2286 isolated_file:0
unevictable:0 dirty:0 writeback:0 unstable:0
free:190 slab_reclaimable:199 slab_unreclaimable:1078
mapped:60 shmem:0 pagetables:47 bounce:0
Normal free:760kB min:720kB low:900kB high:1080kB active_anon:0kB
inactive_anon:4kB active_file:9152kB inactive_file:9144kB unevictable:0kB
isolated(anon):0kB isolated(file):0kB present:32512kB mlocked:0kB dirty:0kB
writeback:0kB mapped:240kB shmem:0kB slab_reclaimable:796kB
slab_unreclaimable:4312kB kernel_stack:320kB pagetables:188kB unstable:0kB
bounce:0kB writeback_tmp:0kB pages_scanned:165 all_unreclaimable? no
lowmem_reserve[]: 0 0
Normal: 8*4kB 1*8kB 1*16kB 0*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB
0*2048kB 0*4096kB = 760kB
4574 total pagecache pages
0 pages in swap cache
Swap cache stats: add 1177, delete 1177, find 198/339
Free swap = 134668kB
Total swap = 136512kB
8192 pages RAM
978 pages reserved
4634 pages shared
2265 pages non-shared
Out of memory: kill process 1260 (screen) score 58 or a child
Killed process 1262 (ash)
mjpg_streamer invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0
Call Trace:
[<8000a254>] dump_stack+0x8/0x34
[<8006ba94>] T.348+0x68/0x1f8
[<8006bd94>] __out_of_memory+0x170/0x1a4
[<8006be3c>] out_of_memory+0x74/0xa4
[<8006f5fc>] __alloc_pages_nodemask+0x470/0x594
[<800721dc>] __do_page_cache_readahead+0xe0/0x2b8
[<800723dc>] ra_submit+0x28/0x34
[<80068a44>] filemap_fault+0x270/0x50c
[<80082e40>] __do_fault+0x70/0x6c0
[<80085950>] handle_mm_fault+0x324/0x740
[<8001794c>] do_page_fault+0x100/0x2ec
[<80001820>] ret_from_exception+0x0/0x24
Mem-Info:
Normal per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
active_anon:0 inactive_anon:1 isolated_anon:0
active_file:2332 inactive_file:2242 isolated_file:0
unevictable:0 dirty:0 writeback:0 unstable:0
free:191 slab_reclaimable:199 slab_unreclaimable:1078
mapped:60 shmem:0 pagetables:44 bounce:0
Normal free:764kB min:720kB low:900kB high:1080kB active_anon:0kB
inactive_anon:4kB active_file:9328kB inactive_file:8968kB unevictable:0kB
isolated(anon):0kB isolated(file):0kB present:32512kB mlocked:0kB dirty:0kB
writeback:0kB mapped:240kB shmem:0kB slab_reclaimable:796kB
slab_unreclaimable:4312kB kernel_stack:320kB pagetables:176kB unstable:0kB
bounce:0kB writeback_tmp:0kB pages_scanned:37467 all_unreclaimable? yes
lowmem_reserve[]: 0 0
Normal: 9*4kB 1*8kB 1*16kB 0*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB
0*2048kB 0*4096kB = 764kB
4574 total pagecache pages
0 pages in swap cache
Swap cache stats: add 1185, delete 1185, find 198/340
Free swap = 134740kB
Total swap = 136512kB
8192 pages RAM
978 pages reserved
4634 pages shared
2264 pages non-shared
Out of memory: kill process 1260 (screen) score 48 or a child
Killed process 1263 (ash)
screen invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0
Call Trace:
[<8000a254>] dump_stack+0x8/0x34
[<8006ba94>] T.348+0x68/0x1f8
[<8006bd94>] __out_of_memory+0x170/0x1a4
[<8006be3c>] out_of_memory+0x74/0xa4
[<8006f5fc>] __alloc_pages_nodemask+0x470/0x594
[<800721dc>] __do_page_cache_readahead+0xe0/0x2b8
[<800723dc>] ra_submit+0x28/0x34
[<80068a44>] filemap_fault+0x270/0x50c
[<80082e40>] __do_fault+0x70/0x6c0
[<80085950>] handle_mm_fault+0x324/0x740
[<8001794c>] do_page_fault+0x100/0x2ec
[<80001820>] ret_from_exception+0x0/0x24
Mem-Info:
Normal per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
active_anon:0 inactive_anon:1 isolated_anon:0
active_file:2264 inactive_file:2214 isolated_file:96
unevictable:0 dirty:0 writeback:0 unstable:0
free:185 slab_reclaimable:199 slab_unreclaimable:1078
mapped:60 shmem:0 pagetables:41 bounce:0
Normal free:740kB min:720kB low:900kB high:1080kB active_anon:0kB
inactive_anon:4kB active_file:9056kB inactive_file:8856kB unevictable:0kB
isolated(anon):0kB isolated(file):384kB present:32512kB mlocked:0kB dirty:0kB
writeback:0kB mapped:240kB shmem:0kB slab_reclaimable:796kB
slab_unreclaimable:4312kB kernel_stack:320kB pagetables:164kB unstable:0kB
bounce:0kB writeback_tmp:0kB pages_scanned:1146 all_unreclaimable? no
lowmem_reserve[]: 0 0
Normal: 5*4kB 0*8kB 1*16kB 0*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB
0*2048kB 0*4096kB = 740kB
4575 total pagecache pages
1 pages in swap cache
Swap cache stats: add 1194, delete 1193, find 198/341
Free swap = 134876kB
Total swap = 136512kB
8192 pages RAM
978 pages reserved
4731 pages shared
2269 pages non-shared
Out of memory: kill process 1260 (screen) score 37 or a child
Killed process 1264 (ash)
screen invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0
Call Trace:
[<8000a254>] dump_stack+0x8/0x34
[<8006ba94>] T.348+0x68/0x1f8
[<8006bd94>] __out_of_memory+0x170/0x1a4
[<8006be3c>] out_of_memory+0x74/0xa4
[<8006f5fc>] __alloc_pages_nodemask+0x470/0x594
[<800721dc>] __do_page_cache_readahead+0xe0/0x2b8
[<800723dc>] ra_submit+0x28/0x34
[<80068a44>] filemap_fault+0x270/0x50c
[<80082e40>] __do_fault+0x70/0x6c0
[<80085950>] handle_mm_fault+0x324/0x740
[<8001794c>] do_page_fault+0x100/0x2ec
[<80001820>] ret_from_exception+0x0/0x24
Mem-Info:
Normal per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
active_anon:0 inactive_anon:1 isolated_anon:0
active_file:2270 inactive_file:2272 isolated_file:32
unevictable:0 dirty:0 writeback:0 unstable:0
free:183 slab_reclaimable:199 slab_unreclaimable:1075
mapped:60 shmem:0 pagetables:38 bounce:0
Normal free:732kB min:720kB low:900kB high:1080kB active_anon:0kB
inactive_anon:4kB active_file:9080kB inactive_file:9088kB unevictable:0kB
isolated(anon):0kB isolated(file):128kB present:32512kB mlocked:0kB dirty:0kB
writeback:0kB mapped:240kB shmem:0kB slab_reclaimable:796kB
slab_unreclaimable:4300kB kernel_stack:320kB pagetables:152kB unstable:0kB
bounce:0kB writeback_tmp:0kB pages_scanned:20715 all_unreclaimable? no
lowmem_reserve[]: 0 0
Normal: 3*4kB 0*8kB 1*16kB 0*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB
0*2048kB 0*4096kB = 732kB
4575 total pagecache pages
1 pages in swap cache
Swap cache stats: add 1194, delete 1193, find 198/341
Free swap = 134960kB
Total swap = 136512kB
8192 pages RAM
978 pages reserved
4666 pages shared
2272 pages non-shared
Out of memory: kill process 1334 (mjpg_streamer) score 33 or a child
Killed process 1334 (mjpg_streamer)
bcm47xx_wdtWatchdog will fire soon!!!
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel