Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

what's this problem when starting linux?

what does it mean by wrong zone alignment? i have a 1M sram to run it, it's not enough?

uClinux/Nios II

Altera Nios II support © 2004 Microtronix Datacom Ltd.

BUG: wrong zone alignment, it will crash

Built 1 zonelists

Kernel command line: root=/dev/mtdblock0 ro

PID hash table entries: 16 (order: 4, 256 bytes)

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

Inode-cache hash table entries: 128 (order: -3, 512 bytes)

Memory available: 88k/1024k RAM, 0k/0k ROM (707k kernel code, 177k data)

Mount-cache hash table entries: 512 (order: 0, 4096 bytes)

DMA per-cpu:

cpu 0 hot: low 2, high 6, batch 1

cpu 0 cold: low 0, high 2, batch 1

Normal per-cpu: empty

HighMem per-cpu: empty

Free pages: 0kB (0kB HighMem)

Active:0 inactive:0 dirty:0 writeback:0 unstable:0 free:0 slab:22 mapped:0 paget

ables:0

DMA free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:1024kB pag

es_scanned:0 all_unreclaimable? no

lowmem_reserve[]: 0 0 0

Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pag

es_scanned:0 all_unreclaimable? no

lowmem_reserve[]: 0 0 0

HighMem free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pa

ges_scanned:0 all_unreclaimable? no

lowmem_reserve[]: 0 0 0

DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB

0*4096kB = 0kB

Normal: empty

HighMem: empty

Kernel panic - not syncing: Out of memory and no killable processes...

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi bigmagic,

    > i have a 1M sram to run it, it's not enough?

    Probably not. I have a few bare bones images (no network support, few features) an even they

    have around 900 KB footprint.

    Regards,

    --Scott
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hehe, thank u very much, scott. i will try it on another board with a larger sdram.

    regards
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi!

    I've found the same problem!

    The difference is that I have 2 Mb of RAM, and there's free space, as it shows the init of linux:

    Memory available: 292k/2048k RAM, 0k/0k ROM (1404k kernel code, 292k data)

    Mi complete init is:

    Linux version 2.6.11-uc0 (abg@INDES_ABG) (gcc version 3.4.1 (Altera Nios II 5.0 b73))# 16 Fri Jul 7 11:51:48 2006
    
    uClinux/Nios II
    Altera Nios II support (C) 2004 Microtronix Datacom Ltd.
    BUG: wrong zone alignment, it will crash
    Built 1 zonelists
    Kernel command line: root=/dev/mtdblock0 ro
    PID hash table entries: 16 (order: 4, 256 bytes)
    Dentry cache hash table entries: 512 (order: -1, 2048 bytes)
    Inode-cache hash table entries: 256 (order: -2, 1024 bytes)
    Memory available: 292k/2048k RAM, 0k/0k ROM (1404k kernel code, 292k data)
    Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
    NET: Registered protocol family 16
    oom-killer: gfp_mask=0xd0
    DMA per-cpu:
    cpu 0 hot: low 2, high 6, batch 1
    cpu 0 cold: low 0, high 2, batch 1
    Normal per-cpu: empty
    HighMem per-cpu: empty

    After that, it repeats enledssly the section:

    Free pages:          24kB (0kB HighMem)
    Active:0 inactive:0 dirty:0 writeback:0 unstable:0 free:6 slab:57 mapped:0 pagetables:0
    DMA free:24kB min:180kB low:224kB high:268kB active:0kB inactive:0kB present:2048kB pages_scanned:0 all_unreclaimable? no
    lowmem_reserve: 0 0 0
    Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
    lowmem_reserve: 0 0 0
    HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
    lowmem_reserve: 0 0 0
    DMA: 0*4kB 1*8kB 1*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 24kB
    Normal: empty
    HighMem: empty
    oom-killer: gfp_mask=0xd0
    DMA per-cpu:
    cpu 0 hot: low 2, high 6, batch 1
    cpu 0 cold: low 0, high 2, batch 1
    Normal per-cpu: empty
    HighMem per-cpu: empty

    I thought that 2 MB was enough, so I don't think the RAM size is the problem... any idea?

    Alex
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    it is out of memory.

    you should have at least 8M sdram to run some apps on uclinux.