Messages in this thread |  | | From | "H. Peter Anvin" <> | Subject | Re: question about running program from a RAM disk | Date | 28 Feb 2002 15:48:26 -0800 |
| |
Followup to: <01bc01c1c0a6$a3c315e0$bb3147ab@amer.cisco.com> By author: "Hua Zhong" <hzhong@cisco.com> In newsgroup: linux.dev.kernel > > 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 :-) >
However, the reply you got was completely irrelevant; he didn't answer your question at all (even though he probably thought.)
The answer to your question is that a ramdisk lives directly in the block cache and does not have to be copied.
You may want to consider migrating to a ramfs or tmpfs, which lives directly in the *page* cache and therefore reduces overhead further.
-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 <amsp@zytor.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/
|  |