From: Jonathan Morton <chromi@chromatix.demon.co.uk>
To: Anil Kumar <anilk@cdotd.ernet.in>, linux-mm@kvack.org
Subject: Re: ramfs/tmpfs/shmfs doubt
Date: Fri, 23 Aug 2002 09:26:57 +0200 [thread overview]
Message-ID: <a05111b3bb98b92742c91@[192.168.239.105]> (raw)
In-Reply-To: <Pine.OSF.4.10.10208231100500.4550-100000@moon.cdotd.ernet.in>
> I am planning to create a file system at boot time in RAM and download
>application binaries to that and run.RAM is limited so my requirement is
>that i do not want to have two copies of data in the RAM (One in File
>System i create and other one in Page Cache ).
Tmpfs and shmfs are two names for the same thing (the latter is
deprecated), and I believe it will do what you want. It exists in
the pagecache, and I understand this is routinely mapped into process
space for execution.
Ramfs creates a whole new section of memory and treats it as a block
device, and the pagecache is used in addition to that. This is not
what you want, and I understand ramfs itself is discouraged since
tmpfs is now in widespread use. Cramfs is still useful as it uses
compression on the "block device".
> Can i run a linux kernel disabling swapping (In my case no
> additional device for swap is available) ?
Certainly. Simply don't provide a swap device or run swapon. It'll
work just fine until you run out of RAM, in which case you'd be
screwed in any case. :o) I naturally assume you'll be running quite
lean and tightly-controlled apps on that.
--
--------------------------------------------------------------
from: Jonathan "Chromatix" Morton
mail: chromi@chromatix.demon.co.uk
website: http://www.chromatix.uklinux.net/
geekcode: GCS$/E dpu(!) s:- a21 C+++ UL++ P L+++ E W+ N- o? K? w--- O-- M++$
V? PS PE- Y+ PGP++ t- 5- X- R !tv b++ DI+++ D G e+ h+ r++ y+(*)
tagline: The key to knowledge is not to rely on people to teach you it.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
prev parent reply other threads:[~2002-08-23 7:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-23 6:28 Anil Kumar
2002-08-23 7:26 ` Jonathan Morton [this message]
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='a05111b3bb98b92742c91@[192.168.239.105]' \
--to=chromi@chromatix.demon.co.uk \
--cc=anilk@cdotd.ernet.in \
--cc=linux-mm@kvack.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