lkml.org 
[lkml]   [2002]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectramfs/ramdisk.
Hello All,

I am trying to understand the differences between ramfs and ramdisk, and
also trying to use ramfs.

I am running 2.4.13-ac8.

I do a mount -t ramfs none /tmp/tmpfs

Then use dd to create a file, of size 500M.
do a df, and %Use is 49%(machine has 2G) so i guess default size of
"ramfs" fs will be half of that, 1G.

But when i delete the file. df doesnt show %Use to be 0%.

du -sk doesnt either.

Not sure what is going on.

Cant the utilization of the ramfs be changed.

Also, from fs/ramfs/inode.c

"* NOTE! This filesystem is probably most useful
* not as a real filesystem, but as an example of
* how virtual filesystems can be written.
"

1. Can i use ramfs for any practical purposes at all ?


2. I was hoping to create a few ram disks, mount them as swaps on Sun
machines(so i dont have to buy their expensive memory) and run big
simulations. (agreed might not be screaming over NFS)


Also, some articles talk about using ramfs when on a webserver. So it
ramfs mostly for read-only stuff rather than read-write.

Thanks,

Regards.

/dev/null

devnull@adc.idt.com


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

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