2010-03-04 15:23:07 setting disk page caching to free memory
Doug Bailey (UNITED STATES)
Message: 86812
I have an application that runs on a BF537 based board and uses the .2 rev of the silicon (Subject to anomoly 05000263 that limits memory to 48 MB)
I am working on porting my application from a 2.6.16 kernel distro to the 2009R1.1-RC4 2.6.28 based distro. The port is going well except that I am missing ~10 MB of usable memory that I had available in the old image. From what I can tell, the extra memory is being consumed by disk image. (I see 15,744 KB's in my inactive file memory usage that I cannot seem to free using the drop_caches tunable.)
The two images are very similar but do have some differences. I am using the pata_pcmcia driver instead of the ide_cs for my compact FLASH driver. (If I unmount the CF, I do not see any real gain in memory availability.) Both images use the initramfs image to store most of the files. Both file systems have roughly equivalent number of size of files.
I have enclosed some information about memory usage from the two images.
Is my assumption that disk caching and storage is causing the biggest difference in memory usage?
Is there a good description on how I can address this?
Are there tunables available to restrcit the disk cache behavior?
Any suggestions for troubleshooting steps?
Thanks
Doug Bailey
==================================================
Memory Usage between the two images.
Old 2.6.16 based image:
root:~> cat /proc/meminfo
MemTotal: 46896 kB
MemFree: 19300 kB
Buffers: 156 kB
Cached: 2860 kB
SwapCached: 0 kB
Active: 964 kB
Inactive: 2052 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 46896 kB
LowFree: 19300 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 4 kB
Writeback: 0 kB
Mapped: 0 kB
Slab: 24072 kB
CommitLimit: 23448 kB
Committed_AS: 0 kB
PageTables: 0 kB
VmallocTotal: 0 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
New 2.6.28 based image:
root:~> cat /proc/meminfo
MemTotal: 54556 kB
MemFree: 8808 kB
Buffers: 52 kB
Cached: 20300 kB
SwapCached: 0 kB
Active: 4608 kB
Inactive: 15744 kB
Active(anon): 0 kB
Inactive(anon): 0 kB
Active(file): 4608 kB
Inactive(file): 15744 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 0 kB
Mapped: 0 kB
Slab: 3052 kB
SReclaimable: 1504 kB
SUnreclaim: 1548 kB
PageTables: 0 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 27276 kB
Committed_AS: 0 kB
VmallocTotal: 0 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
Old image mounts:
root:~> cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext2 rw,nogrpid 0 0
none /proc proc rw 0 0
none /ramfs ramfs rw 0 0
none /sys sysfs rw 0 0
none /dev/pts devpts rw 0 0
/dev/hda1 /ramfs/var/lib/asterisk/sounds ext3 rw,data=ordered 0 0
New image mounts:
root:~> cat /proc/mounts
rootfs / rootfs rw 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
mdev /dev tmpfs rw,nosuid 0 0
devpts /dev/pts devpts rw,nosuid,noexec,mode=600 0 0
tmp /tmp tmpfs rw,nosuid,nodev 0 0
debugfs /sys/kernel/debug debugfs rw 0 0
/dev/sda1 /var/lib/asterisk/sounds ext3 rw,errors=continue,data=ordered 0 0
Old image slabinfo pertaining to inode_cache and dentry_cache
mnt_cache 16 30 128 30 1 : tunables 120 60 0 : slabdata 1 1 0
inode_cache 453 462 280 14 1 : tunables 54 27 0 : slabdata 33 33 0
dentry_cache 852 899 124 31 1 : tunables 120 60 0 : slabdata 29 29 0
filp 240 240 160 24 1 : tunables 120 60 0 : slabdata 10 10 0
New image slabinfo pertaining to inode_cache and dentry_cache
mnt_cache 18 30 128 30 1 : tunables 120 60 0 : slabdata 1 1 0
inode_cache 2227 2665 288 13 1 : tunables 54 27 0 : slabdata 205 205 0
dentry 2409 3069 124 31 1 : tunables 120 60 0 : slabdata 99 99 0
filp 300 300 128 30 1 : tunables 120 60 0 : slabdata 10 10 0
QuoteReplyEditDelete
2010-03-04 15:29:22 Re: setting disk page caching to free memory
Mike Frysinger (UNITED STATES)
Message: 86813
post the full boot output from both
QuoteReplyEditDelete
2010-03-04 16:08:48 Re: setting disk page caching to free memory
Doug Bailey (UNITED STATES)
Message: 86814
2.6.16 based image:
## Booting image at 01000000 ...
Image Name: uClinux Kernel and ext2
Created: 2009-11-16 19:24:41 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 6605205 Bytes = 6.3 MB
Load Address: 00001000
Entry Point: 00001000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 1000
Linux version 2.6.16.27sx00i-1.3.0.5 (doug@aa50dev2) (gcc version 3.4.6 (ADI cvs)) #3 Mon Nov 16 13:11:14 CST 2009
Warning: limiting memory to 48MB due to hardware anomaly 05000263
Blackfin support (C) 2004-2006 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev. 0.2
Blackfin uClinux support by blackfin.uclinux.org/
Processor Speed: 600 MHz core clock and 120 Mhz System Clock
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
text = 0x00001000-0x0015919c
init = 0x0015a000-0x0016932c
data = 0x00169608-0x001a334c
stack = 0x0016a000-0x0016c000
bss = 0x001a3350-0x001d1110
available = 0x001d1110-0x03000000
rootfs = 0x03000000-0x03f00000
DMA Zone = 0x03f00000-0x04000000
Instruction Cache Enabled
Data Cache Enabled (write-through)
Hardware Trace Enabled
Built 1 zonelists
Kernel command line: root=/dev/mtdblock0 rw boardrev=C productsku=s808i capability=NA bfinrev=0.2
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 4096 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Physical pages: 3000
Memory available: 46768k/64090k RAM, (60k init code, 1376k kernel code, 183k data, 1024k dma)
Blackfin Scratchpad data SRAM: 4 KB
Blackfin DATA_A SRAM: 16 KB
Blackfin DATA_B SRAM: 16 KB
Blackfin Instruction SRAM: 48 KB
Security Framework v1.0.0 initialized
Capability LSM initialized
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
sx00i_core_init(): registering device resources
Initializing Cryptographic API
io scheduler noop registered
io scheduler cfq registered (default)
Real Time Clock Driver v1.10e
Blackfin BF5xx serial driver version 2.00 (DMA mode)
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Blackfin 537 mac WAN net device registered.
Blackfin 537 mac LAN net device registered.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
uclinux[mtd]: RAM probe address=0x3000000 size=0xf00000
Creating 1 MTD partitions on "RAM":
0x00000000-0x00f00000 : "ROMfs"
uclinux[mtd]: set ROMfs:EXT2 to be root filesystem
m25p80 spi1.1: m25p64 (8192 Kbytes)
Creating 3 MTD partitions on "m25p80":
0x00000000-0x00020000 : "bootloader"
0x00020000-0x00040000 : "config"
0x00040000-0x00800000 : "kernel"
Zapata Telephony Interface Registered on major 196
Zaptel Version: SVN-trunk-r1501
Zaptel Echo Canceller: MG2
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
ip_conntrack version 2.4 (384 buckets, 3072 max) - 212 bytes per conntrack
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP bic registered
NET: Registered protocol family 1
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 (ext2 filesystem).
Freeing unused kernel memory: 60k freed (0x15a000 - 0x168000)
dma_alloc_init: dma_page @ 0x00165000 - 256 pages at 0x03f00000
Settup up ramfs...
boardrev=C
productsku=s808i
capability=NA
Blackfin Watchdog Timer: 0.01 initialized. wd_action_code=0 cnt_sec=20 sec (nowayout= 0)
insmod: cannot insert `/lib/modules//2.6.16.27sx00i-1.3.0.5/kernel/drivers/i2c/i2c-core.ko': File exists (-1): File exists
i2c /dev entries driver
Attempting to communicate to I2C Devices
insmod: cannot insert `/lib/modules//2.6.16.27sx00i-1.3.0.5/kernel/drivers/i2c/i2c-core.ko': File exists (-1): File exists
Loading the LED driver
insmod: cannot insert `/lib/modules//2.6.16.27sx00i-1.3.0.5/kernel/drivers/i2c/i2c-core.ko': File exists (-1): File exists
Installing device cfgswx -- Major 196, Minor 240
Done checking for Configuration Reset
Reading config...Done!
Blackfin CompactFlash/PCMCIA Socket Driver
Blackfin GPIO interrupt setup: flag PF9, irq 34
bfin_cf_pcmcia: on irq 34
pccard: PCMCIA card inserted into slot 0
pcmcia: registering new device pcmcia0.0
hda: SanDisk SDCFH2-1024, CFA DISK drive
ide0 at 0x20310000-0x20310007,0x2031000e on irq 34
hda: max request size: 128KiB
hda: 2001888 sectors (1024 MB) w/1KiB Cache, CHS=1986/16/63
hda: hda1
ide-cs: hda: Vcc = 3.3, Vpp = 0.0
e2fsck 1.25 (20-Sep-2001)
/dev/hda1: recovering journal
/dev/hda1: clean, 13291/62592 files, 71488/250228 blocks
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
The watchdog timeout has been set to 27 seconds
UNRECOGNIZED CONFIGURATION VERSION: 1.0.0-rc1
Attempt to perform full configuration update!!!!!!!!!
Upgrade Step 1
Upgrade Step 2
Upgrade Step 3
Upgrade Step 4
Upgrade Step 5
Upgrade Step 6
Upgrade Step 7
Upgrade Step 8
Upgrade Step 9
Checking for upload image to program
Configuring with default network parameters
cat: /etc/inetd.conf.*: No such file or directory
bf537_mac: first startup!
ADM6996I Initialized
bf537_mac: hardware init finished
Blocking GUI and Manager on WAN Interface
LAN network is 192.168.69
Setting udhcpd on LAN
The board rev is: boardrev=C
insmod: cannot insert `/lib/modules//2.6.16.27sx00i-1.3.0.5/kernel/drivers/i2c/i2c-core.ko': File exists (-1): File exists
Starting DMA DMA...
Port 1: Installed -- AUTO FXS/DPO
Port 2: Installed -- AUTO FXS/DPO
Port 3: Installed -- AUTO FXS/DPO
Port 4: Installed -- AUTO FXS/DPO
Port 5: Installed -- AUTO FXO (FCC mode)
Port 6: Installed -- AUTO FXO (FCC mode)
Port 7: Installed -- AUTO FXO (FCC mode)
Port 8: Installed -- AUTO FXO (FCC mode)
Interrupt register is 00040000
DMA3 ISR is 0008
DMA3 COUNT is 0001/0010
DMA4 ISR is 0008
DMA4 COUNT is 0001/0022
SPORT0 STAT is 0008
Interrupt register is 00040000
Interrupt register is 00040000
Interrupt register is 00040000
DMA3 ISR is 0008
DMA3 COUNT is 0001/0008
DMA4 ISR is 0008
DMA4 COUNT is 0001/0022
SPORT0 STAT is 0008
cardflag: 000000ff
SPORT0: 0602/0601
Found an sx00i builtin (8 modules)
sx00i spi1.7: sx00i_spi probe
ADT Memory Test
ADT Memory Test passed
About to trigger firmware load
VPMADT032 Loading firwmare (0)... Success
GPAK PING was good. Type is 8
VPMADT032 DTMF support is active
Registered tone zone 0 (United States / North America)
ln: /etc/asterisk/fxotune.conf: File exists
S800i Product Configuration
Board Revision: C
Product SKU: s808i
MAC/Serial: 00:0f:d3:ce:68:0c
MFG Date: 4308
MFG Code: CMS
Capability: NA
Starting Asterisk...
.$$$$$$$$$$$$$$$=..
.$7$7.. .7$$7:.
.$$:. ,$7.7
.$7. 7$$$$ .$$77
..$$. $$$$$ .$$$7
..7$ .?. $$$$$ .?. 7$$$.
$.$. .$$$7. $$$$7 .7$$$. .$$$.
.777. .$$$$$$77$$$77$$$$$7. $$$,
$$$~ .7$$$$$$$$$$$$$7. .$$$.
.$$7 .7$$$$$$$7: ?$$$.
$$$ ?7$$$$$$$$$$I .$$$7
$$$ .7$$$$$$$$$$$$$$$$ :$$$.
$$$ $$$$$$7$$$$$$$$$$$$ .$$$.
$$$ $$$ 7$$$7 .$$$ .$$$.
$$$$ $$$$7 .$$$.
7$$$7 7$$$$ 7$$$
$$$$$ $$$
$$$$7. $$
$$$$$$$. .7$$$$$$ $$
$$$$$$$$$$$$7$$$$$$$$$.$$$$$$
$$$$$$$$$$$$$$$$. .$
For further information see:
www.digium.com/
BusyBox v1.00 (2009.10.30-20:42+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:~>
=============================================
New 2.6.28 based image
## Booting image at 01000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1.1
Created: 2010-03-04 21:00:32 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 8218925 Bytes = 7.8 MB
Load Address: 00001000
Entry Point: 00238148
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 238148
console [ttyBF0] enabled, bootconsole disabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 38520k/65536k RAM, (16036k init code, 1298k kernel code, 914k data, 1024k dma, 7744k reserved)
Calibrating delay loop... 1196.03 BogoMIPS (lpj=2392064)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (35 KB free)
net_namespace: 476 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
sx00i_core_init(): registering device resources
SCSI subsystem initialized
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
msgmni has been set to 75
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler cfq registered (default)
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
ADM6996I Initialized
bfin_mac: attached PHY driver [Infineon ADM6996] (mii_bus:phy_addr=0:14, irq=-1, mdc_clk=2500000Hz(mdc_div=23)@sclk=120MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
Driver 'sd' needs updating - please use bus_type methods
m25p80 spi0.1: m25p64 (8192 Kbytes)
Creating 4 MTD partitions on "m25p80":
0x00000000-0x00800000 : "dummy"
0x00000000-0x00020000 : "bootloader"
0x00020000-0x00040000 : "config"
0x00040000-0x00800000 : "kernel"
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c /dev entries driver
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (895 buckets, 3580 max)
ctnetlink v0.93: registering with nfnetlink.
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic 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>
rtc-bfin rtc-bfin: setting system clock to 2010-03-04 21:01:25 UTC (1267736485)
Freeing unused kernel memory: 16036k freed
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
boardrev=C
productsku=s808i
capability=NA
Attempting to communicate to I2C Devices
lm75 0-0049: hwmon0: sensor 'lm75'
lm75 0-004a: hwmon1: sensor 'lm75'
Loading the LED driver
Done checking for Configuration Reset
Reading config...Done!
bfin_cf_pcmcia bfin_cf_pcmcia: Blackfin CompactFlash/PCMCIA Socket Driver
bfin_cf_pcmcia bfin_cf_pcmcia: : on irq 59
pcmcia_socket pcmcia_socket0: pccard: PCMCIA card inserted into slot 0
pcmcia 0.0: pcmcia: registering new device pcmcia0.0
BFIN CF INSTALLED
scsi0 : pata_pcmcia
ata1: PATA max PIO0 cmd 0x20310000 ctl 0x2031000e irq 59
ata1.00: CFA: SanDisk SDCFH2-1024, HDX 4.32, max PIO4
ata1.00: 2001888 sectors, multi 0: LBA
ata1.00: Drive reports diagnostics failure. This may indicate a drive
ata1.00: fault or invalid emulation. Contact drive vendor for information.
ata1.00: configured for PIO0
ata1.00: configured for PIO0
ata1: EH complete
scsi 0:0:0:0: Direct-Access ATA SanDisk SDCFH2-1 HDX PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors: (1.02 GB/977 MiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors: (1.02 GB/977 MiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
PATA INSTALLED
e2fsck 1.41.4 (27-Jan-2009)
ext2fs_check_if_mount: No such file or directory while determining whether /dev/sda1 is mounted.
/dev/sda1: recovering journal
/dev/sda1: clean, 13291/62592 files, 71346/250228 blocks
kjournald starting. Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
UNRECOGNIZED CONFIGURATION VERSION: 1.0.0-rc1
Attempt to perform full configuration update!!!!!!!!!
Upgrade Step 1
Upgrade Step 2
Upgrade Step 3
Upgrade Step 4
Upgrade Step 5
Upgrade Step 6
Upgrade Step 7
Upgrade Step 8
Upgrade Step 9
Doing my 2.0 changeover
sed: /etc/asterisk/fxotune.conf: No such file or directory
sed: /etc/asterisk/fxotune.conf: No such file or directory
sed: /etc/asterisk/fxotune.conf: No such file or directory
sed: can't move '/etc/asterisk/scripts8yOjXW' to '/etc/asterisk/scripts': Is a directory
sed: /etc/asterisk/fxotune.conf: No such file or directory
sed: can't move '/etc/asterisk/scripts6jxnfp' to '/etc/asterisk/scripts': Is a directory
Checking for upload image to program
dma_alloc_init: dma_page @ 0x0041b000 - 256 pages at 0x03f00000
Configuring with default network parameters
cat: can't open '/etc/inetd.conf.*': No such file or directory
Blocking GUI and Manager on WAN Interface
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
LAN network is 192.168.69
Setting udhcpd on LAN
PHY: 0:14 - Link is Up - 100/Full
Starting the Time Server
The board rev is: boardrev=C
dahdi: Telephony Interface Registered on major 196
dahdi: Version: 2.2.1-rc2
THIS IS THE DAHDI VERSION OF THE DRIVER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Starting DMA DMA...
Port 1: Installed -- AUTO FXS/DPO
Port 2: Installed -- AUTO FXS/DPO
Port 3: Installed -- AUTO FXS/DPO
Port 4: Installed -- AUTO FXS/DPO
Port 5: Installed -- AUTO FXO (FCC mode)
Port 6: Installed -- AUTO FXO (FCC mode)
Port 7: Installed -- AUTO FXO (FCC mode)
Port 8: Installed -- AUTO FXO (FCC mode)
Interrupt register is 00040000
DMA3 ISR is 0008
DMA3 COUNT is 0001/0020
DMA4 ISR is 0008
DMA4 COUNT is 0001/0032
SPORT0 STAT is 0008
Interrupt register is 00040000
Interrupt register is 00040000
Interrupt register is 00040000
DMA3 ISR is 0008
DMA3 COUNT is 0001/0020
DMA4 ISR is 0008
DMA4 COUNT is 0001/0032
SPORT0 STAT is 0008
cardflag: 000000ff
SPORT0: 0602/0601
Found an sx00i builtin (8 modules)
sx00i spi0.7: sx00i_spi probe
ADT Memory Test
ADT Memory Test passed
sx00i spi0.7: firmware: requesting dahdi-fw-vpmadt032.bin
About to trigger firmware load
VPMADT032 Loading firwmare (0)... Success
GPAK PING was good. Type is 8
VPMADT032 DTMF support is active
VPMADT032 Module is now active
DAHDI Tools Version - 2.2.1-rc2
DAHDI Version: 2.2.1-rc2
Echo Canceller(s):
Configuration
======================
Channel map:
Channel 01: FXO Kewlstart (Default) (Echo Canceler: none) (Slaves: 01)
Cdahdi: Registered tone zone 0 (United States / North America)
hannel 02: FXO Kewlstart (Default) (Echo Canceler: none) (Slaves: 02)
Channel 03: FXO Kewlstart (Default) (Echo Canceler: none) (Slaves: 03)
Channel 04: FXO Kewlstart (Default) (Echo Canceler: none) (Slaves: 04)
Channel 05: FXS Kewlstart (Default) (Echo Canceler: none) (Slaves: 05)
Channel 06: FXS Kewlstart (Default) (Echo Canceler: none) (Slaves: 06)
Channel 07: FXS Kewlstart (Default) (Echo Canceler: none) (Slaves: 07)
Channel 08: FXS Kewlstart (Default) (Echo Canceler: none) (Slaves: 08)
8 channels to configure.
Changing signalling on channel 1 from Unused to FXO Kewlstart
Setting echocan for channel 1 to none
Changing signalling on channel 2 from Unused to FXO Kewlstart
Setting echocan for channel 2 to none
Changing signalling on channel 3 from Unused to FXO Kewlstart
Setting echocan for channel 3 to none
Changing signalling on channel 4 from Unused to FXO Kewlstart
Setting echocan for channel 4 to none
Changing signalling on channel 5 from Unused to FXS Kewlstart
Setting echocan for channel 5 to none
Changing signalling on channel 6 from Unused to FXS Kewlstart
Setting echocan for channel 6 to none
Changing signalling on channel 7 from Unused to FXS Kewlstart
Setting echocan for channel 7 to none
Changing signalling on channel 8 from Unused to FXS Kewlstart
Setting echocan for channel 8 to none
ln: /etc/asterisk/fxotune.conf: File exists
S800i Product Configuration
Board Revision: C
Product SKU: s808i
MAC/Serial: 00:0f:d3:ce:68:0c
MFG Date: 4308
MFG Code: CMS
Capability: NA
Starting Asterisk...
BusyBox v1.13.4 (2010-02-19 09:45:40 CST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:~> ls /bin/gen_rsakey
/bin/gen_rsakey
root:~>
QuoteReplyEditDelete
2010-03-04 16:26:47 Re: setting disk page caching to free memory
Mike Frysinger (UNITED STATES)
Message: 86815
your new kernel boot does not have a "kernel command line" in the log. did you hardcode it ? look at /proc/cmdline.
however, your new boot suggests mounting a rootfs on /dev/sda1 yet you still build an initramfs into your image ? that seems weird.
QuoteReplyEditDelete
2010-03-05 16:00:30 Re: setting disk page caching to free memory
Doug Bailey (UNITED STATES)
Message: 86881
My root device (/dev/mtdblock0) was not being configured correctly. Once I set it up correctly, I freed up a bunch of memory from the disk caches.
It is my understanding that in the develpoment since the kernel distro I have been using (i.e. 2.6.16) there are some configuration settings that I can control to limit the percentage of memory that gets allocated to disk cache pages. This would help prevent disak_cache usage from causing a malloc failure due to overly fgragmented memory.
Is this a correct assumption? If so, any ideas where I should look for documentation?
Thanks for all your help,
Doug
QuoteReplyEditDelete
2010-03-05 16:19:51 Re: setting disk page caching to free memory
Mike Frysinger (UNITED STATES)
Message: 86882
i'm not sure if those knobs have survived through 2009R1.1 or if it's all automatic (more aggressive reclaiming). Sonic should know the latest answer though.
QuoteReplyEditDelete
2010-03-08 04:15:23 Re: setting disk page caching to free memory
Sonic Zhang (CHINA)
Message: 86946
The page cache limitation patch has already been obsolete since 2009R1 release.
In current release, the page cache is freed as much as possible in kernel malloc code if low memory occurs.