You are not logged in.

#1 2006-08-27 13:38:17

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Ubuntu is developing a new init program

It's called upstart, and I think it might be more compatible with Arch's BSD initscripts than initng. Not sure though.

Offline

#2 2006-08-27 17:37:06

deficite
Member
From: Augusta, GA
Registered: 2005-06-02
Posts: 693

Re: Ubuntu is developing a new init program

Looks interesting. I like the unification they're trying for. I can't wait to mess around with it.

Offline

#3 2006-08-27 18:33:12

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Ubuntu is developing a new init program

Yes. It sounds quite interesting indeed.I can't wait to give it a spin myself too. smile

I really like the idea of an init daemon that fires off tasks, than a series of non-connected scripts. In theory, it would make it possible for tasks to be started only with the permissions they need from the get go, instead of starting as root and then releasing permissions. Since they are only recieving a notification/message/task, instead of the script itself performing the startup and deciding what it needs to do.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#4 2006-08-28 08:13:18

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Ubuntu is developing a new init program

/me spies more work for self on horizon...

Offline

#5 2006-08-28 14:37:16

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Ubuntu is developing a new init program

dtw wrote:

/me spies more work for self on horizon...

Not in the long run. These initscripts are going to make every sysadmin and distro maintainer's life easy, assuming they do it as right as they say they are.

Dusty

Offline

#6 2006-08-28 15:11:06

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: Ubuntu is developing a new init program

Have anyone looked into how this compares to http://smarden.org/runit/ ?


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#7 2006-09-16 12:19:20

archuser
Member
From: Northamptonshire, UK
Registered: 2006-09-10
Posts: 122

Re: Ubuntu is developing a new init program

Would this eliminate the complaint I get from mount when booting that "/dev/sda1" doesn't exist?

It's no major problem, it just bugs me if I'm there whilst my system is starting up.


Intel i7-920 (stock), ASUS P6TD-Deluxe, AMD R9 270X, RAM: 6GB

Offline

#8 2006-09-16 19:42:56

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Ubuntu is developing a new init program

What is /dev/sda1? If it's a USB device that isn't always plugged in at boot up, use the noauto optin in fstab to not have it mounted automatically on boot up:

/dev/sda1       /mnt/hd_ext    ext3 noauto,user,rw,suid,dev,exec,async   1  0

Offline

#9 2006-09-16 21:17:58

archuser
Member
From: Northamptonshire, UK
Registered: 2006-09-10
Posts: 122

Re: Ubuntu is developing a new init program

Yeah it's my phone's usb stick.  The fstab has no auto entry so I assumed it wasn't being auto mounted but that it was complaining because the particular device didn't exist in /dev.

I'll add the noauto entry. Cheers.


Intel i7-920 (stock), ASUS P6TD-Deluxe, AMD R9 270X, RAM: 6GB

Offline

#10 2006-09-16 22:02:20

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Ubuntu is developing a new init program

I guess you were using the "defaults" option which implies auto.

Offline

#11 2006-09-17 00:46:54

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Ubuntu is developing a new init program

Wow, that actually does look really interesting - a central point for job control, whether it be from boot, from timed jobs (replacing cron), and so on.

This could be pretty cool.

Offline

#12 2006-09-18 15:09:23

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Ubuntu is developing a new init program

upstart, initng, rinit, blahblah-init.... none of them really change anything.  It's an artificial problem - System V init is not "slow", it is the processes that are called that are slow.

Sure, moving from sequential to event-based is generally a good thing, but you could do that now with an existing sys V setup, using tools to work with inotify or even directly by udev.

In fact, doing this all with udev may be possible right now.  The only thing you know at boot is that your root filesystem is up and running.  From there, it should actually be almost trivial to use udev rules to react upon certain events.  The only one missing would be network up/down.

Offline

#13 2006-09-18 15:26:29

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Ubuntu is developing a new init program

phrakture wrote:

In fact, doing this all with udev may be possible right now.  The only thing you know at boot is that your root filesystem is up and running.  From there, it should actually be almost trivial to use udev rules to react upon certain events.  The only one missing would be network up/down.

