tmpfs works! was Large ramdisk crashes 2.4.8

Paul Buder (paulb@aracnet.com)
Tue, 14 Aug 2001 13:52:35 -0700 (PDT)


Brian <hiryuu@envisiongames.net> writes:

>Not that this condition should occur, but is this task something that
>could be done in tmpfs? Does tmpfs exhibit the same problems?

I hadn't heard of tmpfs but it seems to work great. There doesn't
seem to be much documentation on it though. I need two ram filesystems
in my box, and no hard disk. It boots off cdrom. So with a 128 meg
experimental box I tried the following.

swapoff -a
mount -t tmpfs -osize=35M /dev/shm1 /mnt1
mount -t tmpfs -osize=35M /dev/shm2 /mnt2
dd if=/dev/zero of=/mnt1/junk bs=1024000 count=100
dd if=/dev/zero of=/mnt2/junk bs=1024000 count=100

It seems to work but I'm a little worried about the /dev/shm1 and 2.
It doesn't seem to matter if they even exist or not, they don't seem to
do anything. Is this just placeholder candy for fstab and the mount
command, or am I missing something?

> -- Brian

>On Saturday 11 August 2001 04:10 pm, Paul Buder wrote:
>> A large ramdisk will either crash or make useless a
>> 2.4.8 kernel. I did the following.
>>
>> I cleared out buffered memory by running this till it
>> appropiately died.
>> perl -e "$x='x' x 10000 while 1"
>>
>> top then said I was using 7 megs of ram on my 128 meg box.

-
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/