>>>>> "David" == David Kuehling <[email protected]> writes:
> Hi,
> when trying to save a 17kB file in Emacs to my 1.5GB ubifs data
> partition, the OOM killer kills emacs, although at least 5MB of RAM
> should still be available. This could be an emacs problem, but I
> somehow doubt it.
> Is ubifs somehow very memory hungry (does it need much memory to move
> eraseblocks around?)
Do we have a general memory usage problem? (Note: i'm running a
openwrt-_trunk_ nightly build from a few weeks ago)
Typing 'free' it says:
total used free shared buffers cached
Mem: 28048 15392 12656 0 0 1220
-/+ buffers/cache: 14172 13876
Swap: 0 0 0
14 MB RAM in usage by default? IIRC that's more than a minimal Debian
system uses!
Attached is the dmesg output corresponding to the emacs kill.
$ cat /etc/VERSION
2011-05-29
$ uname -a
Linux BenNanoNote 2.6.37.6 #1 PREEMPT Mon May 30 20:28:38 CEST 2011 mips
GNU/Linux
any ideas?
cheers,
David
--
GnuPG public key: http://dvdkhlng.users.sourceforge.net/dk.gpg
Fingerprint: B17A DC95 D293 657B 4205 D016 7DEF 5323 C174 7D40
al zone: 64 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 8128 pages, LIFO batch:0 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 8128 [ 0.000000] Kernel command line: mem=32M console=ttyS0,57600n8 ubi.mtd=2 rootfstype=ubifs root=ubi0:rootfs rw rootwait [ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes) [ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes [ 0.000000] Memory: 27892k/32768k available (3140k kernel code, 4876k reserved, 1008k data, 156k init, 0k highmem) [ 0.000000] NR_IRQS:190 [ 0.000000] Console: colour dummy device 80x25 [ 0.000000] Calibrating delay loop... 335.05 BogoMIPS (lpj=1675264) [ 0.240000] pid_max: default: 32768 minimum: 301 [ 0.250000] Mount-cache hash table entries: 512 [ 0.270000] NET: Registered protocol family 16 [ 0.290000] JZ4740 GPIO initalized [ 0.300000] Qi Hardware JZ4740 QI LB60 setup [ 0.390000] bio: create slab <bio-0> at 0 [ 0.410000] Advanced Linux Sound Architecture Driver Version 1.0.23. [ 0.420000] Switching to clocksource jz4740-timer [ 0.540000] NET: Registered protocol family 2 [ 0.550000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.570000] TCP established hash table entries: 1024 (order: 1, 8192 bytes) [ 0.580000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.590000] TCP: Hash tables configured (established 1024 bind 1024) [ 0.600000] TCP reno registered [ 0.600000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.610000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.620000] NET: Registered protocol family 1 [ 0.630000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.650000] msgmni has been set to 54 [ 0.660000] io scheduler noop registered [ 0.660000] io scheduler deadline registered (default) [ 0.700000] Console: switching to colour frame buffer device 40x15 [ 0.730000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 0.750000] serial8250.0: ttyS0 at MMIO 0x10030000 (irq = 17) is a 16550 [ 0.760000] console [ttyS0] enabled, bootconsole disabled [ 0.770000] serial8250.0: ttyS1 at MMIO 0x10031000 (irq = 16) is a 16550 [ 0.790000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xd5 (Samsung ) [ 0.810000] Scanning device for bad blocks [ 1.100000] Creating 4 MTD partitions on "jz4740-nand": [ 1.120000] 0x000000000000-0x000000400000 : "NAND BOOT partition" [ 1.130000] 0x000000400000-0x000000800000 : "NAND KERNEL partition" [ 1.140000] 0x000000800000-0x000020800000 : "NAND ROOTFS partition" [ 1.150000] 0x000020800000-0x000080000000 : "NAND DATA partition" [ 1.170000] jz4740-nand jz4740-nand.0: Successfully registered JZ4740 NAND driver [ 1.180000] UBI: attaching mtd2 to ubi0 [ 1.190000] UBI: physical eraseblock size: 524288 bytes (512 KiB) [ 1.200000] UBI: logical eraseblock size: 516096 bytes [ 1.210000] UBI: smallest flash I/O unit: 4096 [ 1.220000] UBI: VID header offset: 4096 (aligned 4096) [ 1.230000] UBI: data offset: 8192 [ 1.580000] UBI: max. sequence number: 717 [ 1.610000] UBI: attached mtd2 to ubi0 [ 1.620000] UBI: MTD device name: "NAND ROOTFS partition" [ 1.630000] UBI: MTD device size: 512 MiB [ 1.640000] UBI: number of good PEBs: 1024 [ 1.650000] UBI: number of bad PEBs: 0 [ 1.650000] UBI: number of corrupted PEBs: 0 [ 1.660000] UBI: max. allowed volumes: 128 [ 1.670000] UBI: wear-leveling threshold: 4096 [ 1.680000] UBI: number of internal volumes: 1 [ 1.690000] UBI: number of user volumes: 1 [ 1.700000] UBI: available PEBs: 0 [ 1.710000] UBI: total number of reserved PEBs: 1024 [ 1.720000] UBI: number of PEBs reserved for bad PEB handling: 10 [ 1.730000] UBI: max/mean erase counter: 21/0 [ 1.740000] UBI: image sequence number: 1270589860 [ 1.750000] UBI: background thread "ubi_bgt0d" started, PID 253 [ 1.790000] g_ether gadget: using random self ethernet address [ 1.800000] g_ether gadget: using random host ethernet address [ 1.820000] usb0: MAC 9a:18:5a:42:c1:35 [ 1.820000] usb0: HOST MAC 6a:cf:3c:dc:de:73 [ 1.830000] g_ether gadget: controller 'jz4740-udc' not recognized; trying CDC Ethernet (ECM) [ 1.840000] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008 [ 1.850000] g_ether gadget: g_ether ready [ 1.860000] mice: PS/2 mouse device common for all mice [ 1.880000] input: gpio-keys as /devices/platform/gpio-keys/input/input0 [ 1.900000] input: matrix-keypad as /devices/platform/matrix-keypad/input/input1 [ 1.920000] input: pwm-beeper as /devices/platform/pwm-beeper/input/input2 [ 1.940000] jz4740-rtc jz4740-rtc: rtc core: registered jz4740-rtc as rtc0 [ 1.970000] jz4740-mmc jz4740-mmc.0: JZ SD/MMC card driver registered [ 2.030000] asoc: jz4740-hifi <-> jz4740-i2s mapping ok [ 2.050000] ALSA device list: [ 2.060000] #0: QI LB60 [ 2.070000] TCP westwood registered [ 2.070000] NET: Registered protocol family 17 [ 2.090000] jz4740-rtc jz4740-rtc: setting system clock to 1970-06-22 17:55:15 UTC (14925315) [ 2.270000] g_ether gadget: high speed config #1: CDC Ethernet (ECM) [ 2.730000] UBIFS: mounted UBI device 0, volume 0, name "rootfs" [ 2.740000] UBIFS: file system size: 516096000 bytes (504000 KiB, 492 MiB, 1000 LEBs) [ 2.750000] UBIFS: journal size: 10452992 bytes (10208 KiB, 9 MiB, 21 LEBs) [ 2.760000] UBIFS: media format: w4/r0 (latest is w4/r0) [ 2.770000] UBIFS: default compressor: lzo [ 2.780000] UBIFS: reserved for root: 0 bytes (0 KiB) [ 2.790000] VFS: Mounted root (ubifs filesystem) on device 0:11. [ 2.800000] mmc0: host does not support reading read-only switch. assuming write-enable. [ 2.820000] mmc0: new SDHC card at address b368 [ 2.830000] Freeing unused kernel memory: 156k freed [ 2.840000] mmcblk0: mmc0:b368 USD 3.75 GiB [ 2.860000] mmcblk0: p1 p3 [ 12.390000] ks7010_sdio : May 30 2011 17:24:28 [ 12.610000] tun: Universal TUN/TAP device driver, 1.6 [ 12.640000] tun: (C) 1999-2004 Max Krasnyansky <[email protected]> [ 13.050000] fuse init (API version 7.15) [ 16.340000] UBI: attaching mtd3 to ubi1 [ 16.350000] UBI: physical eraseblock size: 524288 bytes (512 KiB) [ 16.360000] UBI: logical eraseblock size: 516096 bytes [ 16.370000] UBI: smallest flash I/O unit: 4096 [ 16.380000] UBI: VID header offset: 4096 (aligned 4096) [ 16.390000] UBI: data offset: 8192 [ 17.480000] UBI: max. sequence number: 1989 [ 17.520000] UBI: attached mtd3 to ubi1 [ 17.530000] UBI: MTD device name: "NAND DATA partition" [ 17.540000] UBI: MTD device size: 1528 MiB [ 17.550000] UBI: number of good PEBs: 3056 [ 17.560000] UBI: number of bad PEBs: 0 [ 17.570000] UBI: number of corrupted PEBs: 0 [ 17.580000] UBI: max. allowed volumes: 128 [ 17.590000] UBI: wear-leveling threshold: 4096 [ 17.600000] UBI: number of internal volumes: 1 [ 17.610000] UBI: number of user volumes: 1 [ 17.620000] UBI: available PEBs: 15 [ 17.630000] UBI: total number of reserved PEBs: 3041 [ 17.640000] UBI: number of PEBs reserved for bad PEB handling: 30 [ 17.650000] UBI: max/mean erase counter: 18/1 [ 17.660000] UBI: image sequence number: 0 [ 17.670000] UBI: background thread "ubi_bgt1d" started, PID 738 [ 18.290000] UBIFS: mounted UBI device 1, volume 0, name "data" [ 18.300000] UBIFS: file system size: 1546739712 bytes (1510488 KiB, 1475 MiB, 2997 LEBs) [ 18.310000] UBIFS: journal size: 33546240 bytes (32760 KiB, 31 MiB, 65 LEBs) [ 18.320000] UBIFS: media format: w4/r0 (latest is w4/r0) [ 18.330000] UBIFS: default compressor: lzo [ 18.340000] UBIFS: reserved for root: 4952683 bytes (4836 KiB) [ 1269.030000] g_ether gadget: high speed config #1: CDC Ethernet (ECM) [27752.680000] emacs invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0, oom_score_adj=0 [27752.690000] Call Trace:[<8002a704>] 0x8002a704 [27752.700000] [<8031d154>] 0x8031d154 [27752.700000] [<8031d154>] 0x8031d154 [27752.710000] [<80068b2c>] 0x80068b2c [27752.720000] [<80068ed4>] 0x80068ed4 [27752.720000] [<80069630>] 0x80069630 [27752.730000] [<8006d5d0>] 0x8006d5d0 [27752.740000] [<8006cd3c>] 0x8006cd3c [27752.750000] [<80067c14>] 0x80067c14 [27752.750000] [<8007fae8>] 0x8007fae8 [27752.760000] [<80083214>] 0x80083214 [27752.770000] [<8001d510>] 0x8001d510 [27752.770000] [<80086150>] 0x80086150 [27752.780000] [<80086ce8>] 0x80086ce8 [27752.790000] [<80086f70>] 0x80086f70 [27752.790000] [<80013be4>] 0x80013be4 [27752.800000] [27752.800000] Mem-Info: [27752.810000] Normal per-cpu: [27752.810000] CPU 0: hi: 0, btch: 1 usd: 0 [27752.820000] active_anon:3581 inactive_anon:5 isolated_anon:0 [27752.820000] active_file:0 inactive_file:0 isolated_file:0 [27752.820000] unevictable:0 dirty:0 writeback:0 unstable:0 [27752.820000] free:182 slab_reclaimable:119 slab_unreclaimable:588 [27752.820000] mapped:1 shmem:9 pagetables:61 bounce:0 [27752.830000] Normal free:728kB min:720kB low:900kB high:1080kB active_anon:14324kB inactive_anon:20kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:32512kB mlocked:0kB dirty:0kB writeback:0kB mapped:4kB shmem:36kB slab_reclaimable:476kB slab_unreclaimable:2352kB kernel_stack:352kB pagetables:244kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [27752.840000] lowmem_reserve[]: 0 0 [27752.850000] Normal: 0*4kB 1*8kB 1*16kB 0*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB = 728kB [27752.870000] 9 total pagecache pages [27752.880000] 0 pages in swap cache [27752.890000] Swap cache stats: add 0, delete 0, find 0/0 [27752.900000] Free swap = 0kB [27752.900000] Total swap = 0kB [27752.910000] 8192 pages RAM [27752.920000] 1180 pages reserved [27752.920000] 38 pages shared [27752.930000] 6079 pages non-shared [27752.940000] [ pid ] uid tgid total_vm rss cpu oom_adj oom_score_adj name [27752.950000] [ 531] 0 531 422 19 0 0 0 init [27752.960000] [ 535] 0 535 427 24 0 0 0 ash [27752.970000] [ 536] 0 536 422 19 0 0 0 init [27752.980000] [ 537] 0 537 422 19 0 0 0 init [27752.990000] [ 564] 0 564 252 19 0 0 0 hotplug2 [27753.000000] [ 714] 0 714 336 19 0 0 0 dropbear [27753.010000] [ 720] 0 720 381 22 0 0 0 dbus-daemon [27753.020000] [ 723] 0 723 250 15 0 0 0 thd [27753.030000] [ 784] 0 784 354 38 0 0 0 dropbear [27753.040000] [ 785] 0 785 426 26 0 0 0 ash [27753.050000] [ 1143] 0 1143 420 17 0 0 0 gmenu2x [27753.060000] [ 1150] 0 1150 420 16 0 0 0 sh [27753.070000] [ 1153] 0 1153 432 29 0 0 0 ash [27753.080000] [ 1207] 0 1207 4291 3314 0 0 0 emacs [27753.090000] Out of memory: Kill process 1207 (emacs) score 442 or sacrifice child [27753.100000] Killed process 1207 (emacs) total-vm:17164kB, anon-rss:13252kB, file-rss:4kB [28061.740000] g_ether gadget: high speed config #1: CDC Ethernet (ECM) [28421.490000] emacs invoked oom-killer: gfp_mask=0x200da, order=0, oom_adj=0, oom_score_adj=0 [28421.500000] Call Trace:[<8002a704>] 0x8002a704 [28421.500000] [<8031d154>] 0x8031d154 [28421.510000] [<8031d154>] 0x8031d154 [28421.520000] [<80068b2c>] 0x80068b2c [28421.530000] [<80068ed4>] 0x80068ed4 [28421.530000] [<80069630>] 0x80069630 [28421.540000] [<8006d5d0>] 0x8006d5d0 [28421.550000] [<8008305c>] 0x8008305c [28421.550000] [<8001d510>] 0x8001d510 [28421.560000] [<80086150>] 0x80086150 [28421.570000] [<80086ce8>] 0x80086ce8 [28421.580000] [<80086f70>] 0x80086f70 [28421.580000] [<80013be4>] 0x80013be4 [28421.590000] [28421.590000] Mem-Info: [28421.600000] Normal per-cpu: [28421.600000] CPU 0: hi: 0, btch: 1 usd: 0 [28421.610000] active_anon:3553 inactive_anon:5 isolated_anon:0 [28421.610000] active_file:0 inactive_file:0 isolated_file:0 [28421.610000] unevictable:0 dirty:0 writeback:0 unstable:0 [28421.610000] free:182 slab_reclaimable:115 slab_unreclaimable:605 [28421.610000] mapped:2 shmem:9 pagetables:65 bounce:0 [28421.620000] Normal free:728kB min:720kB low:900kB high:1080kB active_anon:14212kB inactive_anon:20kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:32512kB mlocked:0kB dirty:0kB writeback:0kB mapped:8kB shmem:36kB slab_reclaimable:460kB slab_unreclaimable:2420kB kernel_stack:368kB pagetables:260kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes [28421.630000] lowmem_reserve[]: 0 0 [28421.640000] Normal: 0*4kB 1*8kB 1*16kB 0*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB = 728kB [28421.660000] 10 total pagecache pages [28421.670000] 0 pages in swap cache [28421.680000] Swap cache stats: add 0, delete 0, find 0/0 [28421.690000] Free swap = 0kB [28421.690000] Total swap = 0kB [28421.700000] 8192 pages RAM [28421.710000] 1180 pages reserved [28421.710000] 32 pages shared [28421.720000] 6074 pages non-shared [28421.720000] [ pid ] uid tgid total_vm rss cpu oom_adj oom_score_adj name [28421.730000] [ 531] 0 531 422 19 0 0 0 init [28421.740000] [ 535] 0 535 427 24 0 0 0 ash [28421.750000] [ 536] 0 536 427 23 0 0 0 ash [28421.760000] [ 537] 0 537 422 19 0 0 0 init [28421.770000] [ 564] 0 564 252 19 0 0 0 hotplug2 [28421.780000] [ 714] 0 714 336 19 0 0 0 dropbear [28421.790000] [ 720] 0 720 381 22 0 0 0 dbus-daemon [28421.800000] [ 723] 0 723 250 15 0 0 0 thd [28421.810000] [ 1143] 0 1143 420 17 0 0 0 gmenu2x [28421.820000] [ 1150] 0 1150 420 16 0 0 0 sh [28421.830000] [ 1153] 0 1153 432 29 0 0 0 ash [28421.850000] [ 1228] 0 1228 354 38 0 0 0 dropbear [28421.860000] [ 1229] 0 1229 427 24 0 0 0 ash [28421.870000] [ 1241] 0 1241 4082 3240 0 0 0 emacs [28421.880000] [ 1249] 0 1249 375 37 0 0 0 top [28421.890000] Out of memory: Kill process 1241 (emacs) score 432 or sacrifice child [28421.900000] Killed process 1241 (emacs) total-vm:16328kB, anon-rss:12952kB, file-rss:8kB
pgpzt404vkElW.pgp
Description: PGP signature
_______________________________________________ Qi Hardware Discussion List Mail to list (members only): [email protected] Subscribe or Unsubscribe: http://lists.en.qi-hardware.com/mailman/listinfo/discussion

