OOM killer on the loose

deshipu
 
Posts: 21
Joined: Wed Nov 19, 2014 5:10 pm

OOM killer on the loose

Fri Dec 05, 2014 6:56 pm

Hi,

after playing a little with my first VoCore board, I decided to unpack and try the second one. I soldered the pins and connected it to a TTL2USB dongle, but it fails to boot, with some out of memory errors:

Code: Select all
Booting image at bc050000 .
   Image Name:   MIPS OpenWrt Linux-3.14.18
   Created:      2014-09-24   3:19:02 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1049951 Bytes =  1 MB
   Load Address: 80000000
   Entry Point:  80000000
   Load Kernel:  .................

   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

[    0.000000] Linux version 3.14.18 (vonger@Vongers-MacBook-Pro.local) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r42586) ) #15 Wed Sep 24 11:18:53 CST 2014
[    0.000000] SoC Type: Ralink RT5350 id:1 rev:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001964c (MIPS 24KEc)
[    0.000000] MIPS: machine is VoCore
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 01000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x00ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x00ffffff]
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
[    0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Writing ErrCtl register=00048f7f
[    0.000000] Readback ErrCtl register=00048f7f
[    0.000000] Memory: 12968K/16384K available (2284K kernel code, 119K rwdata, 456K rodata, 140K init, 180K bss, 3416K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 360MHz
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] genirq: Flags mismatch irq 7. 00014600 (timer) vs. 00014600 (systick)
[    0.010000] Calibrating delay loop... 479.23 BogoMIPS (lpj=2396160)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090000] pinctrl core: initialized pinctrl subsystem
[    0.090000] NET: Registered protocol family 16
[    0.120000] bio: create slab <bio-0> at 0
[    0.120000] rt2880_gpio 10000600.gpio: registering 22 gpios
[    0.130000] rt2880_gpio 10000600.gpio: registering 22 irq handlers
[    0.130000] rt2880_gpio 10000660.gpio: registering 6 gpios
[    0.140000] rt2880_gpio 10000660.gpio: registering 6 irq handlers
[    0.150000] Switched to clocksource systick
[    0.150000] NET: Registered protocol family 2
[    0.170000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.190000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.190000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.210000] TCP: reno registered
[    0.220000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.220000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.240000] NET: Registered protocol family 1
[    0.250000] rt-timer 10000100.timer: maximum frequency is 7324Hz
[    0.270000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.330000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.330000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.360000] msgmni has been set to 25
[    0.360000] io scheduler noop registered
[    0.380000] io scheduler deadline registered (default)
[    0.400000] gpio-export gpio-export.4: 17 gpio(s) exported
[    0.420000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.430000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a 16550A
[    0.450000] console [ttyS0] enabled
[    0.450000] console [ttyS0] enabled
[    0.470000] bootconsole [early0] disabled
[    0.470000] bootconsole [early0] disabled
[    0.490000] m25p80 spi32766.0: w25q128 (16384 Kbytes)
[    0.510000] m25p80 spi32766.0: unique id: D2624816972F0823
[    0.510000] 4 ofpart partitions found on MTD device spi32766.0
[    0.530000] Creating 4 MTD partitions on "spi32766.0":
[    0.530000] 0x000000000000-0x000000030000 : "uboot"
[    0.550000] 0x000000030000-0x000000040000 : "uboot-env"
[    0.570000] 0x000000040000-0x000000050000 : "factory"
[    0.570000] 0x000000050000-0x000001000000 : "firmware"
[    0.600000] 0x00000015059f-0x000001000000 : "rootfs"
[    0.600000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.630000] mtd: device 4 (rootfs) set to be root filesystem
[    0.650000] mtd: partition "rootfs_data" created automatically, ofs=0x3d0000, len=0xc30000
[    0.670000] 0x0000003d0000-0x000001000000 : "rootfs_data"
[    0.690000] eth0: done loading
[    0.690000] rt3xxx-usbphy usbphy.3: loaded
[    0.710000] rt2880_wdt 10000120.watchdog: Initialized
[    0.720000] TCP: cubic registered
[    0.730000] NET: Registered protocol family 17
[    0.730000] 8021q: 802.1Q VLAN Support v1.8
[    0.760000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    0.780000] Freeing unused kernel memory: 140K (802cd000 - 802f0000)
procd: Console is alive
procd: - watchdog -
[    6.610000] usbcore: registered new interface driver usbfs
[    6.640000] usbcore: registered new interface driver hub
[    6.640000] usbcore: registered new device driver usb
[    6.660000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.680000] ehci-platform: EHCI generic platform driver
[    7.090000] rt3xxx-usbphy usbphy.3: remote usb device wakeup disabled
[    7.110000] rt3xxx-usbphy usbphy.3: UTMI 16bit 30MHz
[    7.110000] ehci-platform 101c0000.ehci: EHCI Host Controller
[    7.130000] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    7.140000] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    7.180000] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    7.180000] hub 1-0:1.0: USB hub found
[    7.200000] hub 1-0:1.0: 1 port detected
[    7.210000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    7.230000] ohci-platform: OHCI generic platform driver
[    7.230000] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    7.250000] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    7.270000] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    7.350000] hub 2-0:1.0: USB hub found
[    7.350000] hub 2-0:1.0: 1 port detected
procd: - preinit -
[    8.480000] rt305x-esw 10110000.esw: link changed 0x00
[    8.680000] random: mktemp urandom read with 78 bits of entropy available
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
jffs2 is ready
jffs2 is ready
[   12.530000] jffs2: notice: (315) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 7 of xref (0 dead, 0 orphan) found.
switching to overlay
procd: - early -
procd: - watchdog -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[   15.110000] NET: Registered protocol family 10
[   15.120000] tun: Universal TUN/TAP device driver, 1.6
[   15.140000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   15.160000] nf_conntrack version 0.5.0 (204 buckets, 816 max)
[   15.180000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   15.220000] i2c-ralink 10000900.i2c: loaded
[   15.230000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[   15.230000] Backport generated by backports.git backports-20140320-37-g5c33da0
[   15.230000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   15.230000] xt_time: kernel timezone is -0000
[   15.670000] cfg80211: Calling CRDA to update world regulatory domain
[   15.710000] cfg80211: World regulatory domain updated:
[   15.710000] cfg80211:  DFS Master region: unset
[   15.730000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   15.750000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   15.750000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   15.780000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   15.790000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
[   15.810000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   15.830000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   15.830000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   15.860000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   16.200000] PPP generic driver version 2.4.2
[   16.240000] NET: Registered protocol family 24
[   17.720000] random: nonblocking pool is initialized
[   17.840000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5350, rev 0500 detected
[   17.870000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5350 detected
procd: - init complete -
[   33.230000] device eth0.1 entered promiscuous mode
[   33.230000] device eth0 entered promiscuous mode
[   33.270000] br-lan: port 1(eth0.1) entered forwarding state
[   33.270000] br-lan: port 1(eth0.1) entered forwarding state
[   35.270000] br-lan: port 1(eth0.1) entered forwarding state
[   43.300000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready




[   78.690000] device wlan0 entered promiscuous mode
[   92.900000] odhcpd invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
[   92.910000] CPU: 0 PID: 714 Comm: odhcpd Not tainted 3.14.18 #15
[   92.930000] Stack : 00000000 00000000 00000000 00000000 8031ad2e 00000034 808c06d8 00000000
          80279824 802bc697 000002ca 8031399c 808c06d8 00000000 802bc048 802bc164
          00000000 80223678 00000000 8018ed58 00000006 00000020 8027c9b4 80463bb4
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 80463b40
          ...
[   92.990000] Call Trace:
[   92.990000] [<801caf80>] show_stack+0x48/0x70
[   93.010000] [<80222c9c>] dump_header.isra.17+0x4c/0x13c
[   93.020000] [<8016f938>] oom_kill_process+0xc8/0x3c8
[   93.030000] [<801708b4>] out_of_memory+0x2f0/0x328
[   93.040000] [<80026530>] __alloc_pages_nodemask+0x684/0x6e8
[   93.050000] [<800d9b20>] filemap_fault+0x214/0x3e4
[   93.060000] [<80030934>] __do_fault+0xd0/0x4fc
[   93.070000] [<800f65a8>] handle_mm_fault+0x220/0x98c
[   93.080000] [<80031108>] __do_page_fault+0x168/0x3c0
[   93.090000] [<80004420>] ret_from_exception+0x0/0x10
[   93.100000]
[   93.100000] Mem-Info:
[   93.110000] Normal per-cpu:
[   93.110000] CPU    0: hi:    0, btch:   1 usd:   0
[   93.120000] active_anon:486 inactive_anon:4 isolated_anon:0
[   93.120000]  active_file:147 inactive_file:196 isolated_file:0
[   93.120000]  unevictable:0 dirty:0 writeback:0 unstable:0
[   93.120000]  free:113 slab_reclaimable:105 slab_unreclaimable:1137
[   93.120000]  mapped:52 shmem:8 pagetables:59 bounce:0
[   93.120000]  free_cma:0
[   93.190000] Normal free:452kB min:452kB low:564kB high:676kB active_anon:1944kB inactive_anon:16kB active_file:588kB inactive_file:784kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:16384kB managed:13108kB mlocked:0kB dirty:0kB writeback:0kB mapped:208kB shmem:32kB slab_reclaimable:420kB slab_unreclaimable:4548kB kernel_stack:304kB pagetables:236kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:2060 all_unreclaimable? yes
[   93.270000] lowmem_reserve[]: 0 0
[   93.270000] Normal: 1*4kB (R) 14*8kB (R) 19*16kB (R) 1*32kB (R) 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 452kB
[   93.290000] 351 total pagecache pages
[   93.300000] 0 pages in swap cache
[   93.310000] Swap cache stats: add 0, delete 0, find 0/0
[   93.320000] Free swap  = 0kB
[   93.320000] Total swap = 0kB
[   93.330000] 4096 pages RAM
[   93.340000] 0 pages HighMem/MovableOnly
[   93.340000] 819 pages reserved
[   93.350000] [ pid ]   uid  tgid total_vm      rss nr_ptes swapents oom_score_adj name
[   93.370000] [  373]     0   373      222       31       3        0             0 ubusd
[   93.380000] [  374]     0   374      368       20       3        0             0 ash
[   93.400000] [  656]     0   656      262       44       4        0             0 logd
[   93.420000] [  690]     0   690      386       62       5        0             0 netifd
[   93.420000] [  714]     0   714      296       43       4        0             0 odhcpd
[   93.450000] [  750]     0   750      287       19       4        0             0 dropbear
[   93.460000] [  785]     0   785      382       38       4        0             0 uhttpd
[   93.480000] [  819]     0   819      370       30       3        0             0 ntpd
[   93.500000] [  829]     0   829      378       25       4        0             0 hotplug-call
[   93.500000] [  830]     0   830      406       58       4        0             0 mac80211.sh
[   93.530000] [  846]     0   846      379       26       4        0             0 hotplug-call
[   93.550000] [  896]     0   896      414       43       4        0             0 hostapd
[   93.560000] [  900]     0   900      379       27       3        0             0 hotplug-call
[   93.580000] [  901]     0   901      368       19       3        0             0 ls
[   93.600000] [  902]     0   902      447       71       4        0             0 fw3
[   93.600000] Out of memory: Kill process 902 (fw3) score 22 or sacrifice child
[   93.630000] Killed process 902 (fw3) total-vm:1788kB, anon-rss:160kB, file-rss:124kB


Any idea what may be wrong?

deshipu
 
Posts: 21
Joined: Wed Nov 19, 2014 5:10 pm

Re: OOM killer on the loose

Fri Dec 05, 2014 7:00 pm

Hmm, nevermind, using a different USB2TTL solved the problem. Probably the power was too noisy or something like that.

Return to VoCore & VoCore+Dock

Who is online

Users browsing this forum: No registered users and 34 guests