Hi,

I run openwrt trunk r28151 on a TL-741ND v2.1:

the router is working, but I noticed a high usage on the overlay-partition after a fresh install:

root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 2.3M      2.3M         0 100% /rom
tmpfs                    14.4M     40.0K     14.4M   0% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock3          320.0K    212.0K    108.0K  66% /overlay
overlayfs:/overlay      320.0K    212.0K    108.0K  66% /

this is strange because the files on /overlay are only 30KB in total.
I started in failsafe-mode and  run the "firstboot"-command to erase the jffs2-partion.
on the completely empty /overlay 196KB are used! I don't think this is normal, and I do not experience this on other devices e.g. on a TL-MR3220 (which has a 4MB SPI-Flash too) only a few KB are used.

this is the dmesg output:

root@(none):/# dmesg 
Linux version 2.6.39.4 (wolfgang@hideous) (gcc version 4.5.4 20110808 (prerelease) (Linaro GCC 4.5-2011.08) ) #2 Sun Sep 4 12:05:09 CEST 2011
prom: fw_arg0=00000007, fw_arg1=a1f87fb0, fw_arg2=a1f88460, fw_arg3=00000004
MyLoader: sysp=ffffffff, boardp=ffffffff, parts=f0f0f0f0
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
SoC: Atheros AR7240 rev 2
Clocks: CPU:350.000MHz, DDR:350.000MHz, AHB:175.000MHz, Ref:5.000MHz
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 802c64a0, node_mem_map 81000000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0 
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line:  board=TL-WR741ND console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29316k/32768k available (2044k kernel code, 3452k reserved, 414k data, 176k init, 0k highmem)
SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:80
Calibrating delay loop... 232.24 BogoMIPS (lpj=1161216)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is TP-LINK TL-WR741ND
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
pci 0000:00:00.0: [168c:ff1c] type 0 class 0x000200
pci 0000:00:00.0: fixup device configuration
pci 0000:00:00.0: reg 10: [mem 0x00000000-0x0000ffff 64bit]
pci 0000:00:00.0: supports D1
pci 0000:00:00.0: PME# supported from D0 D1 D3hot
pci 0000:00:00.0: PME# disabled
pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
pci 0000:00:00.0: BAR 0: set to [mem 0x10000000-0x1000ffff 64bit] (PCI address [0x10000000-0x1000ffff])
PCI: mapping irq 72 to pin1@0000:00:00.0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
PCI: CLS 0 bytes, default 32
squashfs: version 4.0 (2009/01/31) Phillip Lougher
JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
Registering JFFS2 compressor "rtime"
Compressor "rtime", prio 50
Registering JFFS2 compressor "lzma"
Compressor "lzma", prio 70
Compressor "rtime", prio 50
JFFS2: default compression mode: priority
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: found s25sl032a, expected m25p80
m25p80 spi0.0: s25sl032a (4096 Kbytes)
spi0.0: searching for MyLoader partition table at offset 0x10000
spi0.0: searching for MyLoader partition table at offset 0x20000
spi0.0: searching for MyLoader partition table at offset 0x30000
spi0.0: searching for MyLoader partition table at offset 0x40000
spi0.0: no MyLoader partition table found
Searching for RedBoot partition table in spi0.0 at offset 0x3e0000
Searching for RedBoot partition table in spi0.0 at offset 0x3f0000
No RedBoot partition table detected in spi0.0
spi0.0: no WRT160NL signature found
Creating 5 MTD partitions on "spi0.0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000160000 : "kernel"
0x000000160000-0x0000003f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=3A0000, len=50000 
0x0000003a0000-0x0000003f0000 : "rootfs_data"
0x0000003f0000-0x000000400000 : "art"
0x000000020000-0x0000003f0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xba000000, irq 5
eth0: Found an AR7240 built-in switch
eth1: Atheros AG71xx at 0xb9000000, irq 4
eth1: connected to PHY at ag71xx-mdio:04 [uid=004dd041, driver=Generic PHY]
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=24)
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 176k freed
input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
Button Hotplug driver version 0.4.1
Registered led device: tl-wr741nd:green:system
Registered led device: tl-wr741nd:green:qss
eth0: link up (1000Mbps/Full duplex)

