From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
Cc: Jiri Kosina <jikos@jikos.cz>,
linux-kernel@vger.kernel.org, kernel-discuss@handhelds.org
Subject: Re: parallel boot device initialisation (kernel-space not userspace)
Date: Fri, 08 Dec 2006 23:44:55 +0100 [thread overview]
Message-ID: <4579EAE7.9030201@s5r6.in-berlin.de> (raw)
In-Reply-To: <20061208174221.GE4666@lkcl.net>
Luke Kenneth Casson Leighton wrote:
> On Fri, Dec 08, 2006 at 05:38:47PM +0100, Jiri Kosina wrote:
>> On Fri, 8 Dec 2006, Luke Kenneth Casson Leighton wrote:
>>
>>> I Have A Great Idea(tm) and would like to describe it concisely to see
>>> if anyone likes it and hopefully hasn't thought of it before so i'm not
>>> consuming people's time. The idea is: parallel device initialisation of
>>> built-in modules, to reduce kernel boot time.
>> Have you looked at CONFIG_PCI_MULTITHREAD_PROBE which is already present
>> in recent kernels?
>
> ah _ha_. thank you!
>
> honestly? no - because the small devices i'm compiling for don't have a
> pci bus, ha ha :)
>
> but seriously - thank you for pointing that out, i'll definitely
> investigate it.
Parallelized initialization needs to be added for one bus after another.
The driver core has infrastructure for it (struct
device_driver.multithread_probe; it has been suggested to move this flag
into struct bus_type). CONFIG_PCI_MULTITHREAD_PROBE actually just enables
this flag for the generic driver part of PCI drivers. The SCSI core as
another example has now infrastructure for parallelized asynchronous bus
scanning too and SCSI low-level drivers are being be converted to it.
Your thought to pick one subsystem and implement multithreaded probing is
exactly the way to go. If the subsystem is already properly using the
driver core, part of what's needed is already in place. You "merely" have
to look out for proper access to shared resources, and maybe synchronization
of the final step in initialization... (Like in case of the SCSI subsystem.
People usually want to wait for all scanning threads to finish before the
system proceeds to mount filesystems.)
--
Stefan Richter
-=====-=-==- ==-- -=---
http://arcgraph.de/sr/
next prev parent reply other threads:[~2006-12-08 22:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-08 16:34 Luke Kenneth Casson Leighton
2006-12-08 16:38 ` Jiri Kosina
2006-12-08 17:42 ` Luke Kenneth Casson Leighton
2006-12-08 22:44 ` Stefan Richter [this message]
2006-12-10 21:35 ` [Kernel-discuss] " Ian Molton
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=4579EAE7.9030201@s5r6.in-berlin.de \
--to=stefanr@s5r6.in-berlin.de \
--cc=jikos@jikos.cz \
--cc=kernel-discuss@handhelds.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkcl@lkcl.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
all inboxes | Powered by JetHome®