From: "Jared Hulbert" <jaredeh@gmail.com>
To: "Arnd Bergmann" <arnd@arndb.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC] Advanced XIP File System
Date: Tue, 2 May 2006 18:59:47 -0700 [thread overview]
Message-ID: <6934efce0605021859u55131e63xd8dab3d4396d7f56@mail.gmail.com> (raw)
In-Reply-To: <200605030200.29141.arnd@arndb.de>
> Nice, this is the first time I heard of anyone using filemap_xip on MTD.
Actually we don't use the MTD. Well, we may use it to provide the
physical address of the volume, thats not really _using_ it.
> ext2fs does have XIP of applications, but of course only works on
> block devices, not MTD. Is there more missing than an implementation
> of block_device_operations::direct_access for mtd_blktrans_ops?
It works on very specific block devices to be clear. Yeah, as I
understand it, the hardware to enable it is missing.
> Why can't you get the same result with a combination of cramfs for
> data files and ext2 with -o xip for your mmapped binaries?
Not having the block device driver is by design. In this case I don't
need a block device because the entire "disk" or binary image is in
readonly memory already. I don't need to fetch blocks. This is
readonly so I don't need to write blocks either. A block device
driver would do what for me?
Also ext2 doesn't do compression, and it doesn't let me pick out
specific pages in files to XIP or compress.
> Is that a fundamental problem of cramfs, or rather a problem of the
> implementation of the linear XIP patches for it?
A little of both. The architecture of cramfs doesn't lend itself to
the page by page XIP without really changing the fundamental layout of
cramfs. Why mess with it?
>IOW, can't you just
> do a better patch to add filemap_xip support to cramfs?
I started out with that goal. This seemed like the best option after
we did the deep dive into how to go about it.
>> - Design allows for tighter packing of data and higher performance
>> than XIP cramfs
>
> why? by how much?
Data packing:
1) When mkcramfs is writing files to the image it mixes compress and
XIP files. XIP files are page aligned. Compressed files are not. I
think it was about 3.3% wasted I measured on an actual production
linux phone.
2) Choosing page by page to XIP or compress means you can save space,
but it depends on what is more precious, RAM or Flash, given real
designs (ie - you don't buy 36MiB of RAM you get 32MiB or 64MiB)
Performance:
1) The way we are storing the metadata should make for quicker access.
2) Being able to store specific pages of RO data from an otherwise XIP
file such that they end up in RAM has speed thing up for us a great
deal in the lab.
next prev parent reply other threads:[~2006-05-03 1:59 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-02 21:53 Jared Hulbert
2006-05-03 0:00 ` Arnd Bergmann
2006-05-03 1:59 ` Jared Hulbert [this message]
2006-05-03 2:27 ` Josh Boyer
2006-05-03 5:04 ` Jared Hulbert
2006-05-03 8:31 ` David Woodhouse
2006-05-03 19:14 ` Pavel Machek
2006-05-04 16:32 ` Jared Hulbert
2006-05-03 0:56 ` Josh Boyer
2006-05-03 3:17 ` Nicolas Pitre
2006-05-03 10:41 ` Josh Boyer
2006-05-03 12:11 ` David Woodhouse
2006-05-03 15:45 ` Jared Hulbert
2006-05-03 15:52 ` David Woodhouse
2006-05-03 15:57 ` Nicolas Pitre
2006-05-03 16:01 ` David Woodhouse
2006-05-03 16:10 ` Nicolas Pitre
2006-05-03 5:11 ` Jared Hulbert
2006-05-03 12:50 ` Mark Lord
2006-05-03 15:33 ` Jared Hulbert
2006-05-03 13:05 ` Jörn Engel
2006-05-03 15:31 ` Jared Hulbert
2006-05-03 15:47 ` Jörn Engel
2006-05-03 15:58 ` Jared Hulbert
2006-05-03 17:03 ` Jörn Engel
2006-05-03 18:58 ` Jared Hulbert
2006-05-03 16:38 ` Jan Engelhardt
2006-05-03 18:54 ` Jared Hulbert
2006-05-03 23:17 ` Josh Boyer
2006-05-03 23:48 ` Jared Hulbert
2006-05-04 0:21 ` Josh Boyer
2006-05-03 22:49 ` David Woodhouse
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=6934efce0605021859u55131e63xd8dab3d4396d7f56@mail.gmail.com \
--to=jaredeh@gmail.com \
--cc=arnd@arndb.de \
--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®