Memory available shown is Less

Hello group, We are working on ARM720T processor board with 32MB RAM and 8MB Flash memory. We are through with the porting of linux on the board but we are facing problem with the amount of memory available when the kernel starts up.

Linux version 2.4.17-rmk2-lineo5 (root@embedded) (gcc version 2.95.3 20010315 (r elease)) #74 Tue May 18 17:17:32 UTC 2004 Processor: ARM ARM720T revision 3 Architecture: LogicPD LH79520 Card Engine setup.c 503: MEM_SIZE= 33554432 On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: console=ttyAM1,115200 setup_timer(): timerLoad=32256 Console: colour dummy device 80x30 Calibrating delay loop... 25.70 BogoMIPS Memory: 32MBPAGE_SHIFT = 12 num_physpages = 0x00002000 nr_free_pages = 3544 = 32MB total Memory: 14176KB available (1317K code, 254K data, 76K init)

Why is the kernel showing only 14176KB of memory available while we are having 32MB RAM on board? Where has the rest of the memory gone?

But on cat /proc/meminfo we get: # cat /proc/meminfo total: used: free: shared: buffers: cached: Mem: 31461376 17059840 14401536 0 98304 15216640 Swap: 0 0 0 MemTotal: 30724 kB MemFree: 14064 kB MemShared: 0 kB Buffers: 96 kB Cached: 14860 kB SwapCached: 0 kB Active: 13900 kB Inactive: 1288 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 30724 kB LowFree: 14064 kB SwapTotal: 0 kB SwapFree: 0 kB

Here it shows 14064KB free memory and 14860KB Cached. Is it normal ? or are we going wrong somewhere ?

The reason for asking this question is that our ramdisk image is approx. 5Mb when compressed and it decompresses to more than 13MB. Now as the kernel shows only 14M memory available... when the kernel tries to decompress the ramdisk image .. its panics .... with "Out of Memory" message...

Pls help us out.

Lawrie Kurian.

Reply to
Lawrie Kurian
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.