From: Blaisorblade <blaisorblade@yahoo.it>
To: Rob Landley <rob@landley.net>
Cc: Jeff Dike <jdike@addtoit.com>,
user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
Date: Tue, 8 Nov 2005 16:56:24 +0100 [thread overview]
Message-ID: <200511081656.24694.blaisorblade@yahoo.it> (raw)
In-Reply-To: <200511071832.04974.rob@landley.net>
On Tuesday 08 November 2005 01:32, Rob Landley wrote:
> On Sunday 06 November 2005 11:18, Blaisorblade wrote:
> In theory the host should get this right, though. What I really want is
> ionice, and I'm under the impression that one of the schedulers made this
> possible a few months back. Dunno if it got merged, or what userspace
> changes I'd need...
IIRC that was exactly CFQ, but no details on this.
> > > The dd to create the file on the parent filesystem
> > > created a sparse file, which UML was happy to loopback mount because
> > > hostfs hid the sparseness of it.
> > 1) I think that loop-back mount is supposed to work on sparse files too
> > (the only thing which is refused is "swapon <sparse file>").
> > 2) How does hostfs hides that? That's interesting (as a bug, I mean).
> I mean I made a sparse file on ext2 and then ran a UML instance that hostfs
> mounted that ext2.
> If hostfs cares that the underlying filesystem is
> sparse or compressed or whatnot, it's caring way too much about
> implementation details of the underlying filesystem. :)
No, the point is that you can loop-back mount even sparse files.
> I suppose if I used the funky block allocation range ioctl thing that LILO
> uses to figure out where kernel images live on disk, maybe it would pass it
> through. I haven't tried.
I think it simply isn't implemented - I barely know about that (guess it's
->bmap or ->fibmap in the fs methods). Also, there's no point in that - can
the application, after having the block numbers, open the block device in any
way? And obviously it's worse for LILO.
> (I vaguely recall that at one point loopback
> mounting sparse files didn't work, but loopback mounting used to be brittle
> five years or so back. It seems to have been cleaned up a bit since
> then...)
Ah, ok, didn't saw this part before.
But hey, it's (now) standard practice to loopback-mount root_fs images to
alter them. I've been using linux since less than 3 years (say RedHat 7.3 was
my first distro), though, so I can't remember about before.
Which means that, when just testing the build process in itself, since you can
create a chroot on the loopback-mount, it's perfectly ok to run it in a
chroot on the host, for speed. (Yep, I know, but if you need to rebuild the
same thing over and over, and the problems are with the compilation rather
than with UML, you can do that in the chroot). This can apply for instance
when installing Gentoo.
Ok, ok, that's maybe too obvious to be laid out - sorry if it's so.
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Messenger: chiamate gratuite in tutto il mondo
http://it.messenger.yahoo.com
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2005-11-08 16:07 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1130917338.14475.133.camel@localhost>
[not found] ` <20051102172729.9E7C.Y-GOTO@jp.fujitsu.com>
[not found] ` <43687C3D.7060706@yahoo.com.au>
2005-11-02 23:28 ` [uml-devel] Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19 Rob Landley
2005-11-03 5:26 ` Jeff Dike
2005-11-03 5:41 ` Rob Landley
2005-11-04 3:26 ` Blaisorblade
2005-11-04 15:50 ` Rob Landley
2005-11-04 17:18 ` Blaisorblade
2005-11-04 17:44 ` Rob Landley
2005-11-04 19:10 ` Blaisorblade
2005-11-04 20:41 ` Rob Landley
2005-11-04 20:57 ` Rob Landley
2005-11-04 23:42 ` Blaisorblade
2005-11-05 1:45 ` Rob Landley
2005-11-05 5:23 ` Jeff Dike
2005-11-05 5:45 ` Jeff Dike
2005-11-05 11:30 ` Blaisorblade
2005-11-05 23:44 ` Rob Landley
2005-11-06 17:18 ` Blaisorblade
2005-11-08 0:32 ` Rob Landley
2005-11-08 15:56 ` Blaisorblade [this message]
2005-11-09 0:50 ` Rob Landley
2005-11-05 18:57 ` Rob Landley
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=200511081656.24694.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=jdike@addtoit.com \
--cc=rob@landley.net \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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