Re: ramdisk/tmpfs/ramfs/memfs ?

H. Peter Anvin (hpa@zytor.com)
26 Apr 2001 13:49:05 -0700


Followup to: <Pine.LNX.3.96.1010426203656.22847A-100000@medusa.sparta.lu.se>
By author: Bjorn Wesen <bjorn@sparta.lu.se>
In newsgroup: linux.dev.kernel
>
> > 5. Can you set size limits on ramfs/tmpfs/memfs?
>
> i don't think you can set a limit in the current ramfs implementation but
> it would not be particularly difficult to make it work I think
>

It's a little more painful than you'd think for the simple reason that
ramfs currently contains no space accounting whatsoever, which
probably is a bad thing. It definitely gave me some serious pause
when I was working on SuperRescue 1.3, since I had no way of
reasonably judging how big my ramfs actually was. The only way I
could get a reasonable idea was rebooting with various mem=
parameters.

-hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/