udev rules never seem almost trivial to me, but I'm a syntax geek. Now that you've mentioned this idea, I want to know your opinion -- is it worth it to implement it? Would this be something that we might want to do in Arch (perhaps because its "simpler" than this upstart?) Or did you mention this more as an indication that the whole idea is unnecessary and ubuntu would be wise to switch to BSD style init scripts, and we're already doing everything right?

Dusty

Offline

#14 2006-09-18 16:08:17

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Ubuntu is developing a new init program

Well, I think what I'm trying to say is more the fact that this is an artifical problem.  "Oh no, init is slow and out-dated!" is not true.  Remove everthing from inittab except some sort of "/path/to/time /path/to/print done" as initdefault, and tell me how long it takes to run init.  Now, shut off all DAEMONS, set all non-critical FSes to noauto, and set MOD_AUTOLOAD to no, then throw /path/to/time in front of the rc.sysinit call.

What upstart is trying to do defies pareto's principle - your big hogs are a) mounting large filesystems, b) running through uevents, and c) starting all the on-boot stuff you have.

Trying to optimize the order and timing of these isn't gaining much.

Now, all things considered, I think that redesign is generally good, but redesigning something that's not problematic is meerly a waste of time.

Offline

#15 2006-09-18 16:26:14

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Ubuntu is developing a new init program

they are also aiming to replace cron, and the one that runs missed crons..can't remember the name right now.. (is it 'at'?).

I think it is interesting, and doing something interesting to even a few people, is not often a waste of time.. sometimes very cool and useful things can fall out of the process.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#16 2006-09-18 19:33:29

archuser
Member
From: Northamptonshire, UK
Registered: 2006-09-10
Posts: 122

Re: Ubuntu is developing a new init program

I've read the page about upstart and don't quite understand it.

Is it some kind of 'on demand' system? Like for example: I haven't used my network connection yet; neither has anything started up at boot that requires a network connection. So the 'network' daemon hasn't been started yet. But as soon as something starts up that requires a network connection it says "Hey, is the 'network' daemon running?". The system says, "No, hang on, I'll just start it now"  and it starts. Then after a period of time at idle (the network daemon), perhaps settable by the user, the system stops the network daemon and frees the resources.


Intel i7-920 (stock), ASUS P6TD-Deluxe, AMD R9 270X, RAM: 6GB

Offline

#17 2006-09-19 05:02:31

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: Ubuntu is developing a new init program

http://blog.thelinuxfr.org/index.php?20 … t-sur-edgy

frankly...i'm unimpressed.  the system in the blog is a a64 3200+, and switching to the new system gained 3 seconds...not to mention that none of the services were heavy duty like a database server.  my arch system running on a p4 2ghz with more services boots 10 seconds faster than upstart on this blog system.

granted, it's still in its infant stages, it's already hit edgy, which means in a month it will become production.

Offline

#18 2006-09-19 10:36:14

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Ubuntu is developing a new init program

cactus wrote:

they are also aiming to replace cron, and the one that runs missed crons..can't remember the name right now.. (is it 'at'?).

anachron?


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#19 2006-09-19 12:31:06

deficite
Member
From: Augusta, GA
Registered: 2005-06-02
Posts: 693

Re: Ubuntu is developing a new init program

I, for one, am not interested in speed or uber-optimization. If I was I'd go Gentoo and waste away a quarter of my free time :-P. What I AM interested in is that this system makes SENSE. Yeah, you can do a lot of things with the tools we already have, but I can think of a few examples of extremely fugly, inelegant solutions simply because nobody wanted to start from scratch on something. This may not be the case with init, but I commend them for having the guts and time to do this (I think it's a nice thing myself)

Offline

#20 2006-09-27 13:10:55

mmccaskill
Member
From: NC
Registered: 2005-02-21
Posts: 163

Re: Ubuntu is developing a new init program

From my understanding of the article the goal of upstart isn't speed but flexibility. I don't think the writer is complaining about the speef (or lack thereof) of sysvinit. It sounds like a good idea but I am not well versed in this area.

Offline

#21 2006-09-27 15:08:18

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: Ubuntu is developing a new init program

loving messing around with alpha and beta stuff i installed knot 3 on my laptop.

surprisingly, it beat out the one in the blog.  i got 36 seconds, and my laptop is only a 2200+....so i have no idea how that a64 was so slow.

arch booted on the laptop at the exact same speed.

we need more people with more bootcharts.

Offline

Board footer

Powered by FluxBB