public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-kernel@vger.kernel.org
Subject: Re: question about running program from a RAM disk
Date: 28 Feb 2002 15:48:26 -0800	[thread overview]
Message-ID: <a5mfka$jgl$1@cesium.transmeta.com> (raw)
In-Reply-To: <Pine.LNX.3.95.1020228170705.2670A-100000@chaos.analogic.com> <01bc01c1c0a6$a3c315e0$bb3147ab@amer.cisco.com>

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>

  parent reply	other threads:[~2002-02-28 23:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-28 19:51 question about running program from a RAM disk Hua Zhong
2002-02-28 22:12 ` Richard B. Johnson
2002-02-28 22:24   ` Hua Zhong
2002-02-28 22:55     ` Oliver Neukum
2002-02-28 23:48     ` H. Peter Anvin [this message]
2002-03-01  1:40     ` Scott Murray

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='a5mfka$jgl$1@cesium.transmeta.com' \
    --to=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox