From: Jason Lunz <lunz@falooley.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Cameron Schaus <cam@schaus.ca>, linux-kernel@vger.kernel.org
Subject: Re: 2.6.20 OOM with 8Gb RAM
Date: Fri, 13 Apr 2007 19:01:39 -0400 [thread overview]
Message-ID: <20070413230139.GB6783@metaxa.reflex> (raw)
In-Reply-To: <20070413154653.21fdb914.akpm@linux-foundation.org>
On Fri, Apr 13, 2007 at 03:46:53PM -0700, Andrew Morton wrote:
> > If I want to run a system entirely from ram with a compressed filesystem
> > image mounted on /, is it better to store that image in a ramdisk, or on
> > a tmpfs and mount it via loopback?
>
> Store it all in ramfs, no loopback needed?
I used to put everything in a tmpfs on /, and that certainly works. But
most files in a typical image are rarely used and it's a pity to have
lots of little files taking up a 4k page each.
You get pretty big savings by compressing the system into a squashfs and
mounting that, so the question becomes: where to put the squashfs?
ramdisk or loopback mount it from tmpfs/ramfs?
iirc, the problems with loopback have to do with writeout, which isn't a
problem here since squashfs is readonly.
Jason
prev parent reply other threads:[~2007-04-13 23:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-12 17:38 Cameron Schaus
2007-04-12 19:15 ` Andrew Morton
2007-04-12 21:30 ` Cameron Schaus
2007-04-13 22:39 ` Jason Lunz
2007-04-13 22:46 ` Andrew Morton
2007-04-13 22:54 ` William Lee Irwin III
2007-04-13 23:32 ` Andrew Morton
2007-04-13 23:40 ` William Lee Irwin III
2007-04-13 23:01 ` Jason Lunz [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=20070413230139.GB6783@metaxa.reflex \
--to=lunz@falooley.org \
--cc=akpm@linux-foundation.org \
--cc=cam@schaus.ca \
--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
all inboxes | Powered by JetHome®