Altera_Forum
Honored Contributor
21 years agoµCLinux - How to minimize buffers
Hello, im trying to minimize the buffers used by Linux to gain more free memory. My custom board is equipped with a 2MB SDRAM chip, but after booting the kernel I have only between 200-300 KB free. I heard wentao talking about the kernel dynamically allocating a lot of RAM during the boot process - does this include buffers .....and is there a way to decrease the size of these buffers?
When I use the "free"-command on my development board (Altera Nios Cyclone) after booting up Linux, it says:MemTotal: 14776 kB
MemFree: 11720 kB
Buffers: 1208 kB Here the buffers take up 1208 KB which is OK because the dev. board got plenty of ram....but if it also takes up over 1MB of RAM on my custom board that too much. I can't use the "free"-command on my custom board because - I believe - "free" requires /proc which in turn requires a RAM-drive which requires "mount" to be called .....and I don't have enough free ram to execute "mount" ......so thats just perfect http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif If anyone has any ideas I would be glad to hear them! Currently im also trying to make the kernel execute in place .....but im still having a bit trouble with that even thou wentao pointed me in the right direction. Hope you guys can help me Regards Goon