2008-08-21 03:27:28

by Chen Pei Chao

[permalink] [raw]
Subject: Re: Is there linux RAM filesystem with a fixed amount of memory?‏


>> Is there any RAM file system that use a fixed amount of memory at all
times
>> and will not grow and shrink dynamically like tmpfs?

>ramfs

I mounted a ramfs filesystem with 10M size, and have a check of
/proc/meminfo.
I find the ramfs also did not have the memory preallocation.

I just add one line into /etc/fstab
none /tmp ramfs size=10m 0 0

Any wrong in my steps?

Regards,
Jackie


2008-08-21 04:05:53

by David Newall

[permalink] [raw]
Subject: Re: Is there linux RAM filesystem with a fixed amount of memory?‏

Chen Pei Chao wrote:
> I mounted a ramfs filesystem with 10M size, and have a check of
> /proc/meminfo.
> I find the ramfs also did not have the memory preallocation.
>
Apparently I misunderstood what ramfs does. Sorry for misdirecting you.

2008-08-21 11:53:01

by Chen Pei Chao

[permalink] [raw]
Subject: RE: Is there linux RAM filesystem with a fixed amount of memory?‏



>
> Chen Pei Chao wrote:
> > I mounted a ramfs filesystem with 10M size, and have a check of
/proc/meminfo.
> > I find the ramfs also did not have the memory preallocation.
> >
> Apparently I misunderstood what ramfs does. Sorry for misdirecting you.

Never mind of this, and I use the kernel startup parameter "mem=10M" to
reserved the
Memory that I don't want to use. Thanks.

Jackie
--

> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in the body of a message to
> [email protected] More majordomo info at
> http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/