I enabled the debug-level 2 for the jffs2-kernelmodule and run another "firstboot"... this is the corresponding dmesg-output:

jffs2_get_sb_mtd(): New superblock for device 3 ("rootfs_data")
[JFFS2 DBG] (393) jffs2_sum_init: returned successfully
[JFFS2 DBG] (393) jffs2_build_filesystem: build FS data structures
Allocating readbuf of 4096 bytes
[JFFS2 DBG] (393) jffs2_sum_reset_collected: called
[JFFS2 DBG] (393) jffs2_sum_clean_collected: already empty
jffs2_scan_eraseblock(): Scanning block at 0x0
Block at 0x00000000 is empty (erased)
[JFFS2 DBG] (393) jffs2_sum_reset_collected: called
[JFFS2 DBG] (393) jffs2_sum_clean_collected: already empty
jffs2_scan_eraseblock(): Scanning block at 0x10000
Block at 0x00010000 is empty (erased)
[JFFS2 DBG] (393) jffs2_sum_reset_collected: called
[JFFS2 DBG] (393) jffs2_sum_clean_collected: already empty
jffs2_scan_eraseblock(): Scanning block at 0x20000
Block at 0x00020000 is empty (erased)
[JFFS2 DBG] (393) jffs2_sum_reset_collected: called
[JFFS2 DBG] (393) jffs2_sum_clean_collected: already empty
jffs2_scan_eraseblock(): Scanning block at 0x30000
Block at 0x00030000 is empty (erased)
[JFFS2 DBG] (393) jffs2_sum_reset_collected: called
[JFFS2 DBG] (393) jffs2_sum_clean_collected: already empty
jffs2_scan_eraseblock(): Scanning block at 0x40000
Block at 0x00040000 is empty (erased)
[JFFS2 DBG] (393) jffs2_build_filesystem: scanned flash completely
[JFFS2 DBG] dump JFFS2 blocks lists:
flash_size: 0x050000
used_size: 0x000000
dirty_size: 0x000000
wasted_size: 0x000000
unchecked_size: 0x000000
free_size: 0x050000
erasing_size: 0x000000
bad_size: 0x000000
sector_size: 0x010000
jffs2_reserved_blocks size: 0x000000
nextblock: NULL
gcblock: NULL
clean_list: empty
very_dirty_list: empty
dirty_list: empty
erasable_list: empty
erasing_list: empty
erase_checking_list: empty
erasable_pending_wbuf_list: empty
free_list: empty
bad_list: empty
bad_used_list: empty
[JFFS2 DBG] (393) jffs2_build_filesystem: pass 1 starting
[JFFS2 DBG] (393) jffs2_build_filesystem: pass 1 complete
[JFFS2 DBG] (393) jffs2_build_filesystem: pass 2 starting
[JFFS2 DBG] (393) jffs2_build_filesystem: pass 2a starting
[JFFS2 DBG] (393) jffs2_build_filesystem: pass 2a complete
[JFFS2 DBG] (393) jffs2_build_filesystem: freeing temporary data structures
JFFS2 notice: (393) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[JFFS2 DBG] (393) jffs2_build_filesystem: FS build complete
[JFFS2 DBG] (393) jffs2_calc_trigger_levels: JFFS2 trigger levels (size 320 KiB, block size 64 KiB, 5 blocks)
[JFFS2 DBG] (393) jffs2_calc_trigger_levels: Blocks required to allow deletion:    2 (128 KiB)
[JFFS2 DBG] (393) jffs2_calc_trigger_levels: Blocks required to allow writes:      3 (192 KiB)
[JFFS2 DBG] (393) jffs2_calc_trigger_levels: Blocks required to quiesce GC thread: 4 (256 KiB)
[JFFS2 DBG] (393) jffs2_calc_trigger_levels: Blocks required to allow GC merges:   3 (192 KiB)
[JFFS2 DBG] (393) jffs2_calc_trigger_levels: Blocks required to GC bad blocks:     0 (0 KiB)
[JFFS2 DBG] (393) jffs2_calc_trigger_levels: Amount of dirty space required to GC: 68812 bytes
[JFFS2 DBG] (393) jffs2_calc_trigger_levels: Very dirty blocks before GC triggered: 4
jffs2_do_fill_super(): Getting root inode
jffs2_iget(): ino == 1
[JFFS2 DBG] (393) jffs2_do_read_inode: read inode #1
[JFFS2 DBG] (393) jffs2_alloc_inode_cache: 81840180
[JFFS2 DBG] (393) jffs2_do_read_inode: creating inocache for root inode
[JFFS2 DBG] (393) jffs2_add_ino_cache: add 81840180 (ino #1)
[JFFS2 DBG] (393) jffs2_do_read_inode_internal: ino #1 pino/nlink is 1
[JFFS2 DBG] (393) jffs2_get_inode_nodes: ino #1
[JFFS2 DBG] (393) jffs2_get_inode_nodes: nodes of inode #1 were read, the highest version is 0, latest_mctime 0, mctime_ver 0.
jffs2_read_inode() returning
jffs2_do_fill_super(): d_alloc_root()
JFFS2: Garbage collect thread is pid 394
jffs2_lookup()
jffs2_lookup()
jffs2_lookup()
jffs2_lookup()
jffs2_lookup()
jffs2_lookup()
jffs2_garbage_collect_thread(): pass
jffs2_garbage_collect_pass() erasing pending blocks
Starting erase of pending block 0x00030000
Freeing all node refs for eraseblock offset 0x00030000
jffs2_erase_block(): erase block 0x030000 (range 0x030000-0x040000)
Erase completed successfully at 0x00030000
Verifying erase at 0x00030000
jffs2_lookup()
jffs2_lookup()
jffs2_lookup()
Writing erased marker to block at 0x00030000
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: 1
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: Reserving 1 refs for block @0x00030000
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: Allocating new refblock linked from 81a280c8
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: Reserved 1 refs for block @0x00030000, last_node is 81a77000 (fffffffe,  (null))
[JFFS2 DBG] (394) jffs2_sum_add_kvec: node CLEANMARKER
[JFFS2 DBG] (394) jffs2_link_node_ref: Last node at 81a77000 is (fffffffe,  (null))
[JFFS2 DBG] (394) jffs2_link_node_ref: New ref is 81a77000 (fffffffe becomes 00030003,  (null)) len 0xc
Count reached. jffs2_erase_pending_blocks leaving
jffs2_erase_pending_blocks completed
jffs2_garbage_collect_thread(): pass
jffs2_garbage_collect_pass() erasing pending blocks
Starting erase of pending block 0x00020000
Freeing all node refs for eraseblock offset 0x00020000
jffs2_erase_block(): erase block 0x020000 (range 0x020000-0x030000)
Erase completed successfully at 0x00020000
Verifying erase at 0x00020000
Writing erased marker to block at 0x00020000
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: 1
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: Reserving 1 refs for block @0x00020000
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: Allocating new refblock linked from 81a28094
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: Reserved 1 refs for block @0x00020000, last_node is 81a770f8 (fffffffe,  (null))
[JFFS2 DBG] (394) jffs2_sum_add_kvec: node CLEANMARKER
[JFFS2 DBG] (394) jffs2_link_node_ref: Last node at 81a770f8 is (fffffffe,  (null))
[JFFS2 DBG] (394) jffs2_link_node_ref: New ref is 81a770f8 (fffffffe becomes 00020003,  (null)) len 0xc
Count reached. jffs2_erase_pending_blocks leaving
jffs2_erase_pending_blocks completed
jffs2_garbage_collect_thread(): pass
jffs2_garbage_collect_pass() erasing pending blocks
Starting erase of pending block 0x00010000
Freeing all node refs for eraseblock offset 0x00010000
jffs2_erase_block(): erase block 0x010000 (range 0x010000-0x020000)
Erase completed successfully at 0x00010000
Verifying erase at 0x00010000
Writing erased marker to block at 0x00010000
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: 1
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: Reserving 1 refs for block @0x00010000
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: Allocating new refblock linked from 81a28060
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: Reserved 1 refs for block @0x00010000, last_node is 81a771f0 (fffffffe,  (null))
[JFFS2 DBG] (394) jffs2_sum_add_kvec: node CLEANMARKER
[JFFS2 DBG] (394) jffs2_link_node_ref: Last node at 81a771f0 is (fffffffe,  (null))
[JFFS2 DBG] (394) jffs2_link_node_ref: New ref is 81a771f0 (fffffffe becomes 00010003,  (null)) len 0xc
Count reached. jffs2_erase_pending_blocks leaving
jffs2_erase_pending_blocks completed
jffs2_garbage_collect_thread(): pass
jffs2_garbage_collect_pass() erasing pending blocks
Starting erase of pending block 0x00000000
Freeing all node refs for eraseblock offset 0x00000000
jffs2_erase_block(): erase block 0x000000 (range 0x000000-0x010000)
Erase completed successfully at 0x00000000
Verifying erase at 0x00000000
Writing erased marker to block at 0x00000000
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: 1
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: Reserving 1 refs for block @0x00000000
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: Allocating new refblock linked from 81a2802c
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: Reserved 1 refs for block @0x00000000, last_node is 81a772e8 (fffffffe,  (null))
[JFFS2 DBG] (394) jffs2_sum_add_kvec: node CLEANMARKER
[JFFS2 DBG] (394) jffs2_link_node_ref: Last node at 81a772e8 is (fffffffe,  (null))
[JFFS2 DBG] (394) jffs2_link_node_ref: New ref is 81a772e8 (fffffffe becomes 00000003,  (null)) len 0xc
Count reached. jffs2_erase_pending_blocks leaving
jffs2_erase_pending_blocks completed
jffs2_garbage_collect_thread(): pass
jffs2_garbage_collect_pass() erasing pending blocks
Starting erase of pending block 0x00040000
Freeing all node refs for eraseblock offset 0x00040000
jffs2_erase_block(): erase block 0x040000 (range 0x040000-0x050000)
Erase completed successfully at 0x00040000
Verifying erase at 0x00040000
jffs2_lookup()
jffs2_lookup()
Writing erased marker to block at 0x00040000
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: 1
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: Reserving 1 refs for block @0x00040000
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: Allocating new refblock linked from 81a280fc
[JFFS2 DBG] (394) jffs2_prealloc_raw_node_refs: Reserved 1 refs for block @0x00040000, last_node is 81a773e0 (fffffffe,  (null))
[JFFS2 DBG] (394) jffs2_sum_add_kvec: node CLEANMARKER
[JFFS2 DBG] (394) jffs2_link_node_ref: Last node at 81a773e0 is (fffffffe,  (null))
[JFFS2 DBG] (394) jffs2_link_node_ref: New ref is 81a773e0 (fffffffe becomes 00040003,  (null)) len 0xc
Count reached. jffs2_erase_pending_blocks leaving
jffs2_erase_pending_blocks completed
jffs2_thread_should_wake(): nr_free_blocks 5, nr_erasing_blocks 0, dirty_size 0x0, vdirty_blocks 0: no
jffs2_garbage_collect_thread sleeping...

So does anyone knows what's going on?

(Last edited by eleon216 on 4 Sep 2011, 12:06)