Hi Guys,
I'm developing the ip netcam based on appro DM368 IPNC module.
now i had a problem with memory leak i guess. this problem happened both on appro DM368 hardware and my board.
below is my test enviroment:
hardware: appro DM368, my own board.
software: DM368-MT5 v2.0(binary with release)
testing case: 720P with notion detect on(senstivity is medium), audio on(both mic and speaker) alarm on(alar trigger is motion detection and "on alarm" option is play Audio).
attched the log from serial port here
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
DM368 IPNC :>printenvbootdelay=4baudrate=115200bootfile="uImage"ethaddr=00:0c:0c:A0:02:b4bootcmd=nand read 0x82000000 0x700000 0xD00000;nboot 0x80700000 0 0x500000;bootm 0x80700000bootargs=mem=46M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,14M ip=172.23.3.222:172.23.3.220:172.23.3.1:255.255.0.0:::off eth=$(ethaddr)stdin=serialstdout=serialstderr=serialver=U-Boot 1.3.4 (Apr 20 2010 - 11:42:44) DM368-IPNC-1.0.0filesize=BF7000fileaddr=82000000ipaddr=172.23.3.222serverip=172.23.3.220
Environment size: 493/131068 bytesDM368 IPNC :>resetDM36x initialization passed!TI UBL Version: 1.50Booting Catalog Boot LoaderBootMode = NANDStarting NAND Copy...Valid magicnum, 0xA1ACED66, found in block 0x00000008. DONEJumping to entry point at 0x81080000.
DM368_IPNC_UBL_1.0.0
U-Boot 1.3.4 (Apr 20 2010 - 11:42:44) DM368-IPNC-1.0.0
I2C: readyDRAM: 128 MBNAND: NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)Bad block table found at page 65472, version 0x01Bad block table found at page 65408, version 0x01128 MiBIn: serialOut: serialErr: serialARM Clock :- 432MHzDDR Clock :- 340MHzEthernet PHY: GENERIC @ 0x01Hit any key to stop autoboot: 0 DM368 IPNC :>boot
NAND read: device 0 offset 0x700000, size 0xd00000 13631488 bytes read: OK
Loading from NAND 128MiB 3,3V 8-bit, offset 0x500000 Image Name: Linux-2.6.18_pro500-davinci_IPNC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1809680 Bytes = 1.7 MB Load Address: 80008000 Entry Point: 80008000## Booting kernel from Legacy Image at 80700000 ... Image Name: Linux-2.6.18_pro500-davinci_IPNC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1809680 Bytes = 1.7 MB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK Loading Kernel Image ... OKOK
Starting kernel ...
Linux version 2.6.18_pro500-davinci_IPNC_DM368_2.0.0 (kudva@mapplinux03.india.ti.com) (gcc version 4.2.0 20070126 (prerelease) (MontaVista 4.2.0-3.0.0.0702771 2007-03-10)) #1 PREEMPT Tue Jul 13 18:21:07 IST 2010CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177Machine: DaVinci DM368 IPNCMemory policy: ECC disabled, Data cache writebackDaVinci DM0365 variant 0x0PLL0: fixedrate: 24000000, commonrate: 170000000, vpssrate: 340000000PLL0: vencrate_sd: 75555555, ddrrate: 340000000 mmcsdrate: 48571428PLL1: armrate: 432000000, voicerate: 20571428, vencrate_hd: 27000000CPU0: D VIVT write-back cacheCPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 setsCPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 setsBuilt 1 zonelists. Total pages: 11776Kernel command line: mem=46M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,14M ip=172.23.3.222:172.23.3.220:172.23.3.1:255.255.0.0:::off eth=$(ethaddr)PID hash table entries: 256 (order: 8, 1024 bytes)Clock event device timer0_0 configured with caps set: 07Console: colour dummy device 80x30Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)Memory: 46MB = 46MB totalMemory: 28344KB available (3105K code, 643K data, 180K init)Security Framework v1.0.0 initializedCapability LSM initializedMount-cache hash table entries: 512CPU: Testing write buffer coherency: okchecking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrdFreeing initrd memory: 14336KNET: Registered protocol family 16DaVinci: 104 gpio irqsMUX: initialized GPIO20MUX: initialized I2C_SCLGeneric PHY: Registered new driverch0 default output "COMPOSITE", mode "NTSC"VPBE Encoder InitializedSCSI subsystem initializedNET: Registered protocol family 2IP 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: 1024 (order: 0, 4096 bytes)TCP: Hash tables configured (established 2048 bind 1024)TCP reno registeredVFS: Disk quotas dquot_6.5.1Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)squashfs: version 3.1 (2006/08/19) Phillip LougherJFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.yaffs Jul 13 2010 18:18:12 Installing. SGI XFS with no debug enabledInitializing Cryptographic APIio scheduler noop registeredio scheduler anticipatory registered (default)LTT : ltt-facilities initLTT : ltt-facility-core init in kernelDAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 secSerial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabledserial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfbc20000 (irq = 40) is a 16550Aserial8250.0: ttyS1 at MMIO map 0x1d06000 mem 0xfbd06000 (irq = 41) is a 16550ARAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksizeLinux video capture interface: v2.00Trying to register davinci display video device.layer=c2c37a00,layer->video_dev=c2c37b60Trying to register davinci display video device.layer=c2c37800,layer->video_dev=c2c37960davinci_init:DaVinci V4L2 Display Driver V1.0 loadedi2c /dev entries drivernand_davinci nand_davinci.0: Using 4-bit hardware ECCNAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)Creating 6 MTD partitions on "nand_davinci.0":0x00000000-0x00300000 : "bootloader"0x00300000-0x00500000 : "params"0x00500000-0x00700000 : "kernel"0x00700000-0x01f00000 : "filesystem"0x01f00000-0x02100000 : "data1"0x02100000-0x08000000 : "data2"nand_davinci nand_davinci.0: hardware revision: 2.3rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: procrtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: dev (254:0)rtc_davinci_dm365 rtc_davinci_dm365.0: rtc core: registered rtc_davinci_dm365 as rtc0Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).ASoC version 0.13.1CQ0093 Voice Codec 0.1asoc: cq93vc <-> davinci-vcif mapping okALSA device list: #0: On-chip voice codec (cq93vc)IPv4 over IPv4 tunneling driverTCP bic registeredNET: Registered protocol family 1NET: Registered protocol family 17rtc_davinci_dm365 rtc_davinci_dm365.0: setting the system clock to 2000-01-03 21:42:00 (946935720)Time: timer0_1 clocksource has been installed.Clock event device timer0_0 configured with caps set: 08Switched to high resolution mode on CPU 0IP-Config: No network devices available.RAMDISK: cramfs filesystem found at block 0RAMDISK: Loading 12252KiB [1 disk] into ram disk... done.VFS: Mounted root (cramfs filesystem) readonly.Freeing init memory: 180KINIT: version 2.86 booting0mkdir: Cannot create directory `/dev/.test': Read-only file systemStarting the hotplug events dispatcher: udevd.Synthesizing the initial hotplug events...done.Waiting for /dev to be fully populated...done.0CSL: Module install successful, device major num = 253 CSL: Module version 0.10.00, built on Jul 13 2010 18:23:32 I2C: Module install successful, device major num = 252 DMA: Module install successful, device major num = 251 DRV: Module install successfulDRV: Module built on Jul 13 2010 18:23:35 DRV: EDMACC.QUEPRI = 00000777DRV: SYSTEM.MSTPRI0 = 00550011DRV: SYSTEM.MSTPRI1 = 00000444DRV: ISP.BCR = 00000002DRV: SYSTEM.MISC = 00000391CMEMK module: built on Jul 13 2010 at 18:23:07 Reference Linux version 2.6.18 File /home/kudva/workdir/DM365/IPNetCam/dvsdk_2_10_01_18/linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.callocated heap buffer 0xc4000000 of size 0x5200000CMEM Range Overlaps Kernel Physical - allowing overlapCMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x82e00000)cmemk initializedEDMAK module: built on Jul 13 2010 at 18:23:10 Reference Linux version 2.6.18 File /home/kudva/workdir/DM365/IPNetCam/dvsdk_2_10_01_18/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.cIRQK module: built on Jul 13 2010 at 18:23:11 Reference Linux version 2.6.18 File /home/kudva/workdir/DM365/IPNetCam/dvsdk_2_10_01_18/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.cirqk initializedCreat queue id:0queue id:0FileMngThread createdCreat queue id:32769queue id:32769AlramThread createdShare memory init successIPNC_DM368_2.0.0 (kudva@mapplinux03.india.ti.com) (gcc version Creat queue id:65538queue id:65538queue id:32769queue id:65538Check_device_version : DEVICE VER = 1 !!
CPU is DM368DEMOCFG Value : 0Videocodecmode : 0Videocodecres : 0./av_server.out FD OSD DM368 AEWB TI2A AUDIO 8000 720P H264 4000000 VBR AUTO MENUOFF &CPU CurrentStatus is = 1 Starting mounting local filesystems: AVSERVER UI: Initializing.DRV_SyncRst: module = 47, domain = 0, state = 0DRV_SyncRst: module = 47, domain = 0, state = 3 CLK Hz, ARM Hz = 432000000 DDR Hz = 340000000 VPSS Hz = 340000000 IMCOP Hz = 340000000 [OSA_FILE ] Reading file [/mnt/nand/IMG_Paramset.bin] ... ERROR IMAGE TUNE: Paramset File is not available..... Setting DEFAULT parameterApproDrvInit: 7Creat queue id:98307queue id:98307mount none on /dev/shm type tmpfs (rw,size=5M)none on /var/run type tmpfs (rw)none on /tmp type tmpfs (rw,sync)Setting up networking ...rm: unable to remove `/etc/network/run': Read-only file systemStarting hotplug subsystem:
CONFIGURING AVSERVER FOR DM368 .....SENSOR FPS VALUE = 30 pci queue id:98307DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT:layer.pix_fmt.bytesperline = 640, layer.pix_fmt.width = 640, layer.pix_fmt.height = 480, layer.pix_fmt.sizeimage =460800
FR : 0 usersDavinciDisplay DavinciDisplay.1: pixfmt->width = 640, layer->layer_info.config.line_length= 640 registered from exsiting face albumIPNC_DM368_2.0.0 (kudva@mapplinux03.india.ti.com) (gcc version IPNC AUTO_IRIS = 0 #####################GBCE in EVAL MODE queue id:65538 pci [success] usb TI 2A TRIAL VERSION!!!TI 2A Expiration date: 2010, Dec 31 usb [success] isapnp isapnp [success] ide ide [success] input input [success] scsi Simple mixer control 'PGA',0 Capabilities: cvolume Capture channels: Mono Limits: Capture 0 - 3 Mono: Capture 2 [67%]Simple mixer control 'Mono DAC',0 Capabilities: pvolume pvolume-joined Playback channels: Mono Limits: Playback 0 - 63 Mono: Playback 47 [75%] scsi [success]done.killall: wis-streamer: no process killedSystemInit successSchedule manager init successStarting portmap daemon: portmap. Starting internet superserver: inetd.io scheduler deadline registeredio scheduler cfq registeredTI DaVinci EMAC: kernel boot params Ethernet address: $(ethaddr) sbulla: unknown partition tableInstalling knfsd (copyright (C) 1996 okir@monad.swb.de).loop: loaded (max 8 devices)tun: Universal TUN/TAP device driver, 1.6tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>CSLIP: code copyright 1989 Regents of the University of Californianetconsole: not configured, abortingPPP generic driver version 2.4.2PPP Deflate Compression module registeredDavinci EMAC MII Bus: probedMAC address is $(ethaddr)TI DaVinci EMAC Linux version updated 4.0davinci-mmc davinci-mmc.0: Supporting 4-bit modedavinci-mmc davinci-mmc.0: Using DMA modeusbcore: registered new driver usbfsusbcore: registered new driver hubmusb_hdrc: version 6.0, cppi-dma, peripheral, debug=0musb_hdrc musb_hdrc: No DMA interrupt linemusb_hdrc: USB Peripheral mode controller at c30f8000 using DMA, IRQ 12Loading iSCSI transport class v1.1-646.<5>iscsi: registered transport (tcp) sbulla: unknown partition tablemkdosfs 3.0.6 (04 Oct 2009)unable to get drive geometry, using default 255/63/dev/sbulla has 255 heads and 63 sectors per track,logical sector size is 512,using 0xf8 media descriptor, with 1024 sectors;file system has 2 12-bit FATs and 4 sectors per cluster.FAT size is 1 sector, and provides 247 clusters.Root directory contains 512 slots.Volume ID is 7b63f0da, no volume label.queue id:0umount: /mnt/mmc: not mountedkillall: dhcpcd: no process killedTimeOut occure in boot_proc.Program exit.ApproDrvInit: 3queue id:98307queue id:0queue id:32769INIT: Entering runlevel: 3net_search_gateway:eth0, 317AC, 0, 1net_search_gateway:eth0, 0, 10317AC, 3dns=202.106.0.20
MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774)
DM368_IPNC login: g_file_storage gadget: File-backed Storage Gadget, version: 28 November 2005ERROR: Module g_file_storage does not exist in /g_file_storage gadget: Number of LUNs=1proc/modulesg_file_storage gadget-lun0: ro=0, file: /dev/sbulla[03/Jan/2000:21:42:25 +0000] boa: server version Boa/0.94.13[03/Jan/2000:21:42:25 +0000] boa: server built Jul 13 2010 at 18:25:27.[03/Jan/2000:21:42:25 +0000] boa: starting server pid=770, port 80queue id:0UDPString=uuid:Upnp-TVEmulator-1_0-00_0071229085</UDN>
Upnp port is 0UPnP Initialized OK ip=172.23.3.115, port=49152desc_doc_url = http://172.23.3.115/tvdevicedesc.xmlerror code = 0device advertisement succeed.system_server/519[CPU#0]: BUG in local_bh_enable at kernel/softirq.c:196ApproDrvInit: 2queue id:98307Initializing...ApproDrvInit: 6ApproDrvInit: 8queue id:98307Initializing...ApproDrvInit: 9queue id:98307Initializing...ApproDrvInit: 10queue id:98307Initializing...queue id:98307Initializing......done initializing...done initializingPlay this stream using the URL: rtsp://172.23.3.115:8557/PSIA/Streaming/channels/2?videoCodecType=H.264...done initializingPlay this stream using the URL: rtsp://172.23.3.115:8556/PSIA/Streaming/channels/2?videoCodecType=H.264...done initializingPlay this stream using the URL: rtsp://172.23.3.115:8554/PSIA/Streaming/channels/1?videoCodecType=MPEG4...done initializingPlay this stream using the URL: rtsp://172.23.3.115/PSIA/Streaming/channels/1?videoCodecType=MPEG4Play this stream using the URL: rtsp://172.23.3.115:8555/PSIA/Streaming/channels/0?videoCodecType=MJPEG
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.41 | 29.93 | 30106 | 901 | ENCODE0 | 14.29 | 69.97 | 12863 | 900 | STREAM | 0.22 | 4568.53 | 197 | 900 | OSD0 | 0.04 | 28156.25 | 32 | 901 | FACE.D | 11.66 | 85.79 | 373 | 32 | AEWB | 1.18 | 846.52 | 1062 | 899 |
[03/Jan/2000:21:42:59 +0000] request from 172.23.3.29 "GET /favicon.ico HTTP/1.1" ("/var/www/favicon.ico"): document open: No such file or directory[03/Jan/2000:21:43:03 +0000] request from 172.23.3.29 "GET /favicon.ico HTTP/1.1" ("/var/www/favicon.ico"): document open: No such file or directory
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.45 | 29.89 | 30142 | 901 | ENCODE0 | 14.17 | 70.58 | 12765 | 901 | STREAM | 0.20 | 4896.74 | 184 | 901 | OSD0 | 0.03 | 30033.33 | 30 | 901 | AEWB | 1.14 | 878.17 | 1026 | 901 |
queue id:32769
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.45 | 29.90 | 30136 | 901 | ENCODE0 | 14.22 | 70.33 | 12811 | 901 | STREAM | 0.30 | 3337.04 | 270 | 901 | OSD0 | 0.03 | 34653.85 | 26 | 901 | AEWB | 1.13 | 881.60 | 1022 | 901 |
queue id:32769queue id:32769
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.44 | 29.90 | 30132 | 901 | ENCODE0 | 14.22 | 70.35 | 12808 | 901 | STREAM | 0.27 | 3692.62 | 244 | 901 | OSD0 | 0.03 | 39173.91 | 23 | 901 | AEWB | 1.14 | 877.31 | 1027 | 901 |
caught SIGINT: shutting downApproDrvExit: 10caught SIGINT: shutting downApproDrvExit: 2caught SIGINT: shutting downApproDrvExit: 6caught SIGINT: shutting downApproDrvExit: 8caught SIGINT: shutting downApproDrvExit: 9ApproDrvInit: 2queue id:98307Initializing......done initializingPlay this stream using the URL: rtsp://172.23.3.115/PSIA/Streaming/channels/1?videoCodecType=MPEG4ApproDrvInit: 6queue id:98307Initializing......done initializingApproDrvInit: 8queue id:98307Initializing...ApproDrvInit: 9queue id:98307Initializing......done initializingApproDrvInit: 10queue id:98307Initializing......done initializingSimple mixer control 'PGA',0 Capabilities: cvolume Capture channels: Mono Limits: Capture 0 - 3 Mono: Capture 2 [67%]Play this stream using the URL: rtsp://172.23.3.115:8557/PSIA/Streaming/channels/2?videoCodecType=H.264Play this stream using the URL: rtsp://172.23.3.115:8556/PSIA/Streaming/channels/2?videoCodecType=H.264Play this stream using the URL: rtsp://172.23.3.115:8554/PSIA/Streaming/channels/1?videoCodecType=MPEG4...done initializingPlay this stream using the URL: rtsp://172.23.3.115:8555/PSIA/Streaming/channels/0?videoCodecType=MJPEGSimple mixer control 'Mono DAC',0 Capabilities: pvolume pvolume-joined Playback channels: Mono Limits: Playback 0 - 63 Mono: Playback 47 [75%]queue id:32769Playing WAVE 'alarm_1_8K.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.44 | 29.90 | 30133 | 901 | ENCODE0 | 14.25 | 70.18 | 12838 | 901 | STREAM | 0.20 | 5061.80 | 178 | 901 | OSD0 | 0.03 | 32178.57 | 28 | 901 | AEWB | 1.15 | 866.35 | 1040 | 901 |
Playing WAVE 'alarm_1_8K.wav' : Unsigned 8 bit, Rate 8000 Hz, MonoPlaying WAVE 'alarm_1_8K.wav' : Unsigned 8 bit, Rate 8000 Hz, MonoPlaying WAVE 'alarm_1_8K.wav' : Unsigned 8 bit, Rate 8000 Hz, MonoPlaying WAVE 'alarm_1_8K.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.44 | 29.90 | 30130 | 901 | ENCODE0 | 14.47 | 69.13 | 13034 | 901 | STREAM | 0.21 | 4818.18 | 187 | 901 | OSD0 | 0.03 | 33370.37 | 27 | 901 | AEWB | 1.15 | 871.37 | 1034 | 901 |
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.45 | 29.89 | 30142 | 901 | ENCODE0 | 14.96 | 66.84 | 13480 | 901 | STREAM | 0.35 | 2851.27 | 316 | 901 | OSD0 | 0.02 | 47421.05 | 19 | 901 | AEWB | 1.13 | 884.20 | 1019 | 901 |
Playing WAVE 'alarm_1_8K.wav' : Unsigned 8 bit, Rate 8000 Hz, MonoPlaying WAVE 'alarm_1_8K.wav' : Unsigned 8 bit, Rate 8000 Hz, MonoPlaying WAVE 'alarm_1_8K.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.45 | 29.90 | 30138 | 901 | ENCODE0 | 15.03 | 66.53 | 13543 | 901 | STREAM | 0.33 | 3013.38 | 299 | 901 | OSD0 | 0.03 | 32178.57 | 28 | 901 | AEWB | 1.13 | 884.20 | 1019 | 901 |
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.45 | 29.90 | 30134 | 901 | ENCODE0 | 15.35 | 65.15 | 13830 | 901 | STREAM | 0.34 | 2944.44 | 306 | 901 | OSD0 | 0.02 | 47421.05 | 19 | 901 | AEWB | 1.15 | 870.53 | 1035 | 901 |
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.45 | 29.90 | 30134 | 901 | ENCODE0 | 15.37 | 65.04 | 13852 | 901 | STREAM | 0.32 | 3106.90 | 290 | 901 | OSD0 | 0.02 | 50055.55 | 18 | 901 | AEWB | 1.14 | 879.02 | 1025 | 901 |
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.45 | 29.90 | 30135 | 901 | ENCODE0 | 15.38 | 65.03 | 13856 | 901 | STREAM | 0.34 | 2915.86 | 309 | 901 | OSD0 | 0.02 | 42904.76 | 21 | 901 | AEWB | 1.13 | 888.56 | 1014 | 901 |
Playing WAVE 'alarm_1_8K.wav' : Unsigned 8 bit, Rate 8000 Hz, MonoPlaying WAVE 'alarm_1_8K.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.45 | 29.90 | 30137 | 901 | ENCODE0 | 15.39 | 64.97 | 13867 | 901 | STREAM | 0.35 | 2878.59 | 313 | 901 | OSD0 | 0.03 | 34653.85 | 26 | 901 | AEWB | 1.14 | 880.74 | 1023 | 901 |
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.44 | 29.90 | 30132 | 901 | ENCODE0 | 15.37 | 65.08 | 13845 | 901 | STREAM | 0.35 | 2833.33 | 318 | 901 | OSD0 | 0.03 | 37541.67 | 24 | 901 | AEWB | 1.14 | 879.88 | 1024 | 901 |
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.44 | 29.90 | 30132 | 901 | ENCODE0 | 15.24 | 65.64 | 13727 | 901 | STREAM | 0.32 | 3139.37 | 287 | 901 | OSD0 | 0.02 | 40954.55 | 22 | 901 | AEWB | 1.13 | 882.47 | 1021 | 901 |
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.45 | 29.90 | 30137 | 901 | ENCODE0 | 15.39 | 64.99 | 13863 | 901 | STREAM | 0.33 | 3023.49 | 298 | 901 | OSD0 | 0.03 | 39173.91 | 23 | 901 | AEWB | 1.15 | 866.35 | 1040 | 901 |
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.45 | 29.90 | 30135 | 901 | ENCODE0 | 15.37 | 65.07 | 13847 | 901 | STREAM | 0.31 | 3206.41 | 281 | 901 | OSD0 | 0.03 | 34653.85 | 26 | 901 | AEWB | 1.14 | 873.91 | 1031 | 901 |
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.45 | 29.90 | 30138 | 901 | ENCODE0 | 15.40 | 64.94 | 13874 | 901 | STREAM | 0.36 | 2772.31 | 325 | 901 | OSD0 | 0.03 | 33370.37 | 27 | 901 | AEWB | 1.14 | 875.61 | 1029 | 901 | ***** I ignore the may same statics output here then got the following log ****
oom-killer: gfp_mask=0x200d2, order=0Mem-info:DMA per-cpu:cpu 0 hot: high 6, batch 1 used:5cpu 0 cold: high 2, batch 1 used:0DMA32 per-cpu: emptyNormal per-cpu: emptyHighMem per-cpu: emptyFree pages: 1156kB (0kB HighMem)Active:5604 inactive:1495 dirty:0 writeback:0 unstable:0 free:289 slab:704 mapped:196 pagetables:245DMA free:1156kB min:868kB low:1084kB high:1300kB active:22416kB inactive:5980kB present:47104kB pages_scanned:20449 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0DMA: 25*4kB 20*8kB 4*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB = 1156kBDMA32: emptyNormal: emptyHighMem: emptySwap cache: add 0, delete 0, find 0/0, race 0+0Free swap = 0kBTotal swap = 0kBFree swap: 0kB11776 pages of RAM443 free pages2669 reserved pages704 slab pages478 pages shared0 pages swap cachedOut of Memory: Kill process 514 (system_server) score 4433 and children.Out of memory: Killed process 514 (system_server).oom-killer: gfp_mask=0x201d2, order=0Mem-info:DMA per-cpu:cpu 0 hot: high 6, batch 1 used:5cpu 0 cold: high 2, batch 1 used:0DMA32 per-cpu: emptyNormal per-cpu: emptyoom-killer: gfp_mask=0x201d2, order=0Mem-info:DMA per-cpu:cpu 0 hot: high 6, batch 1 used:5cpu 0 cold: high 2, batch 1 used:0DMA32 per-cpu: emptyNormal per-cpu: emptyHighMem per-cpu: emptyFree pages: 1300kB (0kB HighMem)Active:3814 inactive:3271 dirty:0 writeback:0 unstable:0 free:325 slab:703 mapped:162 pagetables:245DMA free:1300kB min:868kB low:1084kB high:1300kB active:15256kB inactive:13084kB present:47104kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0oom-killer: gfp_mask=0x201d2, order=0Mem-info:DMA per-cpu:cpu 0 hot: high 6, batch 1 used:5cpu 0 cold: high 2, batch 1 used:0DMA32 per-cpu: emptyNormal per-cpu: emptyHighMem per-cpu: emptyFree pages: 1280kB (0kB HighMem)Active:3820 inactive:3273 dirty:0 writeback:0 unstable:0 free:320 slab:703 mapped:167 pagetables:245DMA free:1256kB min:868kB low:1084kB high:1300kB active:15300kB inactive:13104kB present:47104kB pages_scanned:0 all_unreclaimable? nooom-killer: gfp_mask=0x201d2, order=0Mem-info:DMA per-cpu:cpu 0 hot: high 6, batch 1 used:5cpu 0 cold: high 2, batch 1 used:0DMA32 per-cpu: emptyNormal per-cpu: emptyHighMem per-cpu: emptyFree pages: 1116kB (0kB HighMem)Active:3866 inactive:3267 dirty:0 writeback:0 unstable:0 free:279 slab:703 mapped:207 pagetables:245oom-killer: gfp_mask=0x201d2, order=0Mem-info:DMA per-cpu:cpu 0 hot: high 6, batch 1 used:5cpu 0 cold: high 2, batch 1 used:0DMA32 per-cpu: emptyNormal per-cpu: emptyHighMem per-cpu: emptyFree pages: 1116kB (0kB HighMem)Active:3866 inactive:3267 dirty:0 writeback:0 unstable:0 free:279 slab:703 mapped:207 pagetables:245DMA free:1116kB min:868kB low:1084kB high:1300kB active:15464kB inactive:13068kB present:47104kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? noHighMem per-cpu: emptyFree pages: 1116kB (0kB HighMem)Active:3867 inactive:3266 dirty:0 writeback:0 unstable:0 free:279 slab:703 mapped:207 pagetables:245DMA free:1116kB min:868kB low:1084kB high:1300kB active:15468kB inactive:13064kB present:47104kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? noHighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0DMA: 13*4kB 21*8kB 4*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB = 1116kBDMA32: lowmem_reserve[]: 0 0 0 0DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0DMA: 13*4kB 21*8kB 4*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB = 1116kBDMA32: emptyNormal: emptyHighMem: emptySwap cache: add 0, delete 0, find 0/0, race 0+0Free swap = 0kBTotal swap = 0kBFree swap: 0kBDMA free:1116kB min:868kB low:1084kB high:1300kB active:15468kB inactive:13064kB present:47104kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0DMA: lowmem_reserve[]: 0 0 0 0HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0 0 0DMA: 13*4kB 21*8kB 4*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB = 1116kBDMA32: emptyNormal: emptyHighMem: emptySwap cache: add 0, delete 0, find 0/0, race 0+0Free swap = 0kBTotal swap = 0kBFree swap: 0kB11776 pages of RAM433 free pages2669 reserved pages703 slab pages448 pages shared0 pages swap cachedlowmem_reserve[]: 0 0 0 0DMA: 13*4kB 21*8kB 4*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB = 1116kBDMA32: emptyNormal: emptyHighMem: emptySwap cache: add 0, delete 0, find 0/0, race 0+0Free swap = 0kBTotal swap = 0kBFree swap: 0kB11776 pages of RAM433 free pages2669 reserved pagesemptyNormal: emptyHighMem: emptySwap cache: add 0, delete 0, find 0/0, race 0+0Free swap = 0kBTotal swap = 0kBFree swap: 0kB11776 pages of RAM433 free pages2669 reserved pages703 slab pages448 pages shared0 pages swap cached11776 pages of RAM433 free pages2669 reserved pages703 slab pages448 pages shared0 pages swap cached13*4kB 21*8kB 4*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB = 1116kBDMA32: emptyNormal: emptyHighMem: emptySwap cache: add 0, delete 0, find 0/0, race 0+0Free swap = 0kBTotal swap = 0kBFree swap: 0kB11776 pages of RAM433 free pages2669 reserved pages703 slab pages448 pages shared0 pages swap cached703 slab pages448 pages shared0 pages swap cached
Module | Avg Time/Frame | Frame-rate | Total time | Total Frames | CAPTURE | 33.49 | 29.86 | 30170 | 901 | ENCODE0 | 14.48 | 69.07 | 13044 | 901 | STREAM | 0.35 | 2824.45 | 319 | 901 | OSD0 | 0.13 | 7508.33 | 120 | 901 | AEWB | 1.20 | 835.19 | 1080 | 902 |
-----------------------------------------------------------------------------------------------------------------------------------------------------
the i can't login from IE and can't get live video with vlc player from rtsp port.
actrually this problem is also there with my own application modified from appro app.
what's the root cause and could you give me some hint?
thanks a lot
Forest.
an information may be helpful, i use " cat meminfo" and got the free memroy becomes less and less. from 7MB to 2Mb to blew 1MB.
which part of the application consume the memory so much and so quickly?
MemTotal: 42880 kBMemFree: 2044 kBBuffers: 12264 kBCached: 2856 kBSwapCached: 0 kBActive: 20724 kBInactive: 7012 kBHighTotal: 0 kBHighFree: 0 kBLowTotal: 42880 kBLowFree: 2044 kBSwapTotal: 0 kBSwapFree: 0 kBDirty: 0 kBWriteback: 0 kBAnonPages: 12620 kBMapped: 2144 kBSlab: 2824 kBPageTables: 924 kBNFS_Unstable: 0 kBBounce: 0 kBCommitLimit: 21440 kBCommitted_AS: 367024 kBVmallocTotal: 927744 kBVmallocUsed: 84960 kBVmallocChunk: 827388 kB# cat meminfo MemTotal: 42880 kBMemFree: 2028 kBBuffers: 12264 kBCached: 2856 kBSwapCached: 0 kBActive: 20752 kBInactive: 7012 kBHighTotal: 0 kBHighFree: 0 kBLowTotal: 42880 kBLowFree: 2028 kBSwapTotal: 0 kBSwapFree: 0 kBDirty: 0 kBWriteback: 0 kBAnonPages: 12648 kBMapped: 2144 kBSlab: 2812 kBPageTables: 924 kBNFS_Unstable: 0 kBBounce: 0 kBCommitLimit: 21440 kBCommitted_AS: 367052 kBVmallocTotal: 927744 kBVmallocUsed: 84960 kBVmallocChunk: 827388 kB
Hi, Forest Wang ,
Have you resolved your problem that fellowing:
oom-killer: gfp_mask=0x200d2, order=0Mem-info:DMA per-cpu:cpu 0 hot: high 6, batch 1 used:5cpu 0 cold: high 2, batch 1 used:0
Now, when I use the "usb_modeswitch" to change the USB-3G Card's mode. But, I am facing the same problem.
How can you solve your problem? If this problem is result from the "usb_modeswitch" self, or the Linux Kernel ? My Kernel version is 2.6.18.
Hi,
You can try running this command "echo 1 > /proc/sys/vm/drop_caches"
This will help to clear some memory used during bootup
Regards,
Raghu
Please mark this reply as Verify Answer on this post if it answers the question.