FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 03-31-2008, 03:22 PM
"Optimization Kit"
 
Default F9 parallel vs. serial bootscript

Hi,

I wrote a simple script
http://www.stardust.webpages.pl/files/fedora-upstart/bootscriptconv.py

It creates an upstart wrappers for classic Fedora scripts

Example

start on started rsyslog
start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

console output

script
/etc/init.d/atd start
end script

pre-stop script
/etc/init.d/atd stop
end script


Comparison

71 seconds - default
http://www.stardust.webpages.pl/files/fedora-upstart/bootchart-serial.png

54 seconds after parallelization
http://www.stardust.webpages.pl/files/fedora-upstart/bootchart-parallel.png

TODO:
- A better dependency handling

Your comments and suggestions are welcome.

Regards,
Michal

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 03-31-2008, 03:27 PM
Harald Hoyer
 
Default F9 parallel vs. serial bootscript

Optimization Kit wrote:

TODO:
- A better dependency handling

Your comments and suggestions are welcome.

Regards,
Michal



You may also parse the LSB Tags:
Required-Start
Should-Start

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 03-31-2008, 03:27 PM
Harald Hoyer
 
Default F9 parallel vs. serial bootscript

Optimization Kit wrote:

TODO:
- A better dependency handling

Your comments and suggestions are welcome.

Regards,
Michal



You may also parse the LSB Tags:
Required-Start
Should-Start

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 03-31-2008, 05:00 PM
"Optimization Kit"
 
Default F9 parallel vs. serial bootscript

On 31/03/2008, Harald Hoyer <harald@redhat.com> wrote:
> Optimization Kit wrote:
> > TODO:
> > - A better dependency handling
> >
> > Your comments and suggestions are welcome.
> >
> > Regards,
> > Michal
> >
>
>
> You may also parse the LSB Tags:
> Required-Start
> Should-Start
>

grep Required-Start /etc/init.d/*
[..]
/etc/init.d/kerneloops:# Required-Start: $local_fs $remote_fs $named
$network $time $syslog

Why kerneloops needs named?

I added a few dependencies.

Regards,
Michal

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 03-31-2008, 05:09 PM
Harald Hoyer
 
Default F9 parallel vs. serial bootscript

Optimization Kit wrote:

On 31/03/2008, Harald Hoyer <harald@redhat.com> wrote:

Optimization Kit wrote:
> TODO:
> - A better dependency handling
>
> Your comments and suggestions are welcome.
>
> Regards,
> Michal
>


You may also parse the LSB Tags:
Required-Start
Should-Start



grep Required-Start /etc/init.d/*
[..]
/etc/init.d/kerneloops:# Required-Start: $local_fs $remote_fs $named
$network $time $syslog

Why kerneloops needs named?

I added a few dependencies.

Regards,
Michal



why do you hardcode these dependencies? just as a test measurement, what can be achieved?

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 03-31-2008, 05:11 PM
"Optimization Kit"
 
Default F9 parallel vs. serial bootscript

On 31/03/2008, Bill Nottingham <notting@redhat.com> wrote:
> Optimization Kit (optimizationkit@gmail.com) said:
> > TODO:
> > - A better dependency handling
>
>
> As this won't handle multiple dependencies cleanly, it's somewhat
> problematic.

I'm using something like this:

messagebus depends on rsyslog
haldaemon depends on messagebus
NetworkManager depends on haldaemon

deps for NetworkManager are resolved.

>
>
> Bill
>

Regards,
Michal

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 03-31-2008, 05:17 PM
Bill Nottingham
 
Default F9 parallel vs. serial bootscript

Optimization Kit (optimizationkit@gmail.com) said:
> > As this won't handle multiple dependencies cleanly, it's somewhat
> > problematic.
>
> I'm using something like this:
>
> messagebus depends on rsyslog
> haldaemon depends on messagebus
> NetworkManager depends on haldaemon
>
> deps for NetworkManager are resolved.

For things with a linear set, yes. But not everything is so fortunate.

Bill

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 03-31-2008, 05:22 PM
Simo Sorce
 
Default F9 parallel vs. serial bootscript

On Mon, 2008-03-31 at 13:17 -0400, Bill Nottingham wrote:
> Optimization Kit (optimizationkit@gmail.com) said:
> > > As this won't handle multiple dependencies cleanly, it's somewhat
> > > problematic.
> >
> > I'm using something like this:
> >
> > messagebus depends on rsyslog
> > haldaemon depends on messagebus
> > NetworkManager depends on haldaemon
> >
> > deps for NetworkManager are resolved.
>
> For things with a linear set, yes. But not everything is so fortunate.

Yeah, think what happen if you rsyslog is configured to send logs over
the network ...

--
Simo Sorce * Red Hat, Inc * New York

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 06:16 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org