[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: my RAM disk is too big



On Monday 08 April 2002 02:06 pm, Jonas Holmberg wrote:
> On Mon, 2002-04-08 at 13:59, joost wrote:
> > when I use the command 'df' on the developer board I get the next
> > information:
> >
> > Filesystem     	1k-blocks   	Used  	Available  	Use%   	Mounted on
> > /dev/flash3  	3168     	3168   	      0   		100%  	/
> > /dev/flash2  	  192       	   32     	   160   		 17%  	/mnt/flash
> > tmpfs         	3472     	 184       3288   		  5%  	/var
> >
> > As you can see I have more than 3 MB of free space on the RAM disk ( /var
> > ). Is this memory reserved for the RAM disk, or can it also be used by
> > the CPU? If it cannot be used by the CPU, how can I free up this memory?
> > I don't need such a big RAM disk.
> >
> > Thanks,
> > Joost
>
> tmpfs grows and shrinks as needed. See
> os/linux/Documentation/filesystems/tmpfs.txt.
>
> Best regards
> /Jonas

I asked the question about the RAM because I have a problem with a 
application, which I think has to do with the memory. The application worked 
with devboard_lx-R2_0_0 and the 2.4.5 kernel, but not with devboard_lx-R2_1_0 
and the 2.4.14 kernel. With the new software, the applications stops after a 
while because of a segmentation fault. When I look at /proc/meminfo, there 
are some big differences between the old and the new software. 

Old software:
MemFree 1808 kB
Buffers          0 kB
Inact_dirty   24 kB
Inact_clean   0 kB
Inact_target   8 kB

New software:
MemFree 992 kB
Buffers     552 kB
Inactive   2512 kB

What does the 'Inactive 2512 kB' mean? Is this maybe the cause of why there 
is such a little free memory?

thanks,
Joost