Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 53

Thread: Let's boot with Upstart (GDM ready in 15s)

  1. #31
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Let's boot with Upstart (GDM ready in 15s)

    Quote Originally Posted by Meson View Post
    Is it possible to just implement this as rc3,4,or 5? It should make it easier to test on the same exact system rather than installs on seperate partitons (which have different radial distances along the disk - dunno if that is negligable or not).
    Then you do not get the benefit of Upstart during rcS.

  2. #32
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Let's boot with Upstart (GDM ready in 15s)

    http://bazaar.launchpad.net/~uphacke...ck-tools/files

    Muahaha, phase 2 of world domination:

    I've begun work on an automatic sysv to upstart conversion script.

    So far, it's able to find all rcS and rc2 jobs and dump them into event.d jobs

    Now, I just need to go thru and "quirk" the jobs that have special dependencies (i.e. most of the initial bootup stuff, and hal->dbus->gdm stack) and we've got an automatic upstart converter.


    WARNING: Right now using this tool will likely result in an unbootable system. It writes event.d to the current directory and refuses to overwrite existing event.d directories so you can preview what it'd do, but I purposely did not allow it to apply those changes to the system. Do not run it as root for security reasons.

  3. #33
    Join Date
    Nov 2004
    Location
    Kuala Lumpur, Malaysia
    Beans
    885
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Let's boot with Upstart (GDM ready in 15s)

    jdong,

    How's your world domination plan? Any updates for your fans here?

  4. #34
    Join Date
    May 2008
    Beans
    43
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Let's boot with Upstart (GDM ready in 15s)

    Any progress?

  5. #35
    Join Date
    Apr 2008
    Beans
    73

    Re: Let's boot with Upstart (GDM ready in 15s)

    Quote Originally Posted by bruce89 View Post
    I've never understood this practice, it's wasteful of electricity.
    If you want to save electricity you can sleep or suspend. I keep my linux servers on 24/7 though, since some jobs never end.

  6. #36
    Join Date
    Nov 2005
    Location
    Pune, India
    Beans
    838
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Let's boot with Upstart (GDM ready in 15s)

    Any updates on the same jdong?
    Registered Linux user #468829

    http://flossexperiences.wordpress.com

  7. #37
    Join Date
    Sep 2007
    Location
    Auckland, NZ
    Beans
    68
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Let's boot with Upstart (GDM ready in 15s)

    Hi,

    I'm also hoping/waiting to hear of jdong's progress on this front (if any)

    Also exciting: has anyone read this article regarding 5 second linux boot: http://lwn.net/Articles/299483/

    it would be interesting to redo some of the optimizations they achieved (with ubuntu instead of fedora..) even 10 to 20 seconds would be a huge improvement over the usual 60 to 150 second boots a lot of us are seeing.

    personally on my old AthlonXP machine, I could never suspend (even with Windows) but I forgo AGP support in favor of using suspend because it's so sweet "booting" in several seconds.

    Under hardy 8.04.1 using nvidia drive, I added" "Option" "NvAGP" "0" and now I can suspend!!

    anyway good luck all

  8. #38
    Join Date
    Nov 2008
    Beans
    0

    Arrow Re: Let's boot with Upstart (GDM ready in 15s)

    i installed upstart 0.5

    following patch is needed to make it (upstart 0.5) work WITHOUT INITRAMDISK

    add it before setsid (); in init/main.c
    Code:
            /* Mount /proc
             * hack needed when not running initramfs
             */
            system ("mount /proc");
    compile with debian/rules binary and install the packages written to ..

    BEFORE REBOOTING with the new upstart 0.5:
    /etc/init.jobs.d => /etc/event.d (new location for upstart jobs)
    • sudo mkdir /etc/init
    • sudo ln -s /etc/event.d /etc/init/jobs.d


    i slightly changed jdong's script to reflect new syntax and introduce adapted dependencies (note that i commented out many services that i do not run (no code line has been deleted, only commented out))
    - see attachment upconv.py -

    then i ran
    ./upconv.py /etc/rc2.d/
    and copied anything from jobs.d/ to /etc/init/jobs.d/

    and applied some manual tweaks:
    comment out cups #start on .. (i seldomly need printing)
    rm /etc/init/jobs.d/{loadcpufreq,console_screen_kbd_sh,readahead,rc2,r cS}
    (loadcpufreq removed because it's statically compiled into my kernel, readahead because my X301's flash-drive doesn't need it and console_screen_kbd_sh because it's superseded by setupcon and not used anyway)
    also remove rc2 and rcS as i now have native upstart boot i don't want these to be loaded anymore (some services don't like being started twice either)

    so this is my ls /etc/init/jobs.d
    Code:
    acpid               cups                   mountall_sh       rc6                sysklogd
    atd                 dbus                   mountdevsubfs_sh  rc-default         system_tools_backends
    avahi_daemon        gdm                    mountkernfs_sh    rc_local           tty1
    bluetooth           hal                    mountoverflowtmp  rcS-sulogin        tty2
    bootmisc_sh         hostname_sh            mtab_sh           readahead_desktop  tty3
    checkfs_sh          hwclockfirst_sh        networking        resolvconf         udev
    checkroot_sh        hwclock_sh             NetworkManager    rmnologin          udev_finish
    console_setup       keyboard_setup         policykit         screen_cleanup     urandom
    control-alt-delete  klogd                  procps            ssh                x11_common
    cpufrequtils        loopback               rc0               stop_readahead
    cron                mountall_bootclean_sh  rc1               sulogin
    the dependency graph is included as attachment. to generate one yourself use jdong's script with
    Code:
    ./depchart.py /etc/init/jobs.d/ > depchart-upstart-new.graph && dot -Tpng -o upstart-new.png depchart-upstart-new.graph && eog upstart-new.png
    NOTE:
    If you ever run into an unbootable system add init=/bin/bash to the kernel command line in GRUB and when booted into bash run /etc/init.d/rcS
    you'll be able to start fixing from there..

    enjoy fast booting and thanks for the initial effort!
    Attached Images Attached Images
    Attached Files Attached Files

  9. #39
    Join Date
    Apr 2006
    Location
    Illinois, USA
    Beans
    1,283
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Let's boot with Upstart (GDM ready in 15s)

    Thanks for all of the info, bluk.
    I finally got a build to work in my PPA for Upstart 0.5.1
    I may try installing it sometime, but I don't really trust it yet. Could anyone tell me if that package should be good? I'm not too experienced with packaging, and this is kind of an important thing to play around with.
    Also, question:
    You say the patch is needed for "WITHOUT INITRAMDISK"
    Is this something specific to your setup that you don't use initramdisk or is this for Ubuntu in general? In other words, should I make that change when I build the package myself?
    If I'm not being clear enough or giving you enough information, just ask

    "But woe to him who is alone when he falls, for he has no one to help him up."

    Smooth scrolling for GTK!

  10. #40
    Join Date
    Jul 2008
    Location
    Where I am
    Beans
    807
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Let's boot with Upstart (GDM ready in 15s)

    this should be used in jaunty
    .i coi rodo

Page 4 of 6 FirstFirst ... 23456 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •