Skip to contentSkip to conversation

Run out of memory

DISCUSSION david stevenson 2 participants 3 messages Jan 16, 2004 – Jan 19, 2004 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi
I am running on a 486 with 4meg ram, and using mtd flash driver and jffs2, and I have now run out of ram.
As a very general guide can someone give me an idea how much ram the mtd driver and the jffs2 code should use up.
In round figures the kernel is using 2meg code,data,reserved, and free shows 1700k used 300k free, before I try to run anything.

Some hints of whether this looks normal or odd would be much appreciated. David

#1 lore raw
Quoted 5 lines · david stevenson

In round figures the kernel is using 2meg code,data,reserved, and free shows 1700k used 300k free, before I try to run anything.

Some hints of whether this looks normal or odd would be much appreciated. David

Try to put kernel image into some kind of ROM memory (may be flash as well). Then you can first of all reduce the amount of memory consumed by kernel itself. On one of machines I was working few years ago (386EX) there was 1700K free RAM after system bootup, whereas total amount of RAM was 2.5MB. (0K used for kernel code)

Signature · 1 line
Michal Schulz
#2 lore raw
Quoted 4 lines · Michal Schulz
Quoted 3 lines · david stevenson

In round figures the kernel is using 2meg code,data,reserved, and free shows 1700k used 300k free, before I try to run anything.

Quoted 8 lines
Quoted 2 lines

Some hints of whether this looks normal or odd would be much appreciated. David

Try to put kernel image into some kind of ROM memory (may be flash as well). Then you can first of all reduce the amount of memory consumed by kernel itself. On one of machines I was working few years ago (386EX) there was 1700K free RAM after system bootup, whereas total amount of RAM was 2.5MB. (0K used for kernel code)

Thanks, that would be the largest item in ram out of the way. I will have to look at the odd parallel memory maps on my sc400 to work out how to map that. Is there a howto for kernel xip?

I am interested to know if either mtd or jffs2, use large amounts of ram, in this case large being in the 100's of kb. And do they use any user space ram or is it all in kernel data?

David