Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Operating Systems Software Unix Linux

Boot Process Visualization 536

zigam writes "The time needed to boot desktop Linux systems is becoming an issue. That's why I recently took the challenge posted by Red Hat's Owen Taylor on the Fedora developers list and came up with a tool for visualization of the boot process. It collects performance data during the boot up and then renders an SVG or PNG performance chart. It immediately helped Red Hat developers solve some issues and I have since received boot charts from other GNU/Linux developers as well. Solaris kernel developers reported success in improving their boot process too." Update: 12/15 20:04 GMT by T : Sorry, someone decided your time was worth wasting; no more mirrored bootchart.
This discussion has been archived. No new comments can be posted.

Boot Process Visualization

Comments Filter:
  • Re:Mirror? (Score:5, Informative)

    by gniv ( 600835 ) on Wednesday December 15, 2004 @02:58PM (#11095058)
    There are some charts linked from a post here [redhat.com].
  • Re:For starters.. (Score:2, Informative)

    by kfg ( 145172 ) on Wednesday December 15, 2004 @02:58PM (#11095069)
    I'd like to see other distros do what Red Hat is doing to Fedora's boot screen: Using X resolutions for the startup.

    The desktop oriented distros have been doing that since before Fedora existed.

    KFG
  • Mirror of the images (Score:0, Informative)

    by Anonymous Coward on Wednesday December 15, 2004 @03:01PM (#11095124)
    http://www.coattails.net/slashdot/bootchart.png
  • Re:For starters.. (Score:5, Informative)

    by wizbit ( 122290 ) on Wednesday December 15, 2004 @03:03PM (#11095157)
    Try reading David Zeuthen's analysis [redhat.com] of the FC boot process (with charts) over on the fedora archives. Very interesting - among other things, nearly 200 MB of files(!) are buffered while starting GNOME - quite a footprint - and apparently by putting those files on a separate (non-fragged) partition he sped process by nearly 30 seconds and reports OOo and Firefox start times of around 3 seconds.
  • Quick Link (Score:5, Informative)

    by Roofus ( 15591 ) on Wednesday December 15, 2004 @03:05PM (#11095185) Homepage
    Here's an example image for you to ogle:

    http://people.redhat.com/davidz/bootchart.png.
  • Re:Mirror? (Score:5, Informative)

    by zigam ( 837686 ) on Wednesday December 15, 2004 @03:05PM (#11095189) Homepage
    Here's the mirror:
    bootchart.sourceforge.net [sourceforge.net]
  • Re:IIS? (Score:2, Informative)

    by Anonymous Coward on Wednesday December 15, 2004 @03:08PM (#11095223)
    This is *NOT* a slashdotting. It's someone trying to serve a website from a desktop Windows OS (i.e. XP Pro or Windows 2000 Pro). There is a 10 client limit on non-server versions of IIS.
  • by tashanna ( 409911 ) on Wednesday December 15, 2004 @03:11PM (#11095274)
    If you search around in the Google Cache [64.233.167.104], you can find a link to a Mandrake Wiki [mandrakesoft.com] that has several [zarb.org] bootchart [zarb.org] images [skynet.be].

    - Tash
  • Re:IIS? (Score:5, Informative)

    by gniv ( 600835 ) on Wednesday December 15, 2004 @03:15PM (#11095343)

    Here are some pictures that are not slashdotted yet: one [redhat.com], two [redhat.com], three [redhat.com].

    They are taken from here [redhat.com].

  • Partial mirror (Score:2, Informative)

    by markclong ( 575822 ) on Wednesday December 15, 2004 @03:15PM (#11095344)
    I've mirrored some of the site here:

    http://slushdot.org/mirror/visualization/index.htm l [slushdot.org]

    If you have the whole site email it to me and I'll host it.
  • by Anonymous Coward on Wednesday December 15, 2004 @03:17PM (#11095378)
    I used a much simpler approach to speed up the boot process: On my RedHat 9 box, instead of starting gdm by init, I made a script in /etc/rc.d/init.d, and a link to it in /etc/rc.d/rc5.d, to start gdm. Gdm is started right after networking is up. Now my login prompt is quickly available while in the background the rest of the bootprocess continues.
  • by Anonymous Coward on Wednesday December 15, 2004 @03:18PM (#11095396)
    I use two runlevels for this reason..., in my laptop runlevel 2 means X11 but no network, no servers, ... it is amazing how fast starts in runlevel 2. (no fam, thought :-(( but still very useful for presentations, where yo don't want to waste time on booting process)
  • Re:sheesh. (Score:2, Informative)

    by SenorChuck ( 457914 ) on Wednesday December 15, 2004 @03:43PM (#11095730)
    I believe you are thinking along the lines of what bootsplash http://www.bootsplash.org/ [bootsplash.org] does. This is nothing similar; it's designed to visualize where performance bottlenecks are located during the startup procedures. But then, after reading all of the other commentary on here, you may have picked up on that fact already. In that case, I apologize for the redundancy.
  • by compwiz ( 21231 ) on Wednesday December 15, 2004 @04:00PM (#11095934)
    That's what the idea here is. The Ubuntu guys, and I'm sure people from other distributions, are currently working on getting boot time to gdm down to a much more reasonable value. Since Ubuntu is meant as a desktop, anything that is not absolutely necessary to use the system is loaded after gdm. Note, though, that this doesn't speed up TOTAL boot time, only time to load the login manager. The problem with this is that you get a false sense of completion (like in Windows), where the system is still very slow for the next 30 seconds or however long it takes to start the rest of the services.
  • by pridkett ( 2666 ) on Wednesday December 15, 2004 @04:01PM (#11095955) Homepage Journal
    Ask and you shall receive...

    Take a look at this article [wagstrom.net] that I wrote up after I posted instructions on how to use lpd to spool mp3s [wagstrom.net]. I was even lucky enough to get some of the logs from the mirrors for analysis. You can see the original slashdot article here [slashdot.org].
  • Re:Quick Link (Score:2, Informative)

    by swiftstream ( 782211 ) on Wednesday December 15, 2004 @04:04PM (#11095993)
    Unfortunately, it is neither quick nor a link.

    Try this instead:

    http://people.redhat.com/davidz/bootchart.png [redhat.com]
  • by zigam ( 837686 ) on Wednesday December 15, 2004 @04:06PM (#11096023) Homepage
    I don't know why this didn't get modded up the first time, but here's the mirror again: bootchart.sourceforge.net [sourceforge.net].
  • Re:For starters.. (Score:2, Informative)

    by Anonymous Coward on Wednesday December 15, 2004 @04:31PM (#11096355)
    If you don't know what alt-sysrq does, you probably don't have it enabled.

    If it had been enabled, it would likely have worked, since it is recognized directly by the kernel.

    The s, u, and b are hit sequentially while holding alt-sysrq, so you don't need a third hand to do it. The s causes the kernel to sync the discs, the u remounts your filesystems read-only, and the b causes an immediate reboot.
  • by greed ( 112493 ) on Wednesday December 15, 2004 @04:32PM (#11096364)
    inetd works by connecting to a program's stdin and stdout, so it launches each time there's a connection on the port. That's fine for some things, but anything with a lot of small transactions will really hammer your system. So http is best as a long-running daemon.

    Now, all that aside, there's no reason why you couldn't do this, right now, with tools you already have. (Note: This hijacks runlevel 4 for a completely different use; if you modify chkconfig to work with more runlevels, you could avoid that.)

    Put a line like this in /etc/inittab:

    bg:35:once:/etc/rc.d/rc 4

    (I'd recommend deleting the existing runlevel 4 script too.)

    Now use chkconfig to turn everything off in runlevels 3 and 5 that should be started "late":

    chkconfig --levels 35 httpd off

    This isn't perfect, and redirecting the output of rc is probably a good idea. Also, it might be better to just remove the daemons in question from the old runlevels. And I haven't looked into the shutdown behavior.

  • by zCyl ( 14362 ) on Wednesday December 15, 2004 @04:39PM (#11096444)
    A much better solution would be to say that for each service that needs to be started which services must be started before it and to provide a priority for each service. The boot loader could then use this information to start processes in parallel giving priorities as needed.

    "Make" can already do this in parallel, and is an appropriate tool for specifying dependencies. It would be a simple matter to use it as the primary boot manager rather than shell scripts.
  • That's why (Score:4, Informative)

    by gr8_phk ( 621180 ) on Wednesday December 15, 2004 @05:18PM (#11096933)
    So THATs why XP boots so fast....

    As an embedded programmer, I've got to get many startup diagnostics and initializations done in the shortest time possible (under 1 second usually) - otherwise you'd be waiting for your car to boot every time you turn on the key. Everything in parallel that can be. Dependancies are mapped out and a static start sequence is defined. Linux has a more variable set of things to do, so I'd expect a more flexible implementation. This shocks me that there is NO implementation.

    It doesn't matter what MS does, every application wants load at boot time so it will respond quicker later - this just kills my boot time. Yah, a whole tray full of crap starts and I sometimes use one of those things.

  • by tetromino ( 807969 ) on Wednesday December 15, 2004 @05:21PM (#11096956)
    In Gentoo (well, at least in ~x86), just edit your /etc/conf.d/rc and set RC_PARALLEL_STARTUP="yes", and now at boot, your daemons start in parallel if possible. Don't know if other distros can do this yet - it looks like Gentoo's own invention.
  • Re:Hahahah (Score:2, Informative)

    by timothy ( 36799 ) * on Wednesday December 15, 2004 @05:57PM (#11097407) Journal
    Briefly, it was an actual mirror of one of the images from the story. However, the mirror-poster soon changed it. What can ya do? It's hard to find good parents these days, and many kids just have no better outlet once the rubber sheets are in place.

    timothy

"What man has done, man can aspire to do." -- Jerry Pournelle, about space flight

Working...