From: "Sebastian 'gonX' Jensen" <gonx@overclocked.net>
To: kreijack@libero.it, linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: Mounting raid without a btrfsctl scan
Date: Sun, 16 May 2010 21:38:31 +0200 [thread overview]
Message-ID: <AANLkTims-SmMYx_oR3PN1RhV7qcqm0Mym8uSqFJowQAW@mail.gmail.com> (raw)
In-Reply-To: <201005162044.23272.kreijack@libero.it>
Resending because I forgot to add linux-btrfs... AGAIN!
On 16 May 2010 20:44, Goffredo Baroncelli <kreijack@gmail.com> wrote:
> On Sunday 16 May 2010, Sebastian 'gonX' Jensen wrote:
>> On 16 May 2010 02:02, Tomasz Torcz <tomek@pipebreaker.pl> wrote:
>
> [...]
>> I don't know if I mentioned it before, but my system
>> spends at least 6 seconds in the initramfs before passing control over
>> to my distributions initscripts. Part of it is obviously because of
>> btrfs having to spend approximately 3 seconds probing for devices (I
>> have a decent amount of devices).
>
>
>> However, btrfs does not have that
>> many functions yet. Would it be possible to at least have partial
>> functionality kernel side, so that an initramfs is not required for
>> mounting RAID devices?
>
> I think that the good question is: why a kernel probing should be faster than
> a user space probing ?
It's unlikely that it is (it's also harder to code, probably), but
having to initialize the entire ramfs (3 seconds on my reasonably fast
desktop computer) before being able to scan for devices with btrfs is
something that could probably be avoided. A luxury, if you will.
> I think that some reasons of the time required by the btrfsctl scan in user
> space are:
> 1) a scan performed via 'btrfsctl -a' scans every block device (cdrom and
> floppy included). I suggest to perform a scan via udev (see my previous post);
> that should be reduce the boot time.
I agree, and I think this is a good idea. This could also be
implemented if kernel-side probing is to be implemented.
If UDev scanning isn't feasible yet, or just a luxury, would it at
least not be possible to select what partitions/drives to probe, to
save time? This seems (from my limited programming perspective) fairly
easy to implement.
> 2) the actual initramfs tools pay attention to wait that _all_ devices
> appeared. This requires a bit of time which is not related to the "user space"
> scan.
>
> Comments ?
>
> G.Baroncelli
>
- Sebastian J.
[...]
prev parent reply other threads:[~2010-05-16 19:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-15 11:11 Mounting raid without a btrfsctl scan Matt Brown
2010-05-15 14:36 ` Goffredo Baroncelli
2010-05-15 16:47 ` Sebastian 'gonX' Jensen
2010-05-16 0:02 ` Tomasz Torcz
2010-05-16 0:41 ` Sebastian 'gonX' Jensen
2010-05-16 18:44 ` Goffredo Baroncelli
2010-05-16 19:38 ` Sebastian 'gonX' Jensen [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=AANLkTims-SmMYx_oR3PN1RhV7qcqm0Mym8uSqFJowQAW@mail.gmail.com \
--to=gonx@overclocked.net \
--cc=kreijack@libero.it \
--cc=linux-btrfs@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;
as well as URLs for NNTP newsgroup(s).