From: Ryan Lortie <desrt@desrt.ca>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] PATCH: Support for multi-file raw images
Date: Fri, 12 May 2006 11:54:16 -0400 [thread overview]
Message-ID: <1147449256.32254.4.camel@moonpix.desrt.ca> (raw)
In-Reply-To: <20060512143517.GL15855@narn.hozed.org>
[-- Attachment #1: Type: text/plain, Size: 1396 bytes --]
On Fri, 2006-12-05 at 09:35 -0500, Troy Benjegerdes wrote:
> Have you tried making a read-only 'base' image and using qcow images
> instead? I'm not convinced that splitting things up is going to help a
> lot. You might end up writing 1 512 byte block each to 500 files.. in
> the qcow image case, that is writing 256K, and with 10mb files, that's
> 5GB.
The problem with this approach is that I get an ever-growing changes
file which must eventually be merged (and then I have to copy the 20GB
again).
> at the very least, the console should print an error. If you can keep
> all the files open, deleting the file won't be a problem.
I agree -- console error should definitely occur.
Opening all the files at the start is something to consider. It does
fly in the face of two things, though:
1 -- Limiting the number of fds. Obviously opening all file parts at
the very start will use up a whack of fds right away.
2 -- Not modifying files that haven't been modified. If you open a file
read-write then its modification time is automatically updated and rsync
will want to checksum/copy it again (it quickly checks local files based
on modtime and size). If you open all files read-only then the file may
not be there when you go to reopen it read-write. This is why the
current implementation is as lazy as possible in terms of opening files.
Cheers
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 703 bytes --]
next prev parent reply other threads:[~2006-05-12 15:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-11 6:30 [Qemu-devel] PATCH: Support for multi-file raw images Ryan Lortie
2006-05-12 14:35 ` Troy Benjegerdes
2006-05-12 15:54 ` Ryan Lortie [this message]
2006-05-12 16:22 ` andrzej zaborowski
2006-05-12 20:21 ` Flavio Visentin
2006-05-12 21:45 ` Ryan Lortie
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=1147449256.32254.4.camel@moonpix.desrt.ca \
--to=desrt@desrt.ca \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).