mfrw / compcache

Automatically exported from code.google.com/p/compcache
0 stars 0 forks source link

crash during zram-init if low on memory / kernel 3.8.2 #110

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. be low in memory (e.g. 1mb free)
2. activate zram-discs
3. mkswap /dev/zram0 --> crash

What version of the product are you using? On what operating system?
zram from kernel 3.8.2 on arch brcm47xx / OpenWrt

Please provide any additional information below.

crashlog:
http://intercity-vpn.de/crashlog/?id=1363295046

which results to:
r35936
Linux EG-laborBuffi-AP 3.8.2 #3 Sun Mar 10 20:33:12 CET 2013 mips GNU/Linux
9b:6d:42:e2:e0:24:7f:6a:88:1f:c5:ab:7a:8b:d9:cd
liszt28_ap
Buffalo WHR-HP-G54
Time: 1363294632.305655
Modules:    zram@804be000+1cbc  lzo_compress@8040d000+6c2   lzo_decompress@80569000+76
7   zsmalloc@80d8c000+1343  xt_mark@806f6000+2a0    iptable_nat@8048e000+690    xt_nat@80
633000+440  nf_nat_ipv4@80511000+a9e    nf_nat@8063c000+2a5f    nf_conntrack_ipv4@80678
000+1254    nf_defrag_ipv4@80514000+2e6 nf_conntrack@806e0000+b111  ipt_REJECT@80646
000+730 xt_LOG@80640000+1a10    xt_mac@8062f000+260 iptable_mangle@805c4000+380 ipt
able_filter@80506000+2a0    ip_tables@805ac000+23ad xt_tcpudp@8065f000+6e0  x_tables
@806cc000+2ad5  b43@80600000+2953f  mac80211@80680000+4bb9f cfg80211@80540000+26b8
6   compat@8046a000+399 b44@80c78000+5a30
<4>[ 5168.216000] zsmalloc: module is from the staging directory, the quality 
is unknown, you have been warned.
<4>[ 5168.712000] zram: module is from the staging directory, the quality is 
unknown, you have been warned.
<6>[ 5168.724000] zram: Creating 1 devices ...
<4>[ 5169.960000] mkswap: page allocation failure: order:4, mode:0x2000d0
<4>[ 5169.968000] Call Trace:
<4>[ 5169.968000] [<80011eb4>] dump_stack+0x8/0x34
<4>[ 5169.972000] [<80060c74>] warn_alloc_failed+0xf0/0x114
<4>[ 5169.980000] [<800633f0>] __alloc_pages_nodemask+0x5d4/0x634
<4>[ 5169.984000] [<8008dea0>] cache_alloc_refill+0x2fc/0x780
<4>[ 5169.992000] [<8008e4d4>] kmem_cache_alloc+0x88/0xf0
<4>[ 5169.996000] [<804bea08>] zram_init_device+0xc8/0x4dc [zram]
<4>[ 5170.000000] [<804beb84>] zram_init_device+0x244/0x4dc [zram]
<4>[ 5170.008000] 
<4>[ 5170.008000] Mem-Info:
<4>[ 5170.012000] Normal per-cpu:
<4>[ 5170.016000] CPU    0: hi:    0, btch:   1 usd:   0
<4>[ 5170.020000] active_anon:141 inactive_anon:278 isolated_anon:0
<4>[ 5170.020000]  active_file:166 inactive_file:354 isolated_file:0
<4>[ 5170.020000]  unevictable:0 dirty:0 writeback:0 unstable:0
<4>[ 5170.020000]  free:290 slab_reclaimable:233 slab_unreclaimable:795
<4>[ 5170.020000]  mapped:142 shmem:78 pagetables:53 bounce:0
<4>[ 5170.020000]  free_cma:0
<4>[ 5170.052000] Normal free:1160kB min:508kB low:632kB high:760kB 
active_anon:564kB inactive_anon:1112kB active_file:664kB inactive_file:1416kB 
unevictable:0kB isolated(anon):0kB isolated(file):0kB present:16256kB 
managed:12896kB mlocked:0kB dirty:0kB writeback:0kB mapped:568kB shmem:312kB 
slab_reclaimable:932kB slab_unreclaimable:3180kB kernel_stack:264kB 
pagetables:212kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB 
pages_scanned:0 all_unreclaimable? no
<4>[ 5170.092000] lowmem_reserve[]: 0 0
<4>[ 5170.096000] Normal: 54*4kB (U) 22*8kB (U) 40*16kB (U) 2*32kB (U) 1*64kB 
(U) 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1160kB
<4>[ 5170.108000] 598 total pagecache pages
<4>[ 5170.112000] 0 pages in swap cache
<4>[ 5170.116000] Swap cache stats: add 882, delete 882, find 397/491
<4>[ 5170.124000] Free swap  = 0kB
<4>[ 5170.124000] Total swap = 0kB
<4>[ 5170.132000] 4096 pages RAM
<4>[ 5170.132000] 824 pages reserved
<4>[ 5170.136000] 263379 pages shared
<4>[ 5170.140000] 2320 pages non-shared
<4>[ 5170.144000] SLAB: Unable to allocate memory on node 0 (gfp=0xd0)
<4>[ 5170.148000]   cache: size-65536, object size: 65536, order: 4
<4>[ 5170.156000]   node 0: slabs: 1/1, objs: 1/1, free: 0
<3>[ 5170.160000] zram: Error allocating compressor working memory!
<1>[ 5170.168000] CPU 0 Unable to handle kernel paging request at virtual 
address 00000018, epc == 80d8c5e0, ra == 804be8c8
<4>[ 5170.180000] Oops[#1]:
<4>[ 5170.180000] Cpu 0
<4>[ 5170.180000] $ 0   : 00000000 10009800 00000000 00000000
<4>[ 5170.180000] $ 4   : 00000000 00000001 00000005 00000000
<4>[ 5170.180000] $ 8   : 726f7720 676e696b 6d656d20 2179726f
<4>[ 5170.180000] $12   : 00000000 00000000 00000000 676e6974
<4>[ 5170.180000] $16   : 00000000 00000000 00000000 80d8d018
<4>[ 5170.180000] $20   : 000000ff 00000001 802c0000 800bf9e4
<4>[ 5170.180000] $24   : 00000000 8015e594                  
<4>[ 5170.180000] $28   : 80fb2000 80fb3ab8 800bb49c 804be8c8
<4>[ 5170.180000] Hi    : 00000000
<4>[ 5170.180000] Lo    : 00000063
<4>[ 5170.180000] epc   : 80d8c5e0 zs_destroy_pool+0x38/0xa0 [zsmalloc]
<4>[ 5170.180000]     Tainted: G         C O
<4>[ 5170.180000] ra    : 804be8c8 __zram_reset_device+0x9c/0xd4 [zram]
<4>[ 5170.180000] Status: 10009803    KERNEL EXL IE 
<4>[ 5170.180000] Cause : 00800008
<4>[ 5170.180000] BadVA : 00000018
<4>[ 5170.180000] PrId  : 00029008 (Broadcom BMIPS3300)
<4>[ 5170.180000] Modules linked in: zram(C) lzo_compress lzo_decompress 
zsmalloc(C) xt_mark iptable_nat xt_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 
nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_LOG xt_mac iptable_mangle 
iptable_filter ip_tables xt_tcpudp x_tables b43(O) mac80211(O) cfg80211(O) 
compat(O) b44 [last unloaded: zsmalloc]
<4>[ 5170.180000] Process mkswap (pid: 10904, threadinfo=80fb2000, 
task=805ea5d0, tls=77a34440)
<4>[ 5170.180000] Stack : 00cc8000 00000000 00000000 00000001 80d29080 00000000 
00cc8000 00000000
<4>[ 5170.180000]         00000000 804be8c8 00000000 00000000 804bf67c 80fb3b04 
80fb3b04 80d29080
<4>[ 5170.180000]         80d290a8 804beb0c 38fc1984 00000001 00000000 00000000 
80d29080 80855920
<4>[ 5170.180000]         00000008 804beb84 39387000 00001431 8032f668 00000001 
ffffffff 80111c8c
<4>[ 5170.180000]         00000000 38fc1984 80330000 80fb3cd8 38fd1e38 00000000 
80855920 80855920
<4>[ 5170.180000]         ...
<4>[ 5170.180000] Call Trace:
<4>[ 5170.180000] [<80d8c5e0>] zs_destroy_pool+0x38/0xa0 [zsmalloc]
<4>[ 5170.180000] [<804be8c8>] __zram_reset_device+0x9c/0xd4 [zram]
<4>[ 5170.180000] [<804beb0c>] zram_init_device+0x1cc/0x4dc [zram]
<4>[ 5170.180000] [<804beb84>] zram_init_device+0x244/0x4dc [zram]
<4>[ 5170.180000] 
<4>[ 5170.180000] 
<4>[ 5170.180000] Code: 08363187  2673d018  02508021 <8e020018> 10400004  
02602021  8e050000  0c007bb6  00003021 
<4>[ 5170.380000] ---[ end trace b04843433286d129 ]---

===================================
Time: 1363294637.322268
<4>[ 5168.216000] zsmalloc: module is from the staging directory, the quality 
is unknown, you have been warned.
<4>[ 5168.712000] zram: module is from the staging directory, the quality is 
unknown, you have been warned.
<6>[ 5168.724000] zram: Creating 1 devices ...
<4>[ 5169.960000] mkswap: page allocation failure: order:4, mode:0x2000d0
<4>[ 5169.968000] Call Trace:
<4>[ 5169.968000] [<80011eb4>] dump_stack+0x8/0x34
<4>[ 5169.972000] [<80060c74>] warn_alloc_failed+0xf0/0x114
<4>[ 5169.980000] [<800633f0>] __alloc_pages_nodemask+0x5d4/0x634
<4>[ 5169.984000] [<8008dea0>] cache_alloc_refill+0x2fc/0x780
<4>[ 5169.992000] [<8008e4d4>] kmem_cache_alloc+0x88/0xf0
<4>[ 5169.996000] [<804bea08>] zram_init_device+0xc8/0x4dc [zram]
<4>[ 5170.000000] [<804beb84>] zram_init_device+0x244/0x4dc [zram]
<4>[ 5170.008000] 
<4>[ 5170.008000] Mem-Info:
<4>[ 5170.012000] Normal per-cpu:
<4>[ 5170.016000] CPU    0: hi:    0, btch:   1 usd:   0
<4>[ 5170.020000] active_anon:141 inactive_anon:278 isolated_anon:0
<4>[ 5170.020000]  active_file:166 inactive_file:354 isolated_file:0
<4>[ 5170.020000]  unevictable:0 dirty:0 writeback:0 unstable:0
<4>[ 5170.020000]  free:290 slab_reclaimable:233 slab_unreclaimable:795
<4>[ 5170.020000]  mapped:142 shmem:78 pagetables:53 bounce:0
<4>[ 5170.020000]  free_cma:0
<4>[ 5170.052000] Normal free:1160kB min:508kB low:632kB high:760kB 
active_anon:564kB inactive_anon:1112kB active_file:664kB inactive_file:1416kB 
unevictable:0kB isolated(anon):0kB isolated(file):0kB present:16256kB 
managed:12896kB mlocked:0kB dirty:0kB writeback:0kB mapped:568kB shmem:312kB 
slab_reclaimable:932kB slab_unreclaimable:3180kB kernel_stack:264kB 
pagetables:212kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB 
pages_scanned:0 all_unreclaimable? no
<4>[ 5170.092000] lowmem_reserve[]: 0 0
<4>[ 5170.096000] Normal: 54*4kB (U) 22*8kB (U) 40*16kB (U) 2*32kB (U) 1*64kB 
(U) 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1160kB
<4>[ 5170.108000] 598 total pagecache pages
<4>[ 5170.112000] 0 pages in swap cache
<4>[ 5170.116000] Swap cache stats: add 882, delete 882, find 397/491
<4>[ 5170.124000] Free swap  = 0kB
<4>[ 5170.124000] Total swap = 0kB
<4>[ 5170.132000] 4096 pages RAM
<4>[ 5170.132000] 824 pages reserved
<4>[ 5170.136000] 263379 pages shared
<4>[ 5170.140000] 2320 pages non-shared
<4>[ 5170.144000] SLAB: Unable to allocate memory on node 0 (gfp=0xd0)
<4>[ 5170.148000]   cache: size-65536, object size: 65536, order: 4
<4>[ 5170.156000]   node 0: slabs: 1/1, objs: 1/1, free: 0
<3>[ 5170.160000] zram: Error allocating compressor working memory!
<1>[ 5170.168000] CPU 0 Unable to handle kernel paging request at virtual 
address 00000018, epc == 80d8c5e0, ra == 804be8c8
<4>[ 5170.180000] Oops[#1]:
<4>[ 5170.180000] Cpu 0
<4>[ 5170.180000] $ 0   : 00000000 10009800 00000000 00000000
<4>[ 5170.180000] $ 4   : 00000000 00000001 00000005 00000000
<4>[ 5170.180000] $ 8   : 726f7720 676e696b 6d656d20 2179726f
<4>[ 5170.180000] $12   : 00000000 00000000 00000000 676e6974
<4>[ 5170.180000] $16   : 00000000 00000000 00000000 80d8d018
<4>[ 5170.180000] $20   : 000000ff 00000001 802c0000 800bf9e4
<4>[ 5170.180000] $24   : 00000000 8015e594                  
<4>[ 5170.180000] $28   : 80fb2000 80fb3ab8 800bb49c 804be8c8
<4>[ 5170.180000] Hi    : 00000000
<4>[ 5170.180000] Lo    : 00000063
<4>[ 5170.180000] epc   : 80d8c5e0 zs_destroy_pool+0x38/0xa0 [zsmalloc]
<4>[ 5170.180000]     Tainted: G         C O
<4>[ 5170.180000] ra    : 804be8c8 __zram_reset_device+0x9c/0xd4 [zram]
<4>[ 5170.180000] Status: 10009803    KERNEL EXL IE 
<4>[ 5170.180000] Cause : 00800008
<4>[ 5170.180000] BadVA : 00000018
<4>[ 5170.180000] PrId  : 00029008 (Broadcom BMIPS3300)
<4>[ 5170.180000] Modules linked in: zram(C) lzo_compress lzo_decompress 
zsmalloc(C) xt_mark iptable_nat xt_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 
nf_defrag_ipv4 nf_conntrack ipt_REJECT xt_LOG xt_mac iptable_mangle 
iptable_filter ip_tables xt_tcpudp x_tables b43(O) mac80211(O) cfg80211(O) 
compat(O) b44 [last unloaded: zsmalloc]
<4>[ 5170.180000] Process mkswap (pid: 10904, threadinfo=80fb2000, 
task=805ea5d0, tls=77a34440)
<4>[ 5170.180000] Stack : 00cc8000 00000000 00000000 00000001 80d29080 00000000 
00cc8000 00000000
<4>[ 5170.180000]         00000000 804be8c8 00000000 00000000 804bf67c 80fb3b04 
80fb3b04 80d29080
<4>[ 5170.180000]         80d290a8 804beb0c 38fc1984 00000001 00000000 00000000 
80d29080 80855920
<4>[ 5170.180000]         00000008 804beb84 39387000 00001431 8032f668 00000001 
ffffffff 80111c8c
<4>[ 5170.180000]         00000000 38fc1984 80330000 80fb3cd8 38fd1e38 00000000 
80855920 80855920
<4>[ 5170.180000]         ...
<4>[ 5170.180000] Call Trace:
<4>[ 5170.180000] [<80d8c5e0>] zs_destroy_pool+0x38/0xa0 [zsmalloc]
<4>[ 5170.180000] [<804be8c8>] __zram_reset_device+0x9c/0xd4 [zram]
<4>[ 5170.180000] [<804beb0c>] zram_init_device+0x1cc/0x4dc [zram]
<4>[ 5170.180000] [<804beb84>] zram_init_device+0x244/0x4dc [zram]
<4>[ 5170.180000] 
<4>[ 5170.180000] 
<4>[ 5170.180000] Code: 08363187  2673d018  02508021 <8e020018> 10400004  
02602021  8e050000  0c007bb6  00003021 
<4>[ 5170.380000] ---[ end trace b04843433286d129 ]---
<0>[ 5170.388000] Fatal exception: panic in 5 seconds
<0>[ 5175.396000] Kernel panic - not syncing: Fatal exception

Original issue reported on code.google.com by BBitt...@googlemail.com on 15 Mar 2013 at 10:56