Jivin Marcos Pereira lays it down ...
> Hi all,
> I'm running a kernel 2.4.x on a Netburner MOD5270 board (2MB SDRAM).
> In the boot screen the system shows "541k kernel code, 189k data" but 
> only 752k of free memory?
> Is it possible reduce the system memory requirements? How can I do this?


Firstly check this line:

        Memory available: 752k/3704832k RAM, 0k/0k ROM (541k kernel code, 189k 
data)

It says you have 752k of 3704832k !,  either it is printing bogus
numbers or someone is filling out some info incorrectly somewhere in
your early boot.  By your description it should be more like 752k/2000k,
or there abouts.  Check your platforms defination of PAGE_OFFSET and
PHYS_OFFSET.  Coldfire systems have always printed sane values here.

Also,  check the location and size of your romfs.  If it is loaded in
RAM (I don't know you memory layout),  then it may be using a good
portion if you memory.  From below:

        0: 20B6D28-20DA127 [VIRTUAL 20B6D28-20DA127] (RO) <ROMFS>

If those addresses are in you RAM space,  then the romfs is using 144K
of RAM.  Also,  look at the first address of the romfs,  It's at about
730k from 0x2000000,  looks a little suspicious ;-)

Finally,  once you sort out the above so they make sense,  enable
the CONTIGUOUS page allocator and then enable /proc/mem_map and you can
look at each page of known memory to see why/who is using it.  You may
want to apply the patch in the mm directory to get better stats.

Cheers,
Davidm

> This is the boot screenshot:
> 
> Linux version 2.4.32-uc0 ([EMAIL PROTECTED]) (gcc version 4.1.1) #48 Thu Jul 
> 5 
> 14:40:39 UTC 2007
> 
> uClinux/COLDFIRE(m5270/5271)
> COLDFIRE port done by Greg Ungerer, [EMAIL PROTECTED]
> Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne
> On node 0 totalpages: 8704
> zone(0): 0 pages.
> zone(1): 8704 pages.
> zone(2): 0 pages.
> Kernel command line:
> Calibrating delay loop... 97.68 BogoMIPS
> Memory available: 752k/3704832k RAM, 0k/0k ROM (541k kernel code, 189k data)
> kmem_create: Forcing size word alignment - mm_struct
> kmem_create: Forcing size word alignment - filp
> Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
> Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
> kmem_create: Forcing size word alignment - inode_cache
> Mount cache hash table entries: 512 (order: 0, 4096 bytes)
> kmem_create: Forcing size word alignment - bdev_cache
> kmem_create: Forcing size word alignment - cdev_cache
> kmem_create: Forcing size word alignment - kiobuf
> Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
> Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
> POSIX conformance testing by UNIFIX
> Linux NET4.0 for Linux 2.4
> Based upon Swansea University Computer Society NET3.039
> Initializing RT netlink socket
> Starting kswapd
> kmem_create: Forcing size word alignment - file_lock_cache
> ColdFire internal UART serial driver version 1.00
> ttyS0 at 0x40000200 (irq = 77) is a builtin ColdFire UART
> ttyS1 at 0x40000240 (irq = 78) is a builtin ColdFire UART
> ttyS2 at 0x40000280 (irq = 79) is a builtin ColdFire UART
> kmem_create: Forcing size word alignment - blkdev_requests
> fec.c: Probe number 1 with 0x0000
> eth0: FEC ENET Version 0.2, 00:03:f4:02:63:a6
> FEC: No PHY device found.
> Blkmem copyright 1998,1999 D. Jeff Dionne
> Blkmem copyright 1998 Kenneth Albanowski
> Blkmem 1 disk images:
> 0: 20B6D28-20DA127 [VIRTUAL 20B6D28-20DA127] (RO) <ROMFS>
> NET4: Linux TCP/IP 1.0 for NET4.0
> IP Protocols: ICMP, UDP, TCP
> kmem_create: Forcing size word alignment - ip_dst_cache
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 2048 bind 4096)
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> VFS: Mounted root (romfs filesystem) readonly.
> Shell invoked to run file: /etc/rc
> Command:
> Command: hostname mod5270
> Command:
> Command:
> Command: mount -t proc proc /proc
> Command:
> Command: ifconfig lo 127.0.0.1 netmask 255.0.0.0
> Command:
> Command: ifconfig eth0 inet 192.168.1.200 netmask 255.255.255.0
> Command:
> Command:
> Command:
> Execution Finished, Exiting
> 
> Sash command shell (version 1.1.1)
> />
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev@uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev@uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
> 

-- 
David McCullough,  [EMAIL PROTECTED],   Ph:+61 734352815
Secure Computing - SnapGear  http://www.uCdot.org http://www.cyberguard.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to