AnsweredAssumed Answered

ramfs filesystem and RAM space

Question asked by karthikeyan on May 23, 2012
Latest reply on May 24, 2012 by sonic


    We are using a ramfs based uImage in our EZkit based platform. We found that while the uClinux was running, there is no notion of fixed size for the file system or the RAM. They share the same space. We also found that while coping a 5MB file from sdcard to /home (ramfs), it has occupied 10 MB of space in the total available space in the RAM (we are using free shell utility to see the available memory). This was because that 5MB is used for the actual storage and the next 5MB was that the cp had copied the file to RAM before copying to the filesystem(insidently it is also in the RAM).

  This was making our life little horrible. So my question is that, is it possible to have dedicated space allocated for ram (stack/heap) and the ramfs? In other words out of 64MB available ram, can we specify 32 MB for filesystem and 32 for actual RAM. So that if there is no space in the ramfs it issues a no space error and not take the space from the actual ram (stack/heap).