Re: question about running program from a RAM disk

Scott Murray (scottm@somanetworks.com)
Thu, 28 Feb 2002 20:40:54 -0500 (EST)


On Thu, 28 Feb 2002, Hua Zhong wrote:

> In the final system we are going to turn off swap. I had dreamed that Linux
> could directly use the page frame on the RAM disk instead of doing another
> copy :-)

Both ramfs and tmpfs do what you're asking for. If you are booting
from an initial ramdisk, it's possible to copy the contents of your
ramdisk into a ramfs or tmpfs filesystem at boot time, change roots
with the pivot_root utility, and then throw away the ramdisk. See
Documentation/initrd.txt for more information on this.

Scott

-- 
Scott Murray
SOMA Networks, Inc.
Toronto, Ontario
e-mail: scottm@somanetworks.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/