[lkml]   [2001]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjecttmpfs works! was Large ramdisk crashes 2.4.8
Brian <> 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
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:57    [W:0.027 / U:1.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site