A file of 5 MB on tmpfs file system uses 5 MB of RAM or more?

DI BACCO ANTONIO - technolabs Antonio.DiBacco at technolabs.it
Sat Jan 19 09:23:20 EST 2008


No I simply did several malloc(s) without writing to the allocated space.

This means that the pages are not allocated really?



-----Original Message-----
From: Scott Wood [mailto:scottwood at freescale.com]
Sent: Fri 18/01/2008 16.58
To: DI BACCO ANTONIO - technolabs
Cc: linuxppc-embedded at ozlabs.org
Subject: Re: A file of 5 MB on tmpfs file system uses 5 MB of RAM or more?
 
On Fri, Jan 18, 2008 at 02:15:02PM +0100, DI BACCO ANTONIO - technolabs wrote:
> I have a linux-2.6.19.2 board with an MPC880 with 16MB ram and 16 MB
> flash. 
> Normally I have 9-10 MB of free RAM.
>  
> If I allocate 5 MB of ram memory, the system continues to work normally,

Are you sure the RAM was actually allocated (i.e. did you write to all of
the pages)?

-Scott

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20080118/0aaef08c/attachment-0001.htm 


More information about the Linuxppc-embedded mailing list