Slashdot Mirror


Booting Linux Faster

krony writes "IBM's DeveloperWorks explains how to decrease boot times for your Linux box. The concept is to load system services in parallel when possible. Most surprising to me is the use of 'make' to handle dependencies between services." The example system shown is able to cut its boot time in half, but the article stresses the effectiveness can vary widly from machine to machine.

625 comments

  1. boot? by willeg · · Score: 0, Offtopic

    I rarely have to boot ever after the first boot and patch!

    1. Re:boot? by Anonymous Coward · · Score: 1, Funny

      Recompile the kernel?

      REBOOT!

      HA HA HA HA, say goodbye to your precious 192-day uptime!

    2. Re:boot? by kcurtis · · Score: 5, Insightful

      > I rarely have to boot ever after the first boot and patch!

      Probably true. But one goal of linux is to become the predominant desktop/laptop OS.

      I work for a public school system. I'd rather not have all these computers eating up power all night when they're not being used.

      In most work environments, pc's get turned off over night, and sometimes even at lunch.

      This is one more way someone is helping to make Linux a better candidate for your casual end user.

    3. Re:boot? by Anonymous Coward · · Score: 0

      How about implementing the power saving features that are available to every PC built since, say 1998? Power down the monitors, disks and whatever after so long. Hibernate, and powerdown the motherboard after some longer time, or at a particular time (like say, when the school normally closes up for the night.

      Use your server to broadcast a wake up packet to your Wake On Lan enabled NICs when school opens up. This isn't rocket science. Yeah, it uses a bit more juice than totally shutting everything down, but nothing that can't be recouped by rigging the Science Class's Hampster wheel up to a generator.

    4. Re:boot? by mAineAc · · Score: 1

      as far as I know in most work environments, at least the ones I have worked in, the computers are left on at night because that is when virus scans and updates are run. Everyone is usually told to leave a computer on. From what I understand a computer that is asleep doesn't use a great deal more electricity than one that is off and just plugged in. I can imagine that on a huge scale of thousands of computers this could be a great deal of electricity but I have worked in call centers with thousands fo computers running 24-7. The only time they were actually rebooted was when they were having problems, which meant that anything running windows was rebooted daily.

    5. Re:boot? by Anonymous Coward · · Score: 0

      Turn off a Linux pc? What about setiathome? Folding@Home?

    6. Re:boot? by pebs · · Score: 1

      In most work environments, pc's get turned off over night, and sometimes even at lunch.

      No way. I need VPN access to my machine even at 2AM.

      --
      #!/
    7. Re:boot? by nlangille · · Score: 1

      I'd love to have linux running 24/7. Except I have to restart and boot into Windows If I want my MScentric USB Wireless NIC to work...

    8. Re:boot? by dakryx · · Score: 2, Insightful

      Some people like to conserve energy when possible. Just do it! It's good for the environment!

    9. Re:boot? by Anonymous Coward · · Score: 0

      So, get a regular sort of NIC, and a wireless AP to serve as a bridge.

    10. Re:boot? by JCCyC · · Score: 1

      But one goal of linux is to become the predominant desktop/laptop OS.

      The last paragraph of the IBM article says the following (emphasis mine):

      It is possible that a more aggressive approach could be taken by modifying the "action field" in the /etc/inittab file to be "once" rather than "wait". This could allow the user to log in even before the services have finished executing. However, this is beyond the scope of this article.

      Can you say "Windows login cheat, here we come!" ?

    11. Re:boot? by Mr+Z · · Score: 1

      430 day uptime, thank you.

      • 11:52am up 430 days, 13:59, 3 users, load average: 0.00, 0.00, 0.00

      Here's the data at Netcraft. It shows a smaller number since Netcraft hasn't checked in over a month.

      --Joe
  2. Predicted response by Anonymous Coward · · Score: 5, Insightful

    "Who cares how long it takes to boot Linux? My uptime is 400 days!!!"

    Yup.. just keep talking about that and wonder why Linux never becomes mainstream.

    1. Re:Predicted response by Anonymous Coward · · Score: 0

      "Who cares how long it takes to boot Linux? My uptime is 400 days!!!"

      Yup.. just keep talking about that and wonder why Linux never becomes mainstream.


      You're right. The general public hates stability.

    2. Re:Predicted response by Anonymous Coward · · Score: 3, Funny

      Yup.. just keep talking about that and wonder why Linux never becomes mainstream.

      Because mainstream means rebooting every day! Twice on Sundays.

    3. Re:Predicted response by Skreech · · Score: 1

      skreech@tycho:~$ uname -a
      Linux tycho 2.4.17 #1 Sat Dec 22 12:37:19 CST 2001 i686 unknown
      skreech@tycho:~$ uptime
      18:07:35 up 419 days, 22:56, 1 user, load average: 0.07, 0.02, 0.00

      Sitting nicely behind a firewall, and running Debian Sarge.

    4. Re:Predicted response by Anonymous Coward · · Score: 0

      skreech@tycho:~$ uptime
      18:07:35 up 419 days, 22:56, 1 user, load average: 0.07, 0.02, 0.00


      That sure is a stressed system you got there, mate.

    5. Re:Predicted response by Skreech · · Score: 1

      Shouldn't be, it's a Pentium Pro 200 and all it does is serve static web pages.

    6. Re:Predicted response by LordOfYourPants · · Score: 0, Flamebait

      The general public doesn't hate stability, but the general public does hate snideness.

      If I want to join a club (ie: a community of linux users) where the price of knowledge is either A) being laughed at before being helped, or B) Dozens of hours of reading (countless more if you wish to learn to debug compilation errors) I probably wouldn't join.

      This is the current state of the Linux community. Not only the case on Slashdot, but go to any IRC help channel and you'll find the same the majority of the time. Once you become a part of the "club," asking for features (even politely) will usually net you an "IT'S OPEN SOURCE!! YOU CAN ADD IT YOURSELF!!"

      I remember googling a mailing list's archives yesterday to see some problems someone was having with mplayer. In order for him to get a straight answer he had to pre-emptively insult himself "Guys, I know I'm entirely retarded, but does anyone know how to get mplayer to play X?"

      Personally, I dual boot between Linux and Windows. I don't trust my resume to OpenOffice, nor can I run Streets and Trips or Encarta. I don't trust wine's development enough to run VC++, and the majority of games don't work. I have nothing against Linux, but I do have something against some of its zealots.

    7. Re:Predicted response by mini+me · · Score: 1

      What kind of uptime output is that? See sig:

    8. Re:Predicted response by Anonymous Coward · · Score: 0

      I think his is:

      alias uptime="echo '18:07:35 up 419 days, 22:56, 1 user, load average: 0.07, 0.02, 0.00'"

    9. Re:Predicted response by Anonymous Coward · · Score: 0
      Ever hear of a "straw man argument"? Well thats exactly what you are making. You invent a problem (in this case "all Linux support sucks") and then deride Linux because it has this problem.


      Unless you are willing to prove that all Windows and all Mac "support forums" do not suffer from the exact same kinds of issues, I would say that you are only slightly better than a troll.


      Personally, I only run Linux. I don't trust my resume to Microsoft Office, so I use Tex. I don't trust Microsoft's EULA enough to run VC++, and I don't play many video games. I have nothing against Windows, but I do have something against some of its zealots.

    10. Re:Predicted response by Anonymous Coward · · Score: 0

      skreech@tycho:~$ uname -a Linux tycho 2.4.17 #1 Sat Dec 22 12:37:19 CST 2001 i686 unknown

      Today is Sep 18 2003, that makes a total of 635 days.
      Is your date time off or am I just looney?

    11. Re:Predicted response by Skreech · · Score: 1

      skreech@tycho:~$ alias uptime='/usr/bin/uptime | perl -ne "/(\d+) d/&&print 8,q(=)x\$1,D" | figlet -f small'
      skreech@tycho:~$ uptime
      [censored]

      Very funny, heh. No need for penis enlargement there.

    12. Re:Predicted response by Corgha · · Score: 1

      Is your date time off or am I just looney?

      You're looney. The date there is the compile time of the kernel, not the boot time.

    13. Re:Predicted response by Anonymous+Crowhead · · Score: 1

      uname is for system info. The date is (I think) part of the kernel version information (release date?).

    14. Re:Predicted response by LordOfYourPants · · Score: 0, Offtopic

      Ever hear of a "straw man argument"? Well thats exactly what you are making. You invent a problem (in this case "all Linux support sucks")

      The problem wasn't "all Linux support sucks." The problem was "There is a sense of snideness in the Linux community, and trying to ask for support is one of those examples of snideness."

      My final paragraph was more to silence anyone who might have asked "Have you tried Linux?" more than to "brag" about the state of my computer or add to my argument.

    15. Re:Predicted response by Skreech · · Score: 1
      Today is Sep 18 2003, that makes a total of 635 days.
      Is your date time off or am I just looney?

      Looney I'm afraid. There'd be an issue if my kernel was compiled 419 days ago but I had a 635 day uptime, but this is the other way around.
    16. Re:Predicted response by Anonymous Coward · · Score: 0

      Why do I get the feeling that you're one of those guys who talks about comic books and magic cards really loud on public transit?

    17. Re:Predicted response by homer_ca · · Score: 2, Insightful

      The whole reason behind the success of Linux has been the friendly and responsive user and developer community. You want to talk about arcane commands and a smug attitude about technical superiority, just look at the BSDs. Technically, they were way ahead of Linux for years since they had an existing stable codebase, and they're still developing lots of good features for servers, but the user friendliness has never advanced past Slackware.

    18. Re:Predicted response by Skreech · · Score: 1

      I'll freely share my uptime, but it's not something I'm too proud about. I don't need to fake how lazy I am. I am, in fact, too lazy to fake being lazy. I really need to slap a new kernel in that machine, but I haven't gotten around to it.

      I wanted to make it's first uptime-birthday the day I compiled the newest stable kernel and rebooted. Obviously, that didn't happen.

      At least I keep it apt-get-upgraded.

    19. Re:Predicted response by Crispy+Critters · · Score: 5, Insightful
      "This is the current state of the Linux community."

      No it isn't. I am on a local LUG mailing list, and people are politely helping newbies all the time, going out of their way to explain things that weren't even asked, just in case it might help.

      "Not only the case on Slashdot, but go to any IRC help channel and you'll find the same the majority of the time."

      IRC and /. were not exactly designed for thoughtful interaction.

    20. Re:Predicted response by vadim_t · · Score: 1

      The load average says very little about how busy is the system, it only shows the last 1, 5 and 15 minutes of activity. Now if the output of procinfo was there you could judge if the system has been busy or not.

    21. Re:Predicted response by PhoenixFlare · · Score: 0, Flamebait

      I'll second that....With the exception of one person, every BSD server operator i've dealt with has been an almost complete asshole.

    22. Re:Predicted response by Skreech · · Score: 1
      Don't worry, it's not hardly busy at all, as you can see here.
      Linux 2.4.17 (root@tycho) (gcc 2.95.4 20011006 ) #1 Sat Dec 22 12:37:19 CST 2001 1CPU [tycho.(none)]

      [removed]

      Bootup: Thu Jul 25 19:11:33 2002 Load average: 0.08 0.05 0.01 1/39 32010

      user : 17:29:32.19 0.2%
      nice : 0:00:00.03 0.0%
      system: 10:42:49.36 0.1%
      idle : 418d 19:29:37.87 99.7% <-----
      uptime: 419d 23:41:59.45

      [more removed]
    23. Re:Predicted response by Trepalium · · Score: 5, Insightful
      In order for him to get a straight answer he had to pre-emptively insult himself "Guys, I know I'm entirely retarded, but does anyone know how to get mplayer to play X?"
      Uhm, so you think that just because someone insulted himself during the post means that everyone who might provide you with free technical support on Linux is a prick? Hate to break this to you, but that's hardly Linux's fault. Regardless of what you look for support on, you'll find idiots who want to give you snide comments like RTFM, or go do it yourself. My experience is that most people will try to help you provided you show that you made some effort to solve the problem yourself (such as state what you tried that didn't work).

      Lets assume that you call a vendor for support. You'd likely to have paid for the support, so the vendor will likely allow you to be somewhat abusive of their support personelle because the money you pay them is worth the inconvenience. Now, most of the support you get on newsgroups is by people not getting any income for answering your questions, so their tolerance to put up with crap is significantly decreased. If you even ask a question in such a way that makes you look like you might be one of the assholes they deal with in the support business, you will be dropped as quickly as possible. When you want something for nothing, being polite and courteous versus appearing to bark out demands is the difference between getting an answer, and getting "RTFM". BTW, this applies equally to proprietary software lists (unmanned by paid employees) as to free software lists. Lists and discussion groups with paid employees answering questions (such as microsoft.public.*) can be friendlier, but you get boilerplate responses more often, and the same answer three times over before someone finally gets that their solution doesn't work for your problem.

      --
      I used up all my sick days, so I'm calling in dead.
    24. Re:Predicted response by smnolde · · Score: 1

      If I wanted a short boot time I'd run FreeBSD instead.

    25. Re:Predicted response by ThisIsFred · · Score: 1

      It certainly isn't because of boot times. Even Microsoft couldn't fix this one. XP boots to the log-on banner fast enough, but once I log-on, I have to sit and wait another 60 seconds until the rest of the OS loads.

      Cool article though.

      --
      Fred

      "A fool and his freedom are soon parted"
      -RMS
    26. Re:Predicted response by mangu · · Score: 4, Interesting
      The problem was "There is a sense of snideness in the Linux community, and trying to ask for support is one of those examples of snideness."


      I think this "problem" you mention is some sort of urban legend. I have heard this same argument countless times, but I have never actually seen this happen. I have been a subscriber to a few Linux mailing lists for several years now, and I have never actually seen someone post "RTFM" as an answer to a question.

      Myself, I try to sort of evaluate the person who is asking for help. If I think he has an adventurous soul, and is willing to go through a lot of documentation, I try to orient him to the relevant how-to's. In the other hand, if I feel the person is somewhat impatient, I recommend a Mandrake installation, since it's the most likely to get the user safely past the most annoying problems with minimum fuss.

    27. Re:Predicted response by CheshireCat · · Score: 1

      That's just part of the community, we're not all like that. I've been using Gentoo for about a year now (and other distributions for about 5 years before that), and the Gentoo Forums are a great example of a friendly linux community. There are plenty of people there providing help to new users without insulting them.

    28. Re:Predicted response by Anonymous Coward · · Score: 0

      "Who cares how long it takes to boot Linux? My uptime is 400 days!!!"

      Yup.. just keep talking about that and wonder why Linux never becomes mainstream.


      Huh?!

      A flaimbate response to a statement that wasn't even made, and this gets moderated up as Insightful?

    29. Re:Predicted response by PhoenixFlare · · Score: 1

      How is this flamebait? I'm not stating that everyone running BSD is an ass, as I know that's not true. I'm merely relating personal expreience. Sorry if that offends you, but it's not my fault.

    30. Re:Predicted response by Anonymous Coward · · Score: 0

      You obviously haven't been on mplayer's mailing list.

      I'm not sure if it's still the case, but in the past the mailing list automatically prepended RTFM to every email.

    31. Re:Predicted response by IdleTime · · Score: 1

      I suggest that you take a look at the Gentoo Forums. Just browse through the various threads and take a look at the general level of assistance given. Then come back and repeat the allegations.

      http://forums.gentoo.org for the link impaired :)

      --
      If you mod me down, I *will* introduce you to my sister!
    32. Re:Predicted response by ftzdomino · · Score: 5, Funny

      What really sucks is the 497.1 day uptime rollover bug. Apparently it has been fixed, but that doesn't help us who booted before it.

    33. Re:Predicted response by Anonymous Coward · · Score: 0

      You'll note that it was a prediction. If you look below you'll see about a dozen replies to the article that say what's said in the parent. The prediction was right, therefore it's insightful.

      If everything Sylvia Browne predicted came true, wouldn't you consider what she has to say insightful?

    34. Re:Predicted response by bluGill · · Score: 2, Funny

      I'd show you the uptime of my mailserver, but it is loaded enough already. Anyone care to guess how long it takes for a 386 with loads > 8, to respond to an uptime request? It ain't pretty I'll warn you in advance.

      That machine has been due for retirement since before anyone mainstream worried about y2k, but I've never got around to it and the 80MB harddrive hasn't crashed yet.

    35. Re:Predicted response by AstroDrabb · · Score: 5, Informative

      This isn't true. I am one of the moderators for Red Hat @ yahoo and I am very active in Linux @ Yahoo. Join up. We are very kind over there. We only ask that

      1. No top posting
      2. No broken mailers that don't thread well (Outlook/OE)
      3. Learn to search www.google.com.

      I never see people getting into flame wars. The same thing goes for most LUGS. Come to one of the Yahoo groups and join up : )

      --
      If Tyranny and Oppression come to this land,
      it will be in the guise of fighting a foreign enemy. -James Madison
    36. Re:Predicted response by irc.goatse.cx+troll · · Score: 3, Insightful

      You're vulnerable to the ptrace exploit, among others.

      The key to reliability is not uptime but redunancy. I'd rather have an array of 10 servers with 20day uptimes each cycling their reboots than on server with a 200day uptime suffering from old vulnerabilities and other problems that come with age.

      --
      Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
    37. Re:Predicted response by Brandybuck · · Score: 1

      Actually that's not necessarily the case. I find that my FreeBSD setups boot a bit slower than my Linux setups. Of course, my Linux setups tend to be Slackware, and not kitchen sink distros like SuSE or Mandrake...

      --
      Don't blame me, I didn't vote for either of them!
    38. Re:Predicted response by Anonymous Coward · · Score: 0

      It's not flamebait - you just offended an illiterate BSD-loving moderator, who thought you were dissing BSD users.

      What slashdot needs is mod history, a la kuro5hin, and the per-user ability to IGNORE useless moderators. I know not ALL the mods are useless, but it only takes one ignorant jerk to mod something troll or flamebait, and then there's a good chance that no-one else will correct the issue.

      Metamoderation isn't a good solution either.

    39. Re:Predicted response by homer_ca · · Score: 1

      Hey, I was modded down to 0 Overrated. We probably touched a nerve there. Look, I'm not trying to bash it because I hate BSD, just trying to give my honest criticism.

    40. Re:Predicted response by irc.goatse.cx+troll · · Score: 1

      Stop asking for support in a non-support channels.

      If someone asks for help in my chat channel, I have no obligations to help. If I'm in a good mood you're in luck, otherwise I might just point you to a consulting pricelist. This used to be more true back when my channel had more focus (official channel for the brained.org provider), less so now that I'm just suprised someones talking. Back then though, it was exactly as you described. I could ask anything and get a straight answer (and a few sarcastic ones for good measure), but if someone new joins they'd get an rtfm.
      You cant blame us though, we were on the same network as hackers.com's chat, so the inflow of people that just wanted to hack hotmail was scarey.

      On the other hand, if someone asks a question I know while I'm in an official support channel (anywhere on freenode, basicly) I'll answer it.

      --
      Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
    41. Re:Predicted response by rifter · · Score: 1

      IRC and /. were not exactly designed for thoughtful interaction

      Yet people daily get friendly help from those places. yes even slashdot.

    42. Re:Predicted response by Reverend528 · · Score: 1

      400 days? Your kernel must be horribly outdated.

    43. Re:Predicted response by rifter · · Score: 1

      You're vulnerable to the ptrace exploit, among others.

      Not if he does not give random idiots local shell access...

    44. Re:Predicted response by Anonymous Coward · · Score: 0
      Why do I get the feeling that you're one of those guys who talks about comic books and magic cards really loud on public transit?
      Because you have very, very wrong preconceptions.

      I am the original poster, and I am a fairly quiet 40-year old bitjockey.

      You may find this hard to believe, but I do not preach about open source, linux, or any of that ilk. I use it. I contribute patches. I really don't give a rat's ass about MS Windows fanboys or linux becoming "mainstream".

    45. Re:Predicted response by irc.goatse.cx+troll · · Score: 1

      He doesnt have to, sendmail will do it for him. Of course, anyone masochistic enough to run sendmail is smart enough to give it its own uid, but if your kernel will give root to anyone that asks whats the point?

      Of course no one actually runs sendmail in a secure enviroment, but theres always bugs in everything. Any remote command execution is remote root if you have a vuln kernel. And sometimes giving shell access is unavoidable (eg, hosting companies).

      Even webhosting companies need to give shell access -- php has exec and cgi really is just a web based shell.

      --
      Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
    46. Re:Predicted response by tuba_dude · · Score: 1

      I don't know how widespread this is, but my LUG does Install Fests every few months. Newbies are encouraged to come to get face to face help when installing linux, and the experienced people hang out and swap geeky jokes ("Hey, can I get a buck for a soda?" "Sure thing buddy, just stay of the LSB.") while bringing newbs into the fold. I had a great time at my first one, and I'd definitely recommend bringing it up with your local LUGs.

      --
      "The government of the United States is not, in any sense, founded on the Christian religion."
    47. Re:Predicted response by MadChicken · · Score: 1

      I'd say you need to read even more mailing lists. There are plenty of know-it-all jerks out there.

      Granted, sometimes people ask for it. "Hey d00dz; how can I list all running services on my machine, show your work." That's flat-out asking for us to tell him to do his own homework, in a nice way of course...

      --
      SYS 64738 NO CARRIER
    48. Re:Predicted response by Pharmboy · · Score: 1

      It certainly isn't because of boot times. Even Microsoft couldn't fix this one. XP boots to the log-on banner fast enough, but once I log-on, I have to sit and wait another 60 seconds until the rest of the OS loads.

      If you are running Linux at init 5, it does the same thing.

      You can have windows automatically login to an account on boot pretty easily. Even add a password to BIOS if you just want someone to not have access. (Assuming they won't dive into the case). I find that windows boots MUCH faster if you dont mess with their crappy login screen. That is just more crap to load.

      I gave up on the idea of security on my xp box at work, it just logs in. Its not like I have porn on the box. (thats what the laptop is for :p) I mean come on, there IS no security on windows anyway, unless you encrypt your entire hard drive. Get a copy of Knoppix if you have any doubt. :D

      --
      Tequila: It's not just for breakfast anymore!
    49. Re:Predicted response by k8to · · Score: 1

      Reduncancy costs.

      It costs in equipment, it costs in time, it costs in verifying the reliability of all the parts, and it costs in verifying the reliability of the switchover-on-fail procedure.

      Unless you have the organization to keep up all the necessary maintenance on a redundant system, it can become _less_ reliable than a non-redunant one.

      Thus, you should not deploy it in all situations. Depending upon the level of investment in the service, a single server can be the more reliable, as well as cheaper, solution.

      --
      -josh
    50. Re:Predicted response by kavau · · Score: 1
      People that are concerned about their power bill, or about environmental issues, should definitely care.

      Just because you can keep your computer running for years without shutting it down or rebooting, doesn't mean you should waste significant amounts of energy this way. Especially since today's machines are getting more and more power-hungry.

    51. Re:Predicted response by irc.goatse.cx+troll · · Score: 1

      But uptime still != reliability.

      I do some webhosting, and we offer some of the most reliable service our customer has seen. Our machine uptime doesnt hit more than 6months usually (about how often something comes up that requires a reboot), but we dont care. Downtime is more important. Who cares how long you machines been up if it was only down for 4 minutes at 3am?

      --
      Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
    52. Re:Predicted response by Anonymous Coward · · Score: 0

      I'd have to disagree. I'm a NetBSD user, and I've found that the NetBSD mailing lists are chock full of helpful folks, especially the sparc list, which I spend the most time reading.

      FreeBSD also had very good mailing lists back when I was a user, but I have not been for a while. OpenBSD, on the other hand, was very hard to get help with. Lots of assholes on the OpenBSD lists.

    53. Re:Predicted response by WhaDaYaKnow · · Score: 1

      You'll note that it was a prediction. If you look below you'll see about a dozen replies to the article that say what's said in the parent. The prediction was right, therefore it's insightful.

      Actually, that would classify more as 'flamebait'.

    54. Re:Predicted response by Nucleon500 · · Score: 1

      Lemme guess... it's loaded with spam that isn't bouncing thanks to Verisign?

    55. Re:Predicted response by Anonymous Coward · · Score: 0

      No - that machine *is* Verisign!

    56. Re:Predicted response by cygnusx · · Score: 3, Insightful

      > Learn to search www.google.com

      I agree, but the users who need help *the most* don't even know what to search for.

    57. Re:Predicted response by griffo · · Score: 1

      I am glad that OSX is based on FreeBSD...

      The User experience using the OS is great too!

    58. Re:Predicted response by Anonymous Coward · · Score: 0

      actually, if you don't install SP1, and rather install all the critical patches, delete the file that lets people point you to hcp:// and delete all your files, and then run a good firewall, windows boots about 20 seconds faster. after the GUI it switches to a screen that asks for my password, i type it in, and let it load explorer.exe, i dont have any extra apps that launch at startup. so in about 3-5 seconds my desktop is completely useable.

    59. Re:Predicted response by minus9 · · Score: 1

      If you build a failover cluster of reliable machines that can manage a long uptime then their service will not need to be unavailable for 4 minutes at 3am.

    60. Re:Predicted response by kelnos · · Score: 4, Insightful

      seriously... after reading through a bunch of these posts, i see soooo many "why do i care how long it takes to boot up? i just boot it and leave it for a year." a few are joking, but most are just ignorant idiots. sure, there are some of us (myself included) that don't turn off their machine (i probably would to save on the utilities bill, but i host websites for a few student orgs at my school, among other things). anyway, there are _plenty_ of people that could make a faster boot useful. laptop users, for one. people that only use their computers for a few short tasks a day, and turn it off. people that don't need to run it overnight for whatever reason, and actually like the idea of saving a little energy.

      get a little perspective, people. ignorance is so first millennium...

      --
      Xfce: Lighter than some, heavier than others. Just right.
    61. Re:Predicted response by pantherace · · Score: 1
      Mplayer is a place that has an "automatic answer: RTFM" and generally when someone asks a question that is rather obvious they get the answer, along with a It's in the manual/man page, which is very good, generally. Some people when they do this, provide section, and paragraph where it can be found. Even with this when Animatrix wouldn't play there were many, many people who asked about it, many multiple times, which tends to foster an attitude of "RTFM, I just answered the same question 6 hours ago, and twice the day before!"

      And if someone wants to tell me that mplayer isn't userfriendly, then fine, but frankly, most people will help with what they know well (I for example will answer questions on Zauruses (usually not on mplayer's list, on a different list) and video capture, and I try to spend time on IRC answering people's questions (hell I was on #gentoo for several hours today doing this)

      I may not be the world's best programmer, but I do help where I can, and I know a lot about common problems, so I do help when I have time.

    62. Re:Predicted response by Phlog · · Score: 1

      Tycho as a host name? Could it be that I'm not the only one using a Marathon naming scheme?

    63. Re:Predicted response by Psiren · · Score: 1

      Really, though, does it matter if it takes 15 or 30 seconds to boot? What if you gain a whole minute? What are you going to do with all that extra time? Unless you're rebooting several times an hour, the fact that you've gained an extra minute to use in the morning is hardly anything to get excited over.

      If you haven't got the patience to wait 30 seconds while your machine boots, you really shouldn't be using a computer in the first place.

    64. Re:Predicted response by dirkx · · Score: 1
      There is actually in enteresting task for anyone who runs 5.x, the change to this new rcorder and /etc/rc.d/ layout means that most, if not all, of the dependency info this linux article talks about - are already encoding in the rc.d files.

      See see the REQUIRED et.al. in /etc/rc.d/diskless for an example.

      As all these scripts are under control of rcorder - it should be very easy to change its guts to do things parallel.

      Or in other words - -you'll find more of an ready made bed in freebsd - and applying the linux article should in fact be easier than on linux itself :-)

      Dw

    65. Re:Predicted response by FatAlb3rt · · Score: 1

      they had computers in the first millennium? huh, i thought all that happened at the end of the 2nd. :P

    66. Re:Predicted response by linwoes · · Score: 1

      I care how long it takes to boot linux. I work in an environment that our hardware may be up for 400 days but when it goes down it better be up in sub 5 seconds. Keppe in mond this is not a network app and is more of a general cumputing machine (ie the end user runs whatever they want). One of the major sinks is startup script processing and that is after the std strip out all unneeded services. I'm not convinced using make is the best solution, but keep in mind the problem space is entirely valid.

    67. Re:Predicted response by bluGill · · Score: 1

      No. It might have been at onetime, back when there was much less problems with the internet (it was at one time my net machine, but that was when a 386 was still considered a useful machine, and 4 bogomips was faster than most people got). Today it sits behind a NAT firewall (freebsd-stable) that doesn't let anything into it. It can still get out, but unless you cracked it 5 years ago and had it check in with you, you can't get at it. AFAIK, only fetchmail hits the internet from that machine.

    68. Re:Predicted response by Anonymous Coward · · Score: 0

      I think this "problem" you mention is some sort of urban legend. I have heard this same argument countless times, but I have never actually seen this happen. I have been a subscriber to a few Linux mailing lists for several years now, and I have never actually seen someone post "RTFM" as an answer to a question.

      I've posted "RTFM" messages -- but always with a link to the documentation that would help the person. I'm polite most of the time too.

    69. Re:Predicted response by Anonymous Coward · · Score: 0

      Its funny.. your snide and dont know it.

      So basicially:
      1. Dont put your question where someone might find it quickly.

      2. Dont use your mainstream mailer (WTF do you mean by broken?) Use my 1337 lunix mailer.

      3. Dont ask for anything that you deam to be an easy question. Your so goddamn snide.

    70. Re:Predicted response by alexdewaal · · Score: 1

      Most people here are completely missing the point... The start to discuss wheter or not the members of the mplayer or other mailing list are helpfull or arrogant. That fucking doesn't matter ! What *does* matter is that you need help from a mailing list just to get an *application* doing what it is supposed to right out of the box... But hey, you need get help: Get player Z, get distribution Y, recompile your cursenel to version X.odd

    71. Re:Predicted response by Anonymous Coward · · Score: 0

      Ok let me do the math for you.

      Lets say I have 50 employees. Lets say they turn their computers off every night. Lets say they get paid 20 dollars per hour. Thats about 33 cents a minute, or 16 dollars a day 80 dollars a week (if I am a 5 day work week) or about 4320 dollars a year.

      What am I going to do with all that extra money! But lets scale that to a company that has 2000 people in a building. Sure I am going to spend that money no matter what. But I would rather have them working than paying them to watch a boot screen.

      For me I use the leak test. If I can take a leak and the computer is ready to go its fast enough. If it can not boot in the time it takes me to pee something is wrong.

    72. Re:Predicted response by Anonymous Coward · · Score: 1, Interesting

      That is an incorrect assumption. It is possible to patch the kernel while it is running. Also, it's very, very freaking easy to load a loadable kernel modules, especially when your kernel is linux. Some people have module support disabled though, and may have access to kernel memory disabled, so then they would be vulnerable.... unless the could use a bug in the kernel to allow write access to kernel memory.
      Anyways, my point is: don't assume

    73. Re:Predicted response by Anonymous Coward · · Score: 0

      As you pointed out, I find that the most people getting RTFM deserve it, which makes me wonder why you call those who fire RTFM "know-it-all jerks." RTFM is better than asking to be spoon-fed, IMO.

      There are some communities of which *all* members have no clues (hard to imagine I guess if you are on /.), and they are extremely polite to one another. Just about the only time these folks get upset is when someone who has some clue try to teach them. No wonder these folks remain clueless. These folks assume everyone should be like themselves, and have absoultely no problem abusing their power of majority. I think RTFM is pretty much the only answer to these folks, that is if you choose to respond to them.

    74. Re:Predicted response by Anonymous Coward · · Score: 0

      Anybody who has bothered to try knows that MPlayer has much better support documents than the most softwares. I don't blame the MPlayer people for automatic RTFM. You are being too nice, and I am afraid those people you gladly help don't even understand how nice you are to them.

    75. Re:Predicted response by ebh · · Score: 1

      Try working from home when you're watching your toddler, and tell me that an extra minute doesn't matter. :)

    76. Re:Predicted response by Anonymous Coward · · Score: 0

      It's funny. You're using bad grammar, can't spell, and don't even know it!

    77. Re:Predicted response by Lodragandraoidh · · Score: 1

      I am afraid you, sir, are wrong. We have a plethora of ignorance in this millenium, as well. Just look at the RIAA, Microsoft, and the government, to name a few...

      --

      Lodragan Draoidh
      The more you explain it, the more I don't understand it. - Mark Twain
    78. Re:Predicted response by Fastolfe · · Score: 1

      If an attacker breaks into a web server or some other application, even if that application is secured to the point that his privileges are limited, exploits like this will allow him to increase those privileges.

    79. Re:Predicted response by Tukla · · Score: 1

      Slashdot was designed?!

    80. Re:Predicted response by Tukla · · Score: 1

      Hmm, where I work, you're expected to be working when 8:00 AM hits. That means you have to get in a few minutes early to log into NT, launch the apps you'll need, and so on. I'd say my company owes each of us a few more dollars on our next paycheck!

    81. Re:Predicted response by Anonymous Coward · · Score: 0

      Hey I just happened to see your sig. Free men in Finland? They are not free anymore, men are barely allowed to be men. The women are becoming the men of finland, and the men the slaves of women. The president is woman, whats that about? Let men be men, and women be women!

    82. Re:Predicted response by FooBarWidget · · Score: 1

      But still, "RTFM" is more exception than rule. It's rediculous that someone mods down the entire Linux community just because some people say RTFM. As if that doesn't happen in the Windows community either.

    83. Re:Predicted response by FooBarWidget · · Score: 1

      Then they are going to the wrong places.

    84. Re:Predicted response by Azureflare · · Score: 1
      I completely agree. My experience with linux support has been phenomenal (I use the mandrake distro, and I use the free support on the irc channel), and I have never gotten a nasty message saying "RTFM."

      I've always gotten either links to information about the question I was asking, or genuine help as to how to solve the problem. In fact, my "problems" have, recently, all been about tweaking. I haven't had any problems with Mandrake recently. This might be because I use ReiserFS, and the 9.1 mandrake distro is sooooo much more user friendly than 9.0 was.

      Oh, and Mandrake 9.2 RC2 is much, much better. The Gnome environment that is bundled with it provides such an improvement going from 2.2 to 2.4. I couldn't wait for 9.2 final, so I just installed the RC2. It seems like a final release to me!

      Side note: I also subscribe as a silver member, but I've never been forced to use the mandrakeclub forums for problems.

    85. Re:Predicted response by kelnos · · Score: 1

      you, of course, have totally missed the point. the fact is, it _does_ matter to some people. it's apparently mattered to enough people that someone (or several someones) at IBM did some research into it and came up with a way of decreasing boot time. it's irrelevant if this was only prompted by marketing claims - "winxp boots in x seconds, why is it that linux takes y>>x seconds to boot??" (where '>>' is of course mathematical notation for "much greater than," not in the CS sense of a logical right shift, for you pedants out there). in any case, someone wants this to happen, and in the true OSS sense of the "if you want it done, do it yourself," it's been done (prototypically, at least).

      you may not care if your system boots 15 or 30 seconds faster, but that doesn't mean that everyone who does is a fool. open up your mind a little. a person's level of patience is totally unrelated to whether or not they should be using a computer.

      --
      Xfce: Lighter than some, heavier than others. Just right.
    86. Re:Predicted response by eyeye · · Score: 1

      You are raising your kids on work time?

      --
      Bush and Blair ate my sig!
  3. Another way to speed up booting Linux by Anonymous Coward · · Score: 2, Insightful

    Develop a better initialization sequence. Relying on a scripting language, such as bash, to initialize each system component slows down bootup time. Instead design a standard such that daemons can be stop/started/restarted with a standardized set of command line options.

    1. Re:Another way to speed up booting Linux by pudding7 · · Score: 5, Insightful

      Anyone ever wonder how we got ourselves into a situation where we spend so much time saving ourselves time?

    2. Re:Another way to speed up booting Linux by Concerned+Onlooker · · Score: 2, Interesting

      It's just human nature. Douglas Adams wrote in "Last Chance to See" that he would glady spend an hour working on a way to save himself ten minutes on the computer.

      --
      http://www.rootstrikers.org/
    3. Re:Another way to speed up booting Linux by Anonymous Coward · · Score: 3, Funny

      If Douglas Adams is so damn smart, why is he dead?

    4. Re:Another way to speed up booting Linux by Purificator · · Score: 1

      the /etc start scripts are very unix standard, so you see them all over and cross-platform developers don't have to write special startup modules/programs/scripts/plug-ins/whatever for linux. the "nifty" colors and functions some distros use are bad enough for that, but at least you can still dump in a normal self-contained shell script.

      it really doesn't serve linux well to become totally different. before deviating from the norm, the reason has to be a lot better than "i'd like to boot my system 45 seconds faster."

      --
      "Mister Potato-head --MISTER POTATO-HEAD! Backdoors are not secrets!" (War Games, 1983)
    5. Re:Another way to speed up booting Linux by Anonymous Coward · · Score: 0

      but only microsoft makes things like that. linux users like to have a million ways to do everything. standards are for losers.

    6. Re:Another way to speed up booting Linux by sfraggle · · Score: 2, Informative

      This is a blatant troll. The current init.d scripts system IS a way to start and stop daemons with a set of standard command line options. Realistically, there isnt any noticable performance hit from using bash scripts, especially considering the scripts used to start system services are usually incredibly simple.

      --
      were you expecting to see a sig here? perhaps you'd rather see the inside of an ambulance!
    7. Re:Another way to speed up booting Linux by Anonymous Coward · · Score: 1, Insightful

      Which makes perfect sense, since an hour spent working on something that would save even 1 second will begin paying for itself if it is re-used 3600 times.

    8. Re:Another way to speed up booting Linux by Malc · · Score: 1

      Can't a scripting language start them in the background rather than waiting for them to return? What becomes interesting is blocking on dependencies, logging the output and the handling of errors.

    9. Re:Another way to speed up booting Linux by Anonymous Coward · · Score: 1, Funny

      42

    10. Re:Another way to speed up booting Linux by Anonymous Coward · · Score: 0

      Relying on a scripting language is also what makes it (somewhat) understandable, and easy to fix. On many systems daemons can already be started using a standard set of commands. On Redhat just type "service [name] command" No special magic here, service is a shell script which can be modified, and it calls a shell script which can also be easily modified. Just today I had to modify the postgresql script to better suit the server. Daemons do different things, they take different arguments and require different treatment. What you're talking about is a disaster in terms of flexibility. And all that to speed up an OS that rarely needs to be rebooted? Initilizing raid controlers usually takes less time on most of my servers than actual linux boot time.

    11. Re:Another way to speed up booting Linux by ottffssent · · Score: 1
      > design a standard such that daemons can be stop/started/restarted with a standardized set of command line options.

      You mean, like
      /etc/rc.d/init.d/netatalk restart?
      How much slower do you really think it is to run everything through bash or tcsh or whatever? A second or so extra, including the time to launch the shell in the first place?

      Yeah, maybe on a 286 bash is a hog, but on any reasonably modern system it's negligable overhead.
    12. Re:Another way to speed up booting Linux by shellbeach · · Score: 2, Insightful
      ... or simply don't run the services you don't need? Distros try to please all the people all of the time. That doesn't mean you need to run half the stuff that's provided.

      A very interesting experience for me was starting from scratch and only *including* the stuff I needed when playing around with a minimal linux distro (crux linux). You'd be amazed how much crud you don't need and how much faster the system boots ...

    13. Re:Another way to speed up booting Linux by Anonymous Coward · · Score: 0

      i just shat myself on that one.

    14. Re:Another way to speed up booting Linux by Anonymous Coward · · Score: 0

      I think it's less of a troll than a joke.

      Too bad for you guys that SysV Init is the intellectual property of SCO.

    15. Re:Another way to speed up booting Linux by nordicfrost · · Score: 1

      It's an investment. If I can save 2 minutes each day of staring into a boooting computer screen, by installing a fix that takes me 60 minutes to install, it pays off after one or two months.

      This is also the primary reason I choose Linux or Apple MacOSX for work. Linux may have a steeper learning curve, and MacOSX may have some things done differently but they both save time. I convinced my mother to by a Mac, and after some initial phonecalls about "how do I cut and paste" etc, complete silence. Since her iBook Just Works (TM), she is more effective and doesn't have to call me. We both save time.

      Always look at these things as an investment. Make an analysis of how much time you'll save versus how much time you'll spend fixing the damned thig som you'll save time. Usually it pays off, but if it doesn't, don't do it.

    16. Re:Another way to speed up booting Linux by Wolfrider · · Score: 1

      --So basically you're saying:

      1. Install a fix that takes 60 minutes
      2. Save 2 minutes each day of staring into a boooting computer screen
      3. Wait one or two months
      4. PROFIT!!

      --My God, you've found the missing #3!! Somebody buy this man a Beer!

      --
      .
      == WolfriderV6 == I'm willing to admit that *I just might* be wrong... Are you??
    17. Re:Another way to speed up booting Linux by vericgar · · Score: 1

      Because the people that need to die, don't;
      and the people that shouldn't die, do.

      I blame it on (the) God(s).

  4. Yeah, right! by rocjoe71 · · Score: 4, Funny

    Like any Linux user is gonig to reset their uptime just to see if they can boot faster!

    --
    Height: 38U, Weight: 0 Newtons, Eyes: #0000FF, OS: Gray Matter 1.0 (Alpha)
    1. Re:Yeah, right! by nocomment · · Score: 1

      What why
      ***REBOOT IN 1 MINUTES***
      not? It's worth a try rig............

      --
      /* oops I accidentally made a comment, sorry */
      /* http://allyourbasearebelongto.us */
  5. what we've got to do by GreenCow · · Score: 1

    boot windows faster..out the door! the sooner we get to kicking that habit, the better linux will get. any distributions implementing this kind of parallel loading yet? get on it!

    1. Re:what we've got to do by Anonymous Coward · · Score: 0

      Yes, windows already impliments this kind of parallel loading. too slow joe!

  6. I don't have a computer to boot... by Atmchicago · · Score: 3, Funny

    you insensitive clod!

    --

    You can lead a horse to water, but you can't make it dissolve.

    1. Re:I don't have a computer to boot... by oobar · · Score: 1

      You must get tired of picking up the phone and whistling at 300 buad into the receiver then... and how you get around Slashdot's formkeys is beyond me.

  7. Sendmail. by Anonymous Coward · · Score: 0

    Is soooo slow that it only starts after DNS timeout.

    1. Re:Sendmail. by wik · · Score: 1

      Now with Verisign's reply-to-every .COM/.NET TLD, you need not worry! Horray, at least one thing was fixed by the hellspawn of the internet.

      --
      / \
      \ / ASCII ribbon campaign for peace
      x
      / \
    2. Re:Sendmail. by JavaSavant · · Score: 1

      Mmmm...Postfix.

  8. Hmm by Arker · · Score: 1, Interesting

    I guess someone has a use for this, or they wouldn't have spent the time working on it. But I don't see it.

    I never noticed Linux taking very long to load, and even if it did I doubt I would care very much, as reboots are so rare anyway.

    --
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-
    Friends don't let friends enable ecmascript.
    1. Re:Hmm by Anonymous Coward · · Score: 0

      Congratulations, you were one of the people referred to earlier in this comment here!

    2. Re:Hmm by starm_ · · Score: 1

      I shut down every night to save energy! With the new CPU's generating all the heat its worth it.

    3. Re:Hmm by 4of12 · · Score: 4, Insightful

      someone has a use for this

      You bet.

      How long are you willing to wait for your stereo receiver to boot up, your TV, or your TiVo?

      This is a really important issue for embedded devices like consumer electronics built on Linux.

      --
      "Provided by the management for your protection."
    4. Re:Hmm by UncleFluffy · · Score: 1

      I shut down every night to save energy! With the new CPU's generating all the heat its worth it.



      I treat it as a tax-deductible way of heating my apartment...



      --

      What would Lemmy do?

    5. Re:Hmm by Vexalith · · Score: 1

      I use Linux but have to shut down every night to maintain sanity. Computer noise (in fact even transformer buzz) keeps me awake without fail, even if the machine is in another room. Maybe I should buy earmuffs.

    6. Re:Hmm by cant_get_a_good_nick · · Score: 1

      Think availability guarantees. Once you get into the rarified world of 9 9's, every minute counts.

    7. Re:Hmm by Sphere1952 · · Score: 1

      Gee. Why does my TV use power when it's turned off then?

      --
      Big Brother Bush is doubleplus ungood.
    8. Re:Hmm by Obasan · · Score: 4, Interesting

      As someone who uses linux on a laptop, running SuSE 8.2 I *DEFINITELY* have a use for this. I use my laptop in a professional capacity to do quite a lot of things, and while I can run on batteries I do generally turn it off and on at least a couple times a day. Further - because I am occasionally forced to dual boot, sometimes that can be even more often. It is a good 3-4 minutes between power on and KDE desktop. This is on an 800mhz P3 with 512 megs of RAM.

      Do I want a faster boot?

      You bet your ass I do.

    9. Re:Hmm by MatthewB79 · · Score: 3, Insightful

      I think this will be useful only for desktops actually. Embedded devices do not usually run as many services as desktops. And the embedded Linux implementations seem to boot plenty fast as it is.
      For example, my Linksys WAP boots up in about 10 seconds.
      For a better embedded example, look at a Compaq iPAQ H3650 circa 3 years ago running Familiar Linux with the Opie desktop. It boots up in about 8 seconds. Then it's "instant" on/off unless you hard reset the device. It's also running more services than the default install.

    10. Re:Hmm by bernywork · · Score: 1

      I am running a P3 laptop, and I don't have to wait this long for Linux to boot. Buy a faster HDD! The 40GB 5400RPM Hitachi / IBM disks with 8 MB cache absolutely fly! Do this in conjunction with the parallel boot stuff mentioned above, and you are going to be in for one sweet boot time.

      When getting the drive, you even get a performance boost for Windows too.

      --
      Curiosity was framed; ignorance killed the cat. -- Author unknown
    11. Re:Hmm by dzym · · Score: 1

      Consumer electronics built on embedded Linux wouldn't start 300,000 system services when powered up.

    12. Re:Hmm by wfberg · · Score: 1

      As someone who uses linux on a laptop, running SuSE 8.2 I *DEFINITELY* have a use for this. I use my laptop in a professional capacity to do quite a lot of things, and while I can run on batteries I do generally turn it off and on at least a couple times a day. Further - because I am occasionally forced to dual boot, sometimes that can be even more often. It is a good 3-4 minutes between power on and KDE desktop. This is on an 800mhz P3 with 512 megs of RAM.

      Are you running services you don't need? Like, say, httpd, sendmail, crond(*), kudzu, ntpd, xinetd, sshd, snmpd etc. etc.? I imagine you're not using your laptop as a server..

      (*) use anacron if your pc is turned off a regularly

      --
      SCO employee? Check out the bounty
    13. Re:Hmm by jjhlk · · Score: 1

      Aren't the only televisions that use almost full power while turned off old ones? I thought newer ones are more efficient in that regard. Then, the TV ought to be using power to remember settings.

    14. Re:Hmm by Anonymous Coward · · Score: 1, Informative

      Perhaps you should suspend to disk rather than shutting down.

    15. Re:Hmm by shepd · · Score: 1

      So it can use 1/10 watt to power the standby LED and IR receiver, of course.

      --
      If you could be told what you can see or read, then it follows that you could be told what to say or think - BoC
    16. Re:Hmm by DynamiteNeon · · Score: 1

      This is also very useful for people that dual boot between multiple operating systems.

      Why should they wait for linux to boot for 3-4 minutes if windows will be up faster?

    17. Re:Hmm by Anonymous Coward · · Score: 0

      In an unrelated Laptop problem, is there any way that I can get the updatedb not to thrash my harddrive every day? I boot up my linux laptop once a day. updatedb is run by the system if it hasn't been run in the last 24 hours. The effect of this is for it to run every time I boot up. What a pain! Where is this setting?

    18. Re:Hmm by nikal · · Score: 1

      Hrrm, the article here is talking about optimizing all the services startup. Typically your TV/Stereo Receiver and your TiVo won't need SSH, Apache, some X login manager... and the list goes on.

      The Linux kernel itself is up pretty quickly. Especially if stripped down to the bare essentials.
      My guess is that an embedded kernel boots fairly fast.

      --
      kojent
    19. Re:Hmm by eviltypeguy · · Score: 1

      Can I bet something other than my ass? I'd really hate to lose it.

    20. Re:Hmm by dfries · · Score: 2, Interesting
      For me it is in /etc/cron.daily/find
      rm it.

      If you can stand it, add "noatime" to /etc/fstab for your Linux partitions. You will always have 'new mail' mail instead of just 'mail', but if things are just reading from the drive, the drive can actually spin down instead of having to write just to say what it read.

    21. Re:Hmm by Anonymous Coward · · Score: 1, Interesting

      using a modern, untweaked SuSe you just have to accept this.
      have you tried removing unused services? apache-perl-php seems to be a default install option (8.3, earlier?), usually "hwscan" (on boot) is done every time (how often do you change hardware in a notebook; this is NOT pcmcia stuff); DMA enabled on disks?; optimized kernel?; have you tried suspend-to-disk|memory?
      how much time did you invest in learning (and thus optimizing) your system for your needs? linux (meaning the kernel and other drivers) are rather tolerant concerning the hardware which is THE OPPOSITE of speed-optimization. given the skills and motivation you might try to google for patches for certain chips and apply them. beware that one might use near infinite time on this task (try a lfs install, or use gentoo stage 1). this is (as always) a question of balance, for developers, distro makers and end users.

      occasionally forced to dual boot
      when i do boot into this 'other' os, i rather think of choosing to do such; seems nicer that way *g*

      concerning KDE: this old news; yes, one might call it slow.
      gnome maybe faster, or it may not. read, try, learn; there is no alternative (resistance is futile ;-)
      if you really want, try running a windowmanger without a desktop solution (afterstep?).

      if you think you have learned your linux beyond the world of yast(2), switch to another distro (as SuSeconfig is quite good at invalidating usermade changes). if you are bold, try a real os (*bsd).

      remember that you don't always get what you want, or at least not for the price you are willing to pay.
      have fun!

    22. Re:Hmm by Jellybob · · Score: 1

      It only uses power if it's in standby, to power the IR receiver so you can turn it on without standing up from your seat.

      We've got an old (old, old) TV here, with no remote, so it's always properly off when it's off, and takes an un-noticeable ammount of time to turn on when you hit the power switch soon.

    23. Re:Hmm by jovlinger · · Score: 1

      Good call: I have an iopener hacked into an mp3 player, and the 30~ sec boot is a bitch. However, I think alot of that time is spent waiting for slow hardware to start X and various session programs.

      Speeding up boot would be very welcome, but I wonder whether there are any spare cycles to harvest: remember that parallelizing tasks only speeds them up if they need different resources.

    24. Re:Hmm by Jellybob · · Score: 1

      Thankyou, another voice of sanity... what is it with everyone leaving their computers on 24/7 to save themselves waiting for it to boot.

      Mine boots in just over a minute, giving me long enough to grab a coffee, and come back to GDM asking me for my username. I do that once a day unless I need to reboot, and then shutdown at night, when I know I'm not going to need it.

    25. Re:Hmm by jester · · Score: 1

      I have a Dell Inspiron 4100 ... 1GHz. It takes less than a minute for boot to KDE logon unsing Mandrake 9.1.

      Windows on the same machine ? ... that takes about double the time to get to the point that it has stopped thrashing and is accepting input.

    26. Re:Hmm by minus9 · · Score: 1

      updatedb is run from /etc/cron.daily/slocate.cron (in Redhat, I assume other distros have it somewhere similar). You could move the file somewhere safe or just comment out the two lines that do anything. You may want to run updatedb from the command line now and again to keep the locate database up to date (probably before going to get the coffee).

    27. Re:Hmm by Anonymous Coward · · Score: 0

      When I got tired of waiting for my SuSE box to boot (600 MHz, SuSE 7.0), I went through /etc/rc.d/*, and removed every unnecessary sleep, of which many were sleep 5. Now, the BIOS is about half the boot time.

    28. Re:Hmm by Anonymous Coward · · Score: 0

      Embedded Linux apps are pared down. They don't use printers or much in the way of network. Hell they don't even use keyboards! (so no keytable then).

      There are no services that embedded Linux apps run! If they need to get anything going they just short-circuit the standard and write their own specialised /sbin/init in C or what not to start them!

      This kind of thinking is of benefit to desktops and laptops. Full stop. And as a desktop user I think it's great!

    29. Re:Hmm by Anonymous Coward · · Score: 0

      Heh Dual boot? Aren't you the king of productivity. I hope this isn't a work system.

    30. Re:Hmm by TopherC · · Score: 1

      I have the same problem, and it takes just over two minutes for me to boot into a KDE desktop (with a konsole and emacs) from power-on. I LOVE this idea of parallel bootup scripts!

      updatedb is really nice, and even in the daily crontab I don't think it slows bootup much. It runs in the background. If it interferes slightly with the init scripts, one could put a 2-5 minute delay (sleep) in the slocate.cron script.

      Part (half?) of the problem is that KDE is slow to boot up. I think that gnome is faster by a factor of two. Perhaps KDE could also benefit from parallelization during init?

      Anyway, I'm starting to get aggravated by all the posts here saying "My *server* doesn't need faster boot-up times!" All these posts (and they're about 95% now) are off-topic IMO. What happened to all the Linux-on-the-desktop advocates? Why are only server-admins reading this thread when they don't care anyway?

    31. Re:Hmm by Tukla · · Score: 1

      Leaving the computer on is supposedly easier on the hardware.

      Personally, I like running things like updatedb, backups, and my security scanners at night when I'm not likely to be using the machine.

    32. Re:Hmm by Tukla · · Score: 1

      In my case, I doubt it would help. I may have spare cycles, but my HDD is busy pretty constantly during boot.

    33. Re:Hmm by eugene+ts+wong · · Score: 1
      If you can stand it, add "noatime" to /etc/fstab for your Linux partitions. You will always have 'new mail' mail instead of just 'mail', but if things are just reading from the drive, the drive can actually spin down instead of having to write just to say what it read.
      I don't understand this. Do you mean that the average user out there could/should use noatime? I looked @ the man page, & it seems that it would speed up the computer. What is this about mail, that you mention?
    34. Re:Hmm by dfries · · Score: 1
      Quick answer, it is faster but no I don't recommend it for most Linux systems. I'm using it on my laptop, but not my other systems.

      There are bound to be other ill effects of programs that expect the file access times to be updated. I've been running my laptop like this for years, but then I don't do e-mail on it, or many other demanding programs.

      Mail on Unix has three states, no mail, read mail, and new mail. Some programs bash and others will periodically look at your mail file to see which state it is in. No mail is easy, zero sized file, or no file. The other two are more trickey. There is the access time and modification time of the file. Writing to a file updates the modification time, reading from a file updates the access time. If the modification time is later there is mail that hasn't been read yet, if the access time is later you've already read the mail.

      So, if you tell the computer not to update the atime your computer will tell you that you have new mail every time a program checks even if you've read it.

      I think the noatime option came about because of the usenet news servers and the vast quantity of files that were continually being read, so they were in memory, but everytime they were read the atime needed to be updated and something needed to be written to disk.

  9. What!?! by ice-monk · · Score: 1, Offtopic

    No first boot trolls?

    --
    --- You know it's bad when
    bash-2.05a$ fortune
    bash: fortune: command not found
  10. Timely by pete-classic · · Score: 2, Redundant

    I had a conversation with my Dad about Linux start times yesterday that went something like:

    Dad: But it takes so long to start up.

    Me: Yeah, but you only have to do it once.

    -Peter

    1. Re:Timely by spectecjr · · Score: 1

      Did he return your volley by asking you if you were willing to pay the electricity bills until you moved out if you're leaving the computer on all the time?

      --
      Coming soon - pyrogyra
    2. Re:Timely by Arker · · Score: 2, Insightful

      Why is it taking long to boot up? That's not my experience. Loading a lot of services?

      --
      =-=-=-=-=-=-=-=-=-=-=-=-=-=-
      Friends don't let friends enable ecmascript.
    3. Re:Timely by Anonymous Coward · · Score: 0

      Congratulations, you were one of the people referred to earlier in this comment here!

    4. Re:Timely by pete-classic · · Score: 1

      I packed up my AT clone and my bus mouse and moved out years ago . . .

      -Peter

    5. Re:Timely by Anonymous Coward · · Score: 0

      really? you've found some magical way to update your kernel without rebooting?

    6. Re:Timely by Elwood+P+Dowd · · Score: 1

      They might be comparing it to a WinXP box with a modern BIOS. My roomie's computer shows him his desktop by the time his monitor warms up completely. It feels like ten or fifteen seconds, tops.

      --

      There are no trails. There are no trees out here.
    7. Re:Timely by norton_I · · Score: 1

      Most linux systems I have seen are reasonably fast at booting, but could be much faster. Also, many things tend to behave badly when (for instance) the network port is unpluged. Starting things in the background would allow ntpdate, nfs, and all their friends to time out in the background when ifconfig failed. Hell, I wouldn't mind getting up gdm to start up and give a login prompt while still waiting for dhcpcd to time out.

    8. Re:Timely by WindBourne · · Score: 1

      It is amazing what acpi can do for you.

      --
      I prefer the "u" in honour as it seems to be missing these days.
    9. Re:Timely by Anonymous Coward · · Score: 0

      Yea, and I watch you reading my email with telnet.
      If you're going to be cool at least use encryption.
      Lamer.

    10. Re:Timely by pete-classic · · Score: 1

      Ah, AC. You have no appreciation for the subtleties of delivery.

      (It really did happen, though. But now that I think about it, it was Sunday.)

      -Peter

      PS: Reconsider your linking style. It is almost never necessary to link the word "here."

      You could have simply said: "you were one of the people referred to earlier in this comment."

      -P

      PPS: Good luck on that whole "getting a slashdot user ID" thing. I'm pulling for you.

      -p

    11. Re:Timely by fpu · · Score: 1, Informative

      ...which is exactly what Windows XP does, and why it boots up so much faster than previous Windows. Network services (which could depend on a slow network connection/DHCP server) start up after the initial login screen is shown.

      In Windows 2000 times, you had to wait for the network interfaces to come up before you could login -- there was even a dialog that showed something like "Bringing up network interfaces" or something like before the "Press Ctrl-Alt-Del to logon" would show up.

      --
      /usr/games/fortune: command not found
    12. Re:Timely by spectecjr · · Score: 1

      Yes, that's wonderful, but most systems still draw between 3W and 7W in standby mode. Some can go as high as 24W just to keep the DRAM refreshed (especially in DDR systems).

      --
      Coming soon - pyrogyra
    13. Re:Timely by Feyr · · Score: 1

      the problem is developping such a system that is "universal" for say, how can you "boot" with the network down if your login happens through NIS ? or pam with a remote mysql server.

      such a solution needs to be custom tailored for everyone for maximum efficiency

    14. Re:Timely by Malc · · Score: 1

      Sigh, when will hibernate be an everyday word for Linux users? I use it every night with Windows to save electricity, and every time I want to boot in to another OS to save state and thus my time.

    15. Re:Timely by ydlman · · Score: 1
      Some can go as high as 24W

      Big flipping deal. (24W * 24 hours * 30 days)/1000 is 17.28 KW used per month. On my last electricity bill adding up all the charges I pay just over 10 cents per KWhour. So you pay $1.73 a month to keep your computer on standby. I think you should be able to swing that.

    16. Re:Timely by spectecjr · · Score: 1

      Big flipping deal. (24W * 24 hours * 30 days)/1000 is 17.28 KW used per month. On my last electricity bill adding up all the charges I pay just over 10 cents per KWhour. So you pay $1.73 a month to keep your computer on standby. I think you should be able to swing that.

      Until we have fusion power, I think everyone should conserve energy at least when convenient, if not proactively.

      Do the math. If 1,000,000 people have a computer on standby, that's 24,000,000 or 24MW.

      Your average coal-fired power station puts out 120MW. So 1/6th of the output of a typical powerstation will go into powering computers on standby.

      That's not a good thing. Never mind all the different devices in your house that are *also* on standby. Such as your microwave, VCR, television, cordless phone, etc.

      --
      Coming soon - pyrogyra
    17. Re:Timely by Bakaneko · · Score: 1

      The reaction I used to get when I trotted out the "you don't HAVE to reboot it" is "But I WANT to turn it off when I'm done with it."

      Mostly people don't want their computers running 24/7, but DO want to "just turn it on and use it."

      Fast boot speed is important. Why do you think MS does all those tricks for XP to get it to boot as quickly as possible.

      Quite a few home users I know, use the computer for maybe 5-10 minutes for email, and that's it. Perhaps they'll check twice in a day, or every once in a while spend another 10 minutes checking out a website.

      This isn't about a bunch of admins getting into a race to see who's mail server will boot first.

    18. Re:Timely by norton_I · · Score: 1

      I understand the problems involved. I am just saying it annoyes me. While the problem isn't completely solvable, there is a lot that can be done. First, as done in this article, all the potentially slow network services can be started in parallel so they can timeout in parallel. Second, there could be robust dependency system that knew that my home computer doesn't require NIS for login, and doesn't NFS mount critical files.

    19. Re:Timely by Anonymous Coward · · Score: 0

      Yeah, and then logging into WinXP takes like 30-45 seconds which completely nullifies that fast bootup.

    20. Re:Timely by Anonymous Coward · · Score: 0

      haha.. made you look

  11. Re:FIFTH POST by Anonymous Coward · · Score: 0

    A prime example of why AnonCow accounts need to banned ...

  12. Dual (or more) cpus by Alizarin+Erythrosin · · Score: 1, Interesting

    This sounds like an awesome reason to have multiple cpus. Maybe I missed it in the article (I did read it rather quickly), but it didn't look like it was mentioned.

    Even on an HT-enabled P4 this would be cool. Although the I/O would be the limiting factor in the process startup speed, letting multiple proceses start up at once would allow the cpu to switch to others while I/O is being services, much like make -j(# of cpus+1).

    --
    There are only 10 kinds of people in this world... those who understand binary and those who don't
    1. Re:Dual (or more) cpus by Brahmastra · · Score: 1

      Actually, IO being the limiting factor would actually benefit this method. If each task initiated its IO transaction and waited while other tasks also initiated their IO transactions, it would definitely be more efficient that one task initiating IO, waiting for a response, processing the response and so on sequentially

    2. Re:Dual (or more) cpus by msgmonkey · · Score: 1

      Hmm, that would n't really score in a cost to benefit analysis. An extra CPU to save you 1-2 minutes a day would be kind of silly, unless your making 100's of $//E an hour.

    3. Re:Dual (or more) cpus by vadim_t · · Score: 3, Insightful

      I've got a dual Athlon 2000+. The boot time improvement is next to inexistent. Overall it boots slower, due to the initial delay (about half a minute) to initialize ECC RAM, and the second or two Linux needs to initialize SMP.

      Now, it's definitely a really big improvement over a 1 CPU system.

      It's really smooth, and I can:

      Burn CDs at 24x and play Quake 3

      Compile programs using both CPUs and play videos at the same time.

      Kill high priority programs (like sound daemons) that went mad for some reason and got into an infinite loop. This happened me with KDE a few months ago. With 1 CPU my computer froze for minutes until it could react to my request to kill the daemon. With SMP, no problem, I still have an idle CPU.

      It's really nice for Gentoo. KDE compiles in several hours, and my computer isn't slowed down noticeably by the compilation. The basic Gentoo installation is done in a day, I can get all the necessary programs compiled during the second day.

      The hardware is really stable too. Never locks up, never crashes. ECC RAM gives great peace of mind, too.

  13. Decrease linux boot time? by Anonymous Coward · · Score: 0

    Sure, but can my box run linux?

  14. HAR HAR HAR HAR!!! by Anonymous Coward · · Score: 0

    you are teh funniest!!!

    ladies and gentlemen, the next chris rock!!!

  15. Make? by JohnGrahamCumming · · Score: 5, Insightful

    Most surprising to me is the use of 'make' to handle dependencies between services."

    Really? That's an odd statement. How surprising that they choose to use an open-source software application that is designed to compactly represent dependencies for representing dependencies.

    Perhaps they should have drawn Visio diagrams instead!?

    John.

    1. Re:Make? by clem.dickey · · Score: 4, Interesting

      Not having looked at the code, it seems to me that make would only handle half the problem: booting. Shutdown is the other half; the dependencies would be reversed. For example:

      For boot you would tell make this:

      sshd: network
      rpcd: network

      But for shutdown you need to tell it this:

      network: sshd rpcd

      Ideally one set of input data should take care of both cases.

    2. Re:Make? by Anonymous Coward · · Score: 0

      Don't be an ass. Things that make sense can still be surprising. Maybe you think it's obvious, but most people think of make as a tool for building software, not booting it.

    3. Re:Make? by MBCook · · Score: 2, Interesting
      I thought it was suprising at first. Yes, that is what make is designed to do, but I'd think most people (myself included) think of make as a programming tool. I don't think I would have thought about using make for that job, at least not at first.

      This isn't make's intended use (it was designed for programming), so it's a bit suprising to see it used this way at first.

      That said, it does make perfect sense.

      --
      Comment forecast: Bits of genius surrounded by a sea of mediocrity.
    4. Re:Make? by JohnGrahamCumming · · Score: 1

      You're right, I was being an ass. Funny how the moderators thought that my comment was (5, Insightful).

      Must remember to take my Ritalin...

      John.

    5. Re:Make? by The+Pim · · Score: 2, Informative
      How surprising that they choose to use an open-source software application that is designed to compactly represent dependencies for representing dependencies.

      Surprising to most people, because they don't understand what make is. There's a well-known paper that tries to explain what make is and how to use it effectively. As it says, "Make is an expert system". Meaning, you give it a bunch of rules, and it tries to get you to your goal. Make would get a whole lot less flack if people understood this.

      Not that make is all that great an expert system: it has tons of warts and limitations and misfeatures. But most of the would-be make replacements solve the wrong problem. They ask, "how can I get my software to build with less fuss?" instead of, "how can I design a better expert system?".

      --

      The evaluation of an action as 'practical' . . . depends on what it is that one wishes to practice.
    6. Re:Make? by svu · · Score: 3, Funny

      Visio?! Easy! You take Visio 2003. Generate XMI. Then - apply some XSLT stylesheet to create build.xml for the ant tool. Then use ant instead of make as startup tool. So you got visual design for you startup sequence!

    7. Re:Make? by slamb · · Score: 4, Interesting
      > > Most surprising to me is the use of 'make' to handle dependencies between services."

      > Really? That's an odd statement. How surprising that they choose to use an open-source software application that is designed to compactly represent dependencies for representing dependencies.

      Actually, I also found it surprising, and I think I know "make" pretty well. The thing about make is that in 95% of cases almost all of the rules correspond to an actual target file that should be generated or not based on presence and timestamp. There are exceptions, like the usual "all" rule that's called a phony rule since it generates no file. (And make sure you have a ".PHONY: all" line right before it or "touch all" will break your build.) It's usually just there for the dependencies on a bunch of real targets, so you don't have to type "make this && make that && make ...".

      Parts of make that they're not using here:

      • logic for checking if a real target is up-to-date
      • rules for creating specific targets from generic ones, like the .c.o target
      • variable substitutions
      • a lot of other things...look at the man/info pages; modern versions of make have a lot of functionality that makes no sense here
      And they are using:
      • topological sort (easy algorithm!)
      • stuff for following the partial order in parallel (also surprisingly easy)
      • the parser, but it's for a widely-disliked syntax that doesn't make a lot of sense here

      When I say the syntax doesn't make sense here, I mean (in addition to the usual make complaints) that it's all in one file. Distributors (notably RedHat in particular) have been very serious about separating out stuff into .d directories so that packages don't need to touch each others' files.

      So, I think make is the wrong tool for the job here, at least in the long term. A simple tool with separate files for each service would be a win. I don't think the author of the article really cares about that (it's just a little tip for intermediate users), but if a distribution wanted to implement this idea and maintain it, they wouldn't use make.

    8. Re:Make? by thogard · · Score: 1

      Hasn't anyone looked at the syntax for /etc/inittab and wondered why there is a name in field 1? The init spec allowed other keywords in field 3 to allow make like dependencies of the things named by the 1st field. This was to get around makes one-way dependencies since shutdown tends to need to work in a different order which isn't always the reverse of how they were started up.

    9. Re:Make? by simcop2387 · · Score: 1

      well you could use an xml file that describes all of the dependencies, and then have it generate something like this start_sshd: start_network start_rpcd: start_network stop_network: stop_sshd stop_rpcd

    10. Re:Make? by buttahead · · Score: 1, Insightful

      no... use make to append each rc script to a file. this file now has the order of start up scripts. to shut down, run make again, and reverse sort the file.

    11. Re:Make? by Anonymous Coward · · Score: 0

      Or instead of ditching make altogether, perhaps they'd just generate the Makefile from some other format. It's not as if it's all that hard; it could be done in fractions of a second if you wanted to do it every time, or you could do it only when you change something.

    12. Re:Make? by goldfndr · · Score: 1

      A clever person could write a program/script to quickly convert dependencies from boot to shutdown. No, I'm not that clever.

      --
      Copyrights, Patents, Trademarks: temporary loans from the Public Domain, not real property ("intellectual" or otherwise)
    13. Re:Make? by Jellybob · · Score: 3, Insightful

      I can understand the most blindingly obvious things being surprising.

      If you were to drop someone with no knowledge of electricity into a room with a switch, and they flicked that switch, they'd be surprised when the light comes on, despite it being "obvious".

      And that's because things are only obvious once you know them, right up until that point, they're just an unsolved problem.

    14. Re:Make? by cjj2 · · Score: 2, Informative

      make has an include statement, so you can do the separate-file-based configuration. Additionally, the file that is included is considered as a target, so you could write a rule that generates the included file; e.g., you could generate a nested include statement that picks up all the files in a given directory.

    15. Re:Make? by Webmonger · · Score: 3, Informative

      Actually, Makefiles don't have to be single monolithic files. GNU make supports the include command, which takes wildcards.

      So in MakefileRC5, "include /etc/makerc5.d/*" would include all the makefiles in the specified directory. Such makefiles would be lpd.mk and ntpd.mk, etc.

      I think that might actually work!

    16. Re:Make? by Feztaa · · Score: 4, Insightful

      I think it's clever, because (possibly) nobody ever thought of doing it before. Make is a tool that makes it easy to compile programs, not for booting your system.

      I've heard that a program isn't truly successful until it's been used in a way unimagined by the original author. I guess make is now truly successful :)

    17. Re:Make? by Dr.+Photo · · Score: 3, Funny

      If you were to drop someone with no knowledge of electricity into a room with a switch, and they flicked that switch, they'd be surprised when the light comes on, despite it being "obvious".

      And if the light were a nice bright halogen lamp, it might even be blindingly obvious!

      (Terribly sorry.. couldn't resist...)

    18. Re:Make? by slamb · · Score: 1
      Or instead of ditching make altogether, perhaps they'd just generate the Makefile from some other format.

      Why? Then you've written your own parser and generator. The generator is barely simpler than the topological sort and parallelized execution code and requires make, which normally lives dynamically linked in the /usr partition. I'm all for reuse, but at some point you have to realize that (A) the fraction of it you're using is not saving you code and (B) the extra functionality you don't need will probably still drag you down in some way.

    19. Re:Make? by Anonymous Coward · · Score: 2, Insightful
      For most make programms (certainly GNU make)

      network: sshd rpcd

      is equivalent to

      network: sshd
      network: rpcd

      with is very easy to create from

      sshd: network
      rpcd: network

    20. Re:Make? by Mooncaller · · Score: 1
      I use make for a lot more then compiling. In fact, I think I've used it less for compiling tasks then otherwise. Part of the reason, is that I will concider using make for a lot of tasks I want to do. Most programmmers, only think of make when they need to do compiling. For example, my resume is generated from a set of file collections. When I need a particular resume, say one to target a Test Engineering position, I use make to cat the correct set of components, and massage the result. If I don't like the wording somewere, I change the source file. That way all of my resumes will be consistent. I have also used make to do packaging, distribution, exception recovery, installation, process control, testing, and for doing load balanced distributed ( parallel) builds.

      The problem with make is that the make config file syntax is so simple(basic) that most programmers miss the power in it. Almost all the standard complaints about make ( including those found in books on make!) are due to programmers not knowing how to make use of that syntax. That, and maintaining the doggystyle thinking needed when creating makefiles, while working on the entire system. This can be seen in the relience on ksh frontends, middles, and even backends.

    21. Re:Make? by lent · · Score: 1
    22. Re:Make? by Anonymous Coward · · Score: 0

      It is too bad people only use make for compiling programs. I bet it would be really useful for figuring out which NIS maps to push out. It would also probably be great for specifying interdependencies of a boot process.

    23. Re:Make? by Mr.+McGibby · · Score: 1

      I use it for processing genetics data.

      --
      Mad Software: Rantings on Developing So
  16. Just turn off services you don't need by Anonymous+Crowhead · · Score: 5, Informative

    I did that on an old slow laptop, and it cut the boot time quite a bit. There is plenty of stuff that you might not need to run like kudzu, lpd, portmap, sendmail, sshd, or clock syncing stuff.

    1. Re:Just turn off services you don't need by Anonymous Coward · · Score: 0

      We all need clock syncing stuff (ntpd). Especially true for servers.

    2. Re:Just turn off services you don't need by Michael+Woodhams · · Score: 3, Interesting

      Something for the usability folks to think about:

      Ordinary users, and even many geeks, don't have time to figure out what every service does and whether they use it. A policy of aggresively turning off services (mostly for security, partly for boot time) carries a risk of turning of a service that is needed.

      I suggest that there should be a standard framework for dealing with "a needed service is not running" problems. On a desktop Linux, this should pop up a window explaining what service wasn't running, and giving options to do nothing, start the service on a one-time basis, or add the service to boot time start-up (and prompting for root password as required.)

      (There can be extra options - don't start the service, and never ask me again. Don't start the service, and never ask me again if this particular program complains about it.)

      --
      Quattuor res in hoc mundo sanctae sunt: libri, liberi, libertas et liberalitas.
    3. Re:Just turn off services you don't need by antdude · · Score: 1

      Why turn off lpd? Don't you use printers? :)

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
    4. Re:Just turn off services you don't need by Anonymous Coward · · Score: 0

      What kind of neanderthal actually prints stuff out on dead trees these days?

    5. Re:Just turn off services you don't need by simcop2387 · · Score: 1

      pop up a window? what do you do if the required service is XFree86?

    6. Re:Just turn off services you don't need by Michael+Woodhams · · Score: 1

      There would be other methods if X were not running. That is why I said "On desktop Linux..." which I assumed to be graphical and aimed at a non-geek user.

      On the command line, it might just be a matter of getting lots of programs to standardize on one format of error message, e.g. "Required server food (Foo Daemon) is not running or is not responding"

      Possibly you could have a "Missing Daemons Bureax" daemon to which you would send such complaints. It would look at some configuration info and figure out whether to pop up a window, send error to stderr, send e-mail to root, ignore the complaint or whatever.

      (And if the mdbd is missing, the program ignores this fact and just reports the original error through stderr.)

      --
      Quattuor res in hoc mundo sanctae sunt: libri, liberi, libertas et liberalitas.
    7. Re:Just turn off services you don't need by trybywrench · · Score: 1

      Running unused services is a mistake. The first thing you should do after an install is turn off all unused services, it lightens the load and increases security substantially.

      After you think you got things undercontrol, nmap your box ie.. 'nmap $yourIp' and make sure there aren't any more open ports then should be.

      --
      I came to the datacenter drunk with a fake ID, don't you want to be just like me?
    8. Re:Just turn off services you don't need by Anonymous Coward · · Score: 0

      Actually, not until a few weeks ago, I hadn't used a printer in nearly 2 years.

    9. Re:Just turn off services you don't need by aminorex · · Score: 1

      There should also be automatic disabling of unused
      services. E.g. lpd, if it doesn't get used for a
      period of, say, 24 days, should disable itself.

      --
      -I like my women like I like my tea: green-
    10. Re:Just turn off services you don't need by anthonyrcalgary · · Score: 1

      sshd is hard to part with. Leaving it switched on on all my systems typically saves my ass several times a year.

      Even after the last few days, it's still a good bet.

      --
      When someone might yell at me, it has to be OpenBSD.
    11. Re:Just turn off services you don't need by antdude · · Score: 1

      How do you usually print your papers, resumes, pictures, etc.

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
    12. Re:Just turn off services you don't need by Anonymous Coward · · Score: 0

      Print them at work. Thats where I print all my ebooks. Free ink and paper!!! Though i suppose if you need to print a resume you dont have the conveniece of using the office printer.

    13. Re:Just turn off services you don't need by minus9 · · Score: 1

      "Thats where I print all my ebooks."

      I think you may have misunderstood the idea of ebooks.

    14. Re:Just turn off services you don't need by Anonymous Coward · · Score: 0

      Some of us don't want to give up our sshd. However, you can move a lot of services to inetd. That way you only load one service (inetd) for the whole range of services that runs from it. Ofcourse, you wouldn't do this for anything that requires speed, but usually ssh logins are sufficiently rare to make sshd a good inetd-ification candidate.

      Also, doing stuff like running ntpdate out of cron instead of out of your init scripts can help. Though if you care about the accuracy of the time in your logs you probably don't want to do that.

    15. Re:Just turn off services you don't need by Anonymous Coward · · Score: 0

      I forgot to mention, if you're not using inetd, turn it off! Most distro's leave it on. Even debian.

    16. Re:Just turn off services you don't need by Anonymous Coward · · Score: 0

      I don't get why we're even discussing turning off sshd to save time. Sure, it might take a little while the first time it's ever turned on (if you've got slow hardware), but after that the start time is insignificant

  17. Booting Linux Faster... by Kedisar · · Score: 1, Funny

    Sounds like something MS wants you to do...

  18. Re:Faster Booting by dpw2atox · · Score: 1, Flamebait

    well its a good thing windows boots fast.....you gotta reboot the damn thing enough :-P

  19. Other things to speed up boot time by epiphani · · Score: 5, Informative
    These may seem obvious, but if you're after a quick boot, try doing these things:

    • Recompile the kernel with bare essentials only - monolithic.
    • Turn off non-essential non-inetd services.
    • Tweek your rc.d scripts to get rid of things like modprobe calls.
    • Dont boot directly to xdm if you dont have to.


    Personally, I dont give a shit about how long my linux machines take to boot up, because they dont go off once they're up.
    --
    .
    1. Re:Other things to speed up boot time by Anonymous Coward · · Score: 0

      Congratulations, you were one of the people referred to earlier in this comment here!

    2. Re:Other things to speed up boot time by oever · · Score: 2, Interesting
      These are all good suggestions. There are two reasons one'd like to reduce boot times:
      • You're running an important server
      • You're booting your computer daily because you only really use it 1/3 of the time and don't want to waste electricity.

      If the second reason is your main reason to boot quickly, you'll probably want to start X too every time you boot. So waiting to start X until a user says X should be started is no option. Your other suggestions are spot on.

      If you'd like to take away the last, big, bottleneck, it would be a good idea to start X in parallel with the other, independant, services. This is exactly what's described in the insightful IBM article. Hooray!

      --
      DNA is the ultimate spaghetti code.
    3. Re:Other things to speed up boot time by Elwood+P+Dowd · · Score: 1

      No, he said "Personally." He may understand exactly why everyone else wants faster boots.

      --

      There are no trails. There are no trees out here.
    4. Re:Other things to speed up boot time by HardCase · · Score: 1
      Meanwhile, Windows XP on my laptop boots in less than fifteen seconds from BIOS to logon screen. Especially when I hibernate it.


      Hibernation aside, the reason that your laptop appears to boot so fast is because it's still starting services even after you've logged in. You may notice, for example, that your network is not available for a bit of time. Or, perhaps, that you keep seeing icons popping up in the tray? That's part of the boot process...it's just that Microsoft started the GUI before the system was done booting. Linux boots, then starts the GUI.


      I find that my two desktop systems, one running XP, the other RH9, take about the same amount of time...the Linux system is, maybe, 5 or 8 seconds slower to boot. That's counting the extra time that Windows takes to finish the boot process after the GUI comes up.


      Comparing booting a hibernating system to a complete boot is apples and oranges. You might as well complain to Microsoft that it takes longer to boot XP from a cold start than from hibernating.


      -h-

    5. Re:Other things to speed up boot time by Anonymous Coward · · Score: 0

      It's completely pathetic that that was moderated flamebait. Stupid group-think kool-aid drinking zealots supressing anything that doesn't fit their view of the world.

    6. Re:Other things to speed up boot time by Anonymous Coward · · Score: 0

      Mandrake actually boots the GUI before things are finished loading too... I found this annoying and fixed it.

    7. Re:Other things to speed up boot time by Anonymous Coward · · Score: 0

      You're running an important server

      If you've got a server so important that even a five minute boot time is too much downtime, you should already have a failover solution.

      You're booting your computer daily because you only really use it 1/3 of the time and don't want to waste electricity.

      Not a bad reason, but I think good power management could solve those problems in a nicer way. I wish linux had a hibernate option like XP does - now THAT'S a fast boot (actually, linux may have this sorted by now, I'm not sure)

      The person I think can make the best use of short boot times is the dual-booter.

    8. Re:Other things to speed up boot time by TheNetAvenger · · Score: 1

      Hibernation aside, the reason that your laptop appears to boot so fast is because it's still starting services even after you've logged in. You may notice, for example, that your network is not available for a bit of time. Or, perhaps, that you keep seeing icons popping up in the tray? That's part of the boot process...it's just that Microsoft started the GUI before the system was done booting. Linux boots, then starts the GUI.

      This is not entirely true for WindowsXP any more than it is for Linux. All the core devices and services ARE loaded before the user even has a chance to login. Period.

      There are applications and authentication services that run when the user logs in, but they are USER specific.

      As for your claim of the network not being available, this is only true if the user is using DSL or another form of dial in authentication.

      If the machine is on the LAN (or cable modem), it can be pinged and respond to telnet services long before the GUI appears on the screen.

      And yes WindowsXP boots in under 10secs* on my laptop. Why? Because the NT architecture in XP does load drivers and services non-sequentially, just like this article is trying to help Linux users do. *(And I am talking about a 'real' cold boot - not a hibernate)

      As for people (like laptop users) that need a quick power off and power on if they are moving around and working throughout the day, there is nothing more impressive than using the Hibernate features in XP.

      With Hibernate on this laptop I can do a full power off in 2secs, and a FULL power on to desktop in 3secs. (including re-initialization of my all my devices like my wireless connection)

      Not just because the Hibernate (Suspend to Disk) feature works this well, but the legacy free BIOS and WindowsXP on this laptop are DESIGNED around the concept of providing a super fast hibernate with super fast device re-initialization.

      This is why I still use VMWare for Linux on my laptop. Until I can hit a button and have Linux suspend to disk(hibernate) and be off and back on in under a few seconds, I will have to stay with XP, especially when I am moving around throughout the day from meeting to meeting or project to project.

      This really isn't something to debate, it is a series of design concepts that the Linux and Open Source world needs to PAY ATTENTION to as it is a better way of computing for mobile users.

      I don't care how long someone's Linux box stays up, WindowsXP does as well. What I care about is being able to power off and on fast when I am busy and moving around. And right now, the only way I can do that with Linux is to run it under XP using VMWare.

    9. Re:Other things to speed up boot time by Anonymous Coward · · Score: 0

      That's at best a gross simplification.

      Windows XP Improved Boot and Logon Performance

    10. Re:Other things to speed up boot time by phaze3000 · · Score: 1

      You might want to take a look at Software Suspend for Linux. I believe it will be included in the 2.6 kernel, but there's a patch for 2.4. Not only is startup quicker, all your apps are exactly as you left them previously.

      --
      Blaming GW Bush for the Iraq war is like blaming Ronald McDonald for the poor quality of food.
    11. Re:Other things to speed up boot time by ysachlandil · · Score: 2, Informative

      Flashing linux into BIOS:

      www.linuxbios.org

      current record: 3 seconds!

      --Blerik

    12. Re:Other things to speed up boot time by TheNetAvenger · · Score: 1

      You might want to take a look at Software Suspend for Linux. I believe it will be included in the 2.6 kernel, but there's a patch for 2.4. Not only is startup quicker, all your apps are exactly as you left them previously.

      I have seen this before and it is a step in the right direction; however, with the kernel/driver nature of Linux lots of hardware still has problems re-initializing and in no way to things come back to life as easily as they do with XP.

      With WindowsXP as you will note, rewriting of drivers was not necessary due to the way the NT kernel handles devices and drivers differently than Linux. Even old legacy NT4.0 drivers properly re-initialize in XP using Hibernate.

      Since my laptop for example has 'tons' of device drivers that are considered outside of the norm, this makes it very problematic. Especially several ACPI devices and PCMCIA devices that fail to re-initialize properly using SS for Linux. And some of these are pretty important, like the internal fans that dynamically control heat, etc.

      This project needs to be supported, but they need to take it farther and hopefully 2.6 support will bring it closer to what is need. The developers also need to look at all the features that ACPI and hibernate in WindowsXP offers and add them. For example the scheduler service in XP via ACPI can do things like wake up the computer from hibernate to sound an alarm or alert you to a reminder or perform any task basically and then hibernate itself back off.

      The speed of this utility also needs a major performance boost. Compared to WindowsXP it takes several times longer to hibernate and un-hibernate and takes up more drive space for the swap than just your installed RAM.

      Thanks for adding this to the thread, I'm sure there are people out there that didn't know about this utility and will find it very useful...

      The NetAvenger

  20. ms dos boot 2 seconds by Anonymous Coward · · Score: 0, Offtopic

    get with the program linux

  21. Isn't there a way by SHEENmaster · · Score: 2, Interesting

    to reboot without rebooting, such that uptime remains the same but kernel upgrades can take place?

    I remember reading about it somewhere, but it was skimpy on details, sufficing to say that it was a "bad idea".

    --
    You can't judge a book by the way it wears its hair.
    1. Re:Isn't there a way by Aliencow · · Score: 1

      I guess you could run User mode linux... But that would kind of defeat the point of booting faster...

    2. Re:Isn't there a way by Anonymous Coward · · Score: 0

      And the benefit is? If you say "so that the uptime stays the same" I'm going to slap you.

    3. Re:Isn't there a way by irc.goatse.cx+troll · · Score: 2, Informative

      I remember a few of the details. It involved overwriting the kernel thats live in memory while its still running. I dont remember if it was linux or some bsd that it was done with, but I know its worked for some people. Its just a huge risk, and not really worth it -- reliability isn't uptime.

      --
      Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
    4. Re:Isn't there a way by arodland · · Score: 1

      "Two-kernel monte" does let you switch kernels without rebooting the hardware, but

      1) uptime does get reset
      2) This is entirely appropriate, as all of your apps still get shut down for the "restart" -- it would take process freeze/thaw capability to be able to bring down apps and bring them back up, intact, on a different kernel. And even then there would be a minute or three's downtime.

  22. LONG LIVE IBM! by killermal · · Score: 1

    Wonderful. This will save me 20 seconds of computer deprivation after the next powercut.

    1. Re:LONG LIVE IBM! by Sphere1952 · · Score: 2, Funny

      What? You don't have a battery?

      Geeze. How the Hell do you set the clocks in your house? Call time?

      --
      Big Brother Bush is doubleplus ungood.
  23. Ummm faster hard drives? by BWJones · · Score: 1

    how to decrease boot times for your Linux box

    Well, I might suggest faster hard drives....... :-) Seriously though, going from ATA to Ultra 320 drives made my G4 box pretty snappy on all disk related activities, including boot times.

    --
    Visit Jonesblog and say hello.
  24. Does it really take that long? by pclminion · · Score: 2, Informative
    I still remember the days when I installed Slackware off floppies, and unless my memory is failing much faster than anticipated, I don't think the kernel itself takes much longer to boot than it ever did.

    What definitely does take longer is starting all the system services. I know that an out-of-box RedHat installation starts an insane number of (mostly useless) services on startup. The first thing I always do when installing a RH box is run 'ntsysv' and disable all the crud.

    The 'kudzu' utility is the worst offender. It checks the system for any new hardware or peripherals. There's no need for this to run on every single boot!

    And BTW... Why are you rebooting a Linux box anyway? ;-)

    1. Re:Does it really take that long? by kidgenius · · Score: 1

      That hardware detector has come in handy multiple times for me b/c i'm a linux n00b. But, i am curious which services are uneeded. I know that i will be disabling PCMCIA, b/c i don't have a slot for that. But you are correct about RH, load times blow. Is there any list of what all the different services do so I can determine what I need and don't need?

      Also, ntsyv looks kinda like Unix "System V" that one company who will rename nameless has. AHH!! They're in kahootz w/ one another. ;-)

    2. Re:Does it really take that long? by pclminion · · Score: 1
      Well, off the top of my head, I think I usually turn off apmd, atd, autofs, keytable, kudzu, random, rawdevices, rhnsd, sendmail, xinetd.

      Obviously if you want to run servers, then start those. For telnet and some other servers you will need xinetd running as well. You need gpm if you use the mouse in console -- if not you can turn that off. If you don't need to use NFS, you can turn off nfs, nfslock, and portmap.

    3. Re:Does it really take that long? by praxim · · Score: 1

      The whole point of the article was decreasing the amount of time required to start services, not load the kernel itself.

    4. Re:Does it really take that long? by pe1chl · · Score: 1

      But the open question still remains: does it really take that long?

      I think it does not take long when compared to Windows 2000, the OS our users use for their everyday work. I am sometimes irritated by the long boot time of Windows 2000, but it seems the only way to fix that is to migrate to Windows XP, which boots a lot faster.

      At least in Linux there are some ways to improve it without doing a major upgrade.

  25. Very Nice by taxtropel · · Score: 1

    I'm running a LinuxFromScratch system and I boot in under 8 sec (12 if you include X start times).
    This is w/ the 2.4.2x series kernel.
    W/ the 2.6.x series kernel, my boot times drops by about 3-4 sec. (yay). Now I find out I can start my services even faster!. (double yay)

    What are the start times of other distros out there?

    PS my hardware is
    Athlon XP 1700, (1.5GHz)
    256MB 2100DDR
    Nvidia nForce1 MainBoard
    Nvidia GForce 4 MX 440

    1. Re:Very Nice by Jibber · · Score: 1

      While I don't know my actual boot times since it's remote, but my Slack 8.1 mail server is back up in 27.3 seconds after issuing a shutdown -r now command. That includes the termination of services, warm restart with bios check and disk check (the bios is set to auto) plus what ever else the bios does like mem check etc.

      I have no idea what RedHat is doing, wouldn't run it on the Internet unprotected myself, just as I don't run Windows servers unprotected.

      Runs MySQL, qmail, vpopmail and Apache and everything is back up and running with in that 27.3 seconds.

      Dunno, but I think that pretty darn good for a warm reboot.

      Oh yah.

      AMD Duron 1000+
      256 meg mem
      on board everything else

      Jib

    2. Re:Very Nice by Sphere1952 · · Score: 1

      Booting for the fun of it seems a lot like kiddie porn to me...

      --
      Big Brother Bush is doubleplus ungood.
  26. Frisk Posted by Anonymous Coward · · Score: 0

    Frisk post ha ha

  27. you want me to reboot? by phalse+phace · · Score: 1

    You must be crazy. To think that you'd want me to sacrifice my current uptime record just so I can boot faster.

  28. Reasons for faster boot time by Pompatus · · Score: 1

    To all the people that wonder what use this is (because linux never needs rebooting I guess), consider this. I had a toshiba laptop w/ linux on it. I don't know why hibernation doesn't work (it does on my IBM thinkpad w/ no problems) but it just doesn't. Therefore, this 466 celeron has to boot up every time I use my laptop.

    This slow boot time has caused me to put WinXP back on it, because it takes a 466 FOREVER to boot vs wake up from hibernation. This is also a shameless plea for any advice on how to configure hibernation on a Toshiba 2615DVD/6.0 running mandrake 9.1 :)

    --

    ----
    Squirrel ... It's not just for breakfast anymore
    1. Re:Reasons for faster boot time by gregfortune · · Score: 1

      Sometimes machines ship with a hibernation partition. Did you remove it when you installed linux? If you did, have fun. I have no idea how to get it back.

      Also, why not just suspend instead of hibernate? Suspend is typically faster anyway although I think it consumes slightly more battery power when asleep. Try 'apm -S'

    2. Re:Reasons for faster boot time by Pompatus · · Score: 1

      actually, I bought the system used. it had win2k on it at the time (someone upgraded it to 192 meg ram). Tried apm -S and no luck. It suspends for a split second, then resumes w/ no user intervention.

      --

      ----
      Squirrel ... It's not just for breakfast anymore
    3. Re:Reasons for faster boot time by mini+me · · Score: 1

      I just leave my laptop running 24/7. Doesn't do you much good if you're on battery power, but otherwise it does the trick.

  29. Re:Faster Booting by Anonymous Coward · · Score: 0

    then you must run some really broken hardware, because i can run it for months without a reboot. and usually then i'm only doing it to install fixes to the OS.

    Long uptimes on linux machines only tell me one thing - you don't update your kernel!

  30. The Real Question by rowanxmas · · Score: 2, Funny

    Because it must be asked....

    How much time is saved when booting up a beowulf cluster?

    1. Re:The Real Question by Jellybob · · Score: 1

      Depends if you're the person using it, or the post-grad who gets to go in an hour early and hit the power button on each of the nodes ;)

  31. interesting idea, but . . . by Purificator · · Score: 1

    i think the best idea in the article is the last bullet point under "additional considerations," specifically that you just configure the system to let you log in earlier. since this is (as the article points out) mostly useful for desktops (or, more likely, laptops), a user doesn't need to wait for sshd or a web server to start before (s)he logs in.

    i'm too used to the serial boot to use parallel booting. even on a desktop, i like to see the boot messages scroll by just in case.

    --
    "Mister Potato-head --MISTER POTATO-HEAD! Backdoors are not secrets!" (War Games, 1983)
  32. Ehrm.. by naitro · · Score: 1

    ..is that it takes a long time between pressing the "on" button and actually being able to use a Linux system.

    The what button?

  33. Why does everone hate... by Anonymous Coward · · Score: 0

    Mandrake? No really I don't gedit

  34. Imagine... by Anonymous Coward · · Score: 0

    Booting a Beowulf cluster of these.

    You thought it, but only I had the courage to say it.

  35. Google/cache mirror by Anonymous Coward · · Score: 0

    In case of slashdotting IBM's Commodore64 servers, use this google cache.

  36. Re:Faster Booting by Anonymous Coward · · Score: 0

    "well its a good thing windows boots fast.....you gotta reboot the damn thing enough :-P"

    Ya I agree especially if Linux users want to play leading edge games like Half Life 2 :-P

  37. Serel by ensignyu · · Score: 5, Informative

    Serel does this too, for RedHat and Debian. It actually works; it's not just a proof-of-concept, although it does have a number of bugs.

    1. Re:Serel by gmhowell · · Score: 4, Informative

      It may not be a proof of concept, but it seems to be a beta that hasn't been touched in a year. And debian packages (on the site I looked at) aren't available, only rpms.

      Still, looks nifty.

      --
      Jesus was all right but his disciples were thick and ordinary. -John Lennon
  38. there IS a need for this by boarder · · Score: 1

    Contrary to most comments here about how this isn't needed because of uber uptimes of linux l33t users, some people would benefit from this. Any gamers who have to dual boot to windows to play some games will want this (you think HL2 will play on Wine when it comes out?). There was a time when I would reboot almost everyday (before BF1942 was playable on Wine). Sure, saving a 30 seconds or so per day isn't a big deal, but it's nice to be on par with WinXP's boot time.

    --
    IANAL, but I play one on /.
  39. -1 Redundant by tarquin_fim_bim · · Score: 1

    But I don't think people were listening. How often do you have to reboot? New kernel every 6 months or so, I can wait for quality why can't every one else?

  40. Right... by djblair · · Score: 1

    This way when I reboot my database server once a year, it will come back online 45 seconds faster.

  41. Re:Faster Booting by taxtropel · · Score: 2, Insightful

    9 second boot time from power-up to X-windows

  42. What's the rush? by Sphere1952 · · Score: 1

    Let Windoze die a slow, agonizing, discraceful death.

    Feature turn-around for Linux development is about 100x for Windoze. Let MS fiddle. That way, when we claim 50%+ of the desktops Bill's FUD will be little more than a bad joke.

    --
    Big Brother Bush is doubleplus ungood.
    1. Re:What's the rush? by kamakot · · Score: 0

      Really? the Linux setups I've messed with all appear to have features the `last' Windows had (Taskbar, Activity Centers on the left side of graphical filemanagers, ...).

      Since Winders is s'posda be goin' away from the desktop idea, maybe Linux developers should get ultra-creative and design a whole new system before M$ does, instead of what appears to me to be copying them.

    2. Re:What's the rush? by Overly+Critical+Guy · · Score: 1

      Not gonna happen. Longhorn has so many revolutionary planned features, Windows won't even look like Windows anymore. Visually or usability-wise. Call it "fiddling." That's exactly what Microsoft wants you to think (seriously) so they can blow everyone away with full-on Windows and .NET.

      In its current form, Linux will not gain +50% of the desktop, Longhorn or not.

      --
      "Sufferin' succotash."
    3. Re:What's the rush? by Saint+Stephen · · Score: 1

      Yeah, that's exactly the smoke-up-the-ass they blew in 2000 when they announced .NET. By the time Longhorn ships, it will be so backwards-compatible with W2k, it'll basically just be another layer of complexity on the same old cruft, just like NTFS still has drive letters.

      Betcha a $ Longhorn uses drive letters.

  43. Re:Faster Booting by Anonymous Coward · · Score: 0

    Long uptimes on Windows machines only tell me one thing - you sure have some kick-ass worm breeding ground !

  44. FastBoot.org? by nickread · · Score: 2, Informative

    Isn't this basically the same thing (different implementation though).

    http://www.fastboot.org/

  45. boot faster... by Anonymous Coward · · Score: 0

    grep sleep /etc/init.d/*

    1. Re:boot faster... by Anonymous Coward · · Score: 0

      grep -r

      You are right though, removing all those 'sleep 600' lines of code really sped up my boot time. It used to take about 7 hours to boot, now it only takes a minute.

  46. Confuscious say by Anonymous Coward · · Score: 0

    "launch your consoles and X server, before you run your daemons"

  47. Energy, money, etc... by 1000101 · · Score: 1

    Am I the only person on here who doesn't give a rat's ass about my uptime (talking desktop pc here)?? I turn off my machine at night because it saves me money on my electric bill and because it saves electricity. Granted, it's not much, but you see articles all the time about how turning off your computer can save x amount of dollars. My RedHat 9 box takes forever to load but I still turn it off every day. My XP box takes less than 30 seconds.

    1. Re:Energy, money, etc... by Morosoph · · Score: 1

      [AOL]Me too![/AOL]

      Just a thought: Does everything really need to be started to log in? The user needs to boot up (psychologically) too! "Hollow" processes could catch requests for when the relevent service is ready.

    2. Re:Energy, money, etc... by caluml · · Score: 1
      I turn off my machine at night because it saves me money on my electric bill and because it saves electricity.

      True. But things usually break during power on. How long until the money you save in your electricty bill has to be spent on a new hard drive?

      I leave my boxes running as they are less likely to break.

  48. Spooky by JayJayEm · · Score: 2, Informative
    I was just thinking about this after reading the excellent whitepaper on Microsoft.com (don't laugh) at http://www.microsoft.com/whdc/hwdev/platform/perfo rmance/fastboot/fastboot-winxp.mspx

    You should be able to extract the word document using a zip utility.

    It describes in quite a lot of detail how they reduced boot time in XP (not only starting stuff in parallel but also prefetching and other tricks).

    1. Re:Spooky by Anonymous Coward · · Score: 0

      Off-topic but ...

      Why is that downloads from Microsoft invariably come in .EXE format, leaving you to figure out whether it's an install program, an archive that may or may not contain an installation routine and that extracts to a predefined folder, an archive that may or may not be an installation routine that extracts to a folder of your choice, or, in this case, a single DOC file that should have been a PDF in the first place?

      I suppose I wouldn't be whining so much if I could figure out the "offending comment" error that keeps coming up when trying to distill the DOC into a PDF.

      Sigh.

  49. This is actually important by augustz · · Score: 4, Insightful

    I see there are already a ton of linux fanboys and girls posting about the incredible uptime of their linux boxes, and claiming that a) boot time doesn't matter because linux doesn't go down or b) linux boots very fast.

    They are wrong. Boot time matters.

    It matters for perception. Boot time is one of the periods where a user spends the most time looking at a screen not being able to do anything (even if that happens rarely). A faster boot time leads to a sense that the whole system is faster, because it is a first impression, and a significant impression. If linux bliped on from a cold start in 5 seconds, I'd be studies would show it appeared faster.

    Boot time matters because not everyone (in fact, very few people) leave their systems on all the time. Slashdot fan boys living at home may not agree, but they are wrong.

    Think about business systems. At my place of work, everyone turns their computer off at the end of the day, and on at the beginning of the next. My mother doesn't leave her computer running 24/7, she turns it OFF when she is done using it. My roomates do the same thing. Even I do it sometimes.

    Boot time matters because power management is still evolving under linux. As power management requires the cooperation of a number of pieces of a system, power management is still a work in progress. Once power management with every peripheral is flawless, then we can start to dial back boot time worries (only a little).

    Boot time matters server side too. I know folks are going to complain that I focus on the user too much. But boot time matters server side as well. We have UPS units on our servers. They have however a limited lifetime. So when the power drops for a few minutes (which it does here somewhat often) automatic shutdown process starts.

    When the power comes back on, people power up their computers. These being Windows XP machines they actually start pretty quickly (or never went off if on a UPS). If folks were in the middle of something, they expect that with the power their logon and other services will be back in action. Then all the individual computers start timing out / locking up, generating help calls.

    On the server side, if there was an emergency security patch, or we were coming up from a power outage, the faster the boot time the better, if I can beat out even 20% of the client connect attempts.

    Boot time matters, a big bravo to the folks working to improve this.

    1. Re:This is actually important by Piggymon · · Score: 0, Redundant

      So you answered a):Boot time matters. Nice. But what about b)? My linux system boots in 10 seconds, doesn't yours? What the hell are you people tormenting your computers with?

    2. Re:This is actually important by John+Hurliman · · Score: 4, Informative

      A lot of comments also missed a major platform, laptops.

      I've been furiously tweaking out my Averatec to get the quickest possible bootup (and shutdown); everything from a highly customized 2.6.0 kernel, to experimenting with software suspend and custom startup scripts. Right now I have my system booting the bare bones necessary services to get me in to X so I can turn the laptop on and fire up OpenOffice in class. The rest of the service launching is done with a shell script that I call after booting if I want to do more, like get on the net, use Samba or print.

    3. Re:This is actually important by augustz · · Score: 1

      Oops.

      One problem with a lot of computers is that BIOS on and power up events suck up seconds, so even a 10 second linux load is still 15 seconds overall. If we can get linux down to 3 seconds, we are at an 8 second overall load.

    4. Re:This is actually important by Tomun · · Score: 1
    5. Re:This is actually important by nivedita · · Score: 2, Informative

      You didn't have to write your own script: sysvinit has a concept of runlevels with 1 for single-user, 2 for multi-user without net, 3 for multi-user net and 5 for X. Gentoo linux takes this even further: you could have an arbitrary number of runlevels with mnemonic names.

    6. Re:This is actually important by Yaa+101 · · Score: 1

      You are right, not only these but think about emedded systems like routers...
      My Alcatel with a embedded *nix system also takes some time to startup...
      Think about all these routers and switches higher up the stream as well...

    7. Re:This is actually important by Anonymous Coward · · Score: 0

      Well, that was unnecessarily verbose.

    8. Re:This is actually important by int2str · · Score: 2, Interesting

      What's wrong with Suspend/Resume? Powering off your notebook seems like a waste of battery and time if you ask me.

      I would even start to apply this to desktop machines - just suspend it, don't turn it off all the way.

      Cheers.
      Andre

    9. Re:This is actually important by Anonymous Coward · · Score: 0

      You should run for president .. I am sure you would have more to say than the current one.

    10. Re:This is actually important by nordicfrost · · Score: 0

      That is very true. A computer illiterate friend of mine thinks his Dell 2 GHz WinXP machine is so much faster than my old 266 MHz machine because it boots SO much faster. All this while he completley ignores the fact that is WinXP machine is soaked in spyware, slowing the much faster machine down to a crawl. I don't think he understands how my 5yr old computer can feel so much faster than his once it has booted... :D

    11. Re:This is actually important by Anonymous Coward · · Score: 0

      I'm not going to argue that boot time doesn't matter, because it does. Even if you boot only every 6 months, it still makes some difference.

      However, what place of business is this where all the computers get turned off at night? Do you just not worry about backups, or do you have some other means? (Maybe desktops are dataless, which is great, but not very common.)

      And regarding your server, are you really rebooting it to install the latest security patch? Sure, if there is a kernel bug, you'll almost always have to reboot. But most security patches are for a buffer overflow in user code, and rebooting is totally unnecessary. I'd say rebooting is necessary 25% or 33% of the time, and that's being generous.

    12. Re:This is actually important by Anonymous Coward · · Score: 0

      if boot time matters so much, why do people choose windows over linux? My Red Hat 9 install buts a helluva lot faster than win2k, and i havent taken out all the unneccessary stuff yet.

    13. Re:This is actually important by greppling · · Score: 1
      Just to add to this: At least two friends of mine that have dual-boot machines say they usually use Windows over Linux because they don't want to wait 2 minutes just to check their e-mail.

      (These 2 minutes include X and KDE startup time, as it should.)

      Much of this time seems to be spent waiting for disk seeks. so I have always mow much one could have optimize harddisk for boot time.

    14. Re:This is actually important by caluml · · Score: 1

      linux init=/bin/yourcustomscript

      /bin/yourcustomscript :
      mount / -oremount,rw
      /usr/X11R6/bin/startx
      /etc/init.d/net start

      should be pretty fast.

    15. Re:This is actually important by mgkimsal2 · · Score: 2, Informative

      It doesn't work with most laptops, that's why not.

  50. Re:FIFTH POST by Anonymous Coward · · Score: 0

    hypocrite. log in if you are going to bash AC's

  51. Re:nice! by Anonymous Coward · · Score: 0

    XP can boot linux faster?

    This has got to be the most pointless troll attempt I've seen

  52. Re: "you only need to boot it up once" by vlad_petric · · Score: 4, Informative

    I'm afraid that if you have a laptop, boot time is quite important. Doing suspend/resume with X running is not reliable. While I certainly agree that fixing this is the long term solution, a quicker boot-up is a reasonable fix in the meanwhile

    --

    The Raven

  53. Troll time by Anonymous Coward · · Score: 0

    Any thoughts? Discuss discuss

    1. Re:Troll time by Anonymous Coward · · Score: 0

      I think a "beowulf cluster" troll might be appropriate here.

  54. obvious by Sarin · · Score: 1

    if you have a static ip, just put your ip setting manually into the settings. using dhcp will cost you another few costly seconds you could have used doing.. doing what exactly?.. as if your linux box is booting that much anyway.

  55. why not start them all at once by TornSheetMetal · · Score: 3, Insightful

    Since you have to work out the dependices yourself, why not imbed the dependices in the startup scripts themselves? So for example, the nfs startup script would block until the network script got started. The status can be checked by parsing /etc/rc.d/init.d/network status. You may want a timeout on the blocking. If you do this you could just start all the scripts at once.

    1. Re:why not start them all at once by Anonymous Coward · · Score: 0

      Because you would incur a small performance penalty when checking service status. In fact you may end up checking status more than once. It would be faster to have a status change trigger new processes because it happens just once.

    2. Re:why not start them all at once by meowsqueak · · Score: 1

      If I'm not mistaken, Gentoo already does this - it uses strong and weak dependencies in the init.d scripts themselves.

    3. Re:why not start them all at once by Anonymous Coward · · Score: 0

      It kinda does, but has some issues, the biggest being bringing stuff down in the wrong order, not that it fails, but just doesnt work for all circumstances, eg.

      Bringing down eth0 THEN attempting unmount nfs root.. bad bad bad.

  56. PowerPC Linux users had compiled boot 'scripts' by Sleepy · · Score: 5, Interesting

    This was three years or more ago, but I remember one of the PPC Linux developers "converted" all his system boot scripts in init.d to compiled C.

    Boot times went from about 2 minutes, to 35 seconds.

    (It took "so long" because it was an old PPC 601 60MHz or something like that).

    Distributions such as Mandrake and Gentoo claim they go the extra mile for "performance". I've wondered why neither has cleaned up their boot process.

    You wouldn't think Bash is slow from interactive use, but it really it. Piggyback on that speed problem that too many "functions" (OK, *commands*) are standalone executables... greate sub-process, collect result, destroy, rinse repeat.

    This is pretty interesting stuff, and I applaud this guys efforts. INIT script achitecture is pretty thankless stuff.. .no "glory". Fixing this would be like someone fixing fdisk... no one wants to touch the damn stuff...

    1. Re:PowerPC Linux users had compiled boot 'scripts' by Trepalium · · Score: 1

      The other option is to use the Windows XP trick of loading the GUI before the rest of the system is actually up. You get incredibly fast "boot times", but network capability isn't available for some time after you get into the GUI.

      --
      I used up all my sick days, so I'm calling in dead.
    2. Re:PowerPC Linux users had compiled boot 'scripts' by Anonymous Coward · · Score: 0

      Oh thank you, thank you, thank you, thank you! I didn't know that's what XP did and I was wondering why my new XP machine was doing that.

    3. Re:PowerPC Linux users had compiled boot 'scripts' by jjhlk · · Score: 1

      Trick?

      I think you mean to say feature.

    4. Re:PowerPC Linux users had compiled boot 'scripts' by Master+Bait · · Score: 5, Interesting
      That's a pretty good idea.
      I use a bunch of homemade Xterminals made out of Nforce boards and we have replaced /sbin/init itself with an executable shell script (and use ash for the shell instead of bash). The entire contents of init is this:
      #!/bin/sh
      /bin/cat /dev/null > /var/run/utmp
      /sbin/insmod /modules/nvnet.o
      /sbin/ifconfig lo 127.0.0.1
      /sbin/mount -o remount,rw /
      /sbin/mount -t proc /proc /proc
      /sbin/insmod /modules/nvidia.o
      /usr/X11R6/bin/X -broadcast
      /bin/sh

      No shutdown script is necessary because Xterminal users simply logout and turn them off.

      I think one of the biggest slowdowns on PCs is the lame PCBIOS which takes a very long time to run through all the hardware. I remember following LinuxBIOS development. It is so fast, that it was finished checking the computer's hardware before the disk drives finished spinning up.

      --
      "Only in their dreams can men truly be free 'twas always thus, and always thus will be."
      --Tom Schulman
    5. Re:PowerPC Linux users had compiled boot 'scripts' by curious.corn · · Score: 1

      I've tinkered with Linux for the past what, 5 years? Make has been here since much earlier... I feel ashamed for not having thought about it myself; it makes me think that after all I'm not "creative" as I thought...

      --
      Mi domando chi à il mandante di tutte le cazzate che faccio - Altan
    6. Re:PowerPC Linux users had compiled boot 'scripts' by Monkelectric · · Score: 2, Informative
      Gentoo claim they go the extra mile for "performance"

      My *cheap ass* Athlon 1700 gentoo box (total system value: 300$) can *reboot* gentoo in under 30 seconds, INCLUDING X. What else do you want?

      If your linux box takes more then 30 seconds to boot up you are either A: running way too many services, B: You're running Mandrake/Redhat (in which case you're guilty of A to).

      --

      Religion is a gateway psychosis. -- Dave Foley

    7. Re:PowerPC Linux users had compiled boot 'scripts' by dfries · · Score: 1
      My biggest complaint of the latest RedHat 9 is how many times it causes the monitor to loose sink on bootup. It seems like it is five or six times. Why does it have to change the default fonts and what ever other reason it does. YOu can't see what is going on in boot because your monitor is off half the time and when it gets done it clears the screen.

      Then when you login it sets the console to unicode blanking the screen yet again, so you have to wait before you can see anything. It does something that causes the screen to resync everytime you switch between the virtual consoles, so you can't hardly use those.

      I'm sure glad I use Debian at home.

    8. Re:PowerPC Linux users had compiled boot 'scripts' by Anonymous Coward · · Score: 0

      would it be more useful to make bash faster?

    9. Re:PowerPC Linux users had compiled boot 'scripts' by LocoBurger · · Score: 2, Informative

      Gentoo has gone a long way towards faster booting already. It doesn't have compiled boot scripts, but it has a much more sophisticated runlevel management system than is described in the article. It has real dependencies and whatnot, and boots very very quickly.

      Here is Gentoo's own explanation..

      Pretty swanky really, and very easy to use.

    10. Re:PowerPC Linux users had compiled boot 'scripts' by Anonymous Coward · · Score: 0

      make sure you are not running the canna server, for japaneses fonts. I notices some default installs of rh9 will have canna service start for some unknown reason. Not sure if that is it, but I have installed a lot of rh9 boxes, and never had your exact problem. Another potential snag may be in apm, which i dont use on non laptops.

    11. Re:PowerPC Linux users had compiled boot 'scripts' by vondo · · Score: 1

      The latest versions of Mandrake do something like this. They start X after networking but before all the networking services (ntp, ssh, cups, cron) are started. It makes a slight difference.

    12. Re:PowerPC Linux users had compiled boot 'scripts' by Anonymous Coward · · Score: 0

      > but network capability isn't available for some time after you get into the GUI

      On a 2Ghz+ machine, that some time is really no time. At least not enough to notice.

    13. Re:PowerPC Linux users had compiled boot 'scripts' by dhart · · Score: 1

      IIRC, a few years back Sun improved Solaris boot times by combining many of the common commands found in boot scripts into one fat binary.

      Although this approach appears very un-unix-like (it flies in the face of the one small tool for each task philosophy), it is possible because of a specific unixism: a program may be invoked by from a filesystem link with a different name; the program being run can find out what name was used to invoke it and behave accordingly.

    14. Re:PowerPC Linux users had compiled boot 'scripts' by CaptnMArk · · Score: 1

      It looks like they are using something like:

      http://www.atnf.csiro.au/people/rgooch/linux/boo t- scripts/index.html

      Need. I was waiting for someone to do that. I guess I should try gentoo real soon.

    15. Re:PowerPC Linux users had compiled boot 'scripts' by Anonymous Coward · · Score: 0

      or C: Running an old 600 MHz system.

      No way I can get under 30 seconds, when the BIOS takes almost 15.

    16. Re:PowerPC Linux users had compiled boot 'scripts' by renoX · · Score: 1

      >*reboot* gentoo in under 30 seconds, INCLUDING X. What else do you want?

      Having KDE running on top of X, and being logged on automatically and doing this under 10seconds?

      BeOS was able to do it!

    17. Re:PowerPC Linux users had compiled boot 'scripts' by Anonymous Coward · · Score: 0

      You're also failing to mention that in those 10 seconds BeOS didn't just go to full GUI from cold boot, but actually recognised all your hardware. There was barely any hardware configuration necessary. Aw man, why can't all OS's be like BeOS? It ruled.

    18. Re:PowerPC Linux users had compiled boot 'scripts' by EvilTwinSkippy · · Score: 1
      My AthlonXP-1700/Gentoo box can also go from boot to KDE in 30 seconds. I have a K6-400 that needs about 45 seconds. (Yes, WITH Kde).

      My Dell rackmounts at work take a little longer. The spend (at least what seems like) 5 minutes spinning up the drives in the RAID array before the OS even gets a chance to load.

      --
      "Learning is not compulsory... neither is survival."
      --Dr.W.Edwards Deming
    19. Re:PowerPC Linux users had compiled boot 'scripts' by EvilTwinSkippy · · Score: 1
      Ye gads people. Some of us are paid by the hour!

      No wait. I'm excempt. DAMN!

      --
      "Learning is not compulsory... neither is survival."
      --Dr.W.Edwards Deming
    20. Re:PowerPC Linux users had compiled boot 'scripts' by hey · · Score: 1
      Instead of:
      /bin/cat /dev/null > /var/run/utmp
      I would do:
      echo -n > /var/run/utmp
    21. Re:PowerPC Linux users had compiled boot 'scripts' by Sleepy · · Score: 1

      >My *cheap ass* Athlon 1700 gentoo box (total system value: 300$) can *reboot* gentoo in under 30 seconds, INCLUDING X. What else do you want?

      Efficency, if it is there to be had.

      Any improvements made to the boot times will affect all kinds of systems, from an old P100 (I have one runing Linux) to an Athlon.

      Embedded Linux developers go through all sorts of hoops to clean up the boot system for each device. It's not so much that they need a less flexible system (tho that is true to a degree), but because the Linux/UNIX boot system is so damn bloated.

    22. Re:PowerPC Linux users had compiled boot 'scripts' by Bob+Uhl · · Score: 1
      But what one gains in boot speed one loses in hackability. The shell is the natural vehicle for launching multiple progs, for handling input/output &c. Writing C to do the same thing, reliably, as a shell script would be painful. And all the nitty-gritty error handling, string-munging &c. would suck.

      There's a reason for higher-level languages. C isn't as fast as assembler--but it's a lot more fun to write in, and less error-prone too. Shell isn't as fast as C--but it's a lot more fun to write in, and less error prone too.

      Now, there might be a place for a shell-to-C compiler, but then the hackability of the start scripts is reduced.

    23. Re:PowerPC Linux users had compiled boot 'scripts' by Anonymous Coward · · Score: 0

      What is wrong with

      > /var/run/utmp

      if you are using a 'sh' style shell? Of course 'csh' style shells say something like 'Invalid null command'.

  57. Re:FIFTH POST by Anonymous Coward · · Score: 0

    Dumm-dee-dummm. Am I in your way?

  58. The best way to spend less time rebooting by taj · · Score: 1


    Buy hardware that will not fail.

    This isn't 1995. Even w32 is almost as stable as most of the $15 power supplies out there.

    1. Re:The best way to spend less time rebooting by Skreech · · Score: 1

      Indeed, my parents both have matching systems that I built, and both run Windows 2000 professional. Sometimes they call me when they're having weird issues. I have taught them how to check their uptimes, and when they check, it's usually 2 weeks.

      "Time to reboot," I say.

      Of course, maybe the way they browse the web is an issue. They both leave windows open to webpages instead of making bookmarks. When I get to see their taskbar, it's usually full of buttons that are taller than they are wide.

      Guess that's why they don't want to reboot.

    2. Re:The best way to spend less time rebooting by Anonymous Coward · · Score: 0

      Who mentioned Windows, wierdo. But I did LMAO at the two weeks bit, who are you trying to kid?

    3. Re:The best way to spend less time rebooting by Skreech · · Score: 1

      The point was, the uptimes under win32 were fine, given decent hardware. Decent uptimes given decent hardware was the point of the post I was replying to.

      And two weeks is no joke. They seriously don't do anything other than browse the web and email. I was amazed, I cant even get my win32 system to do that with identical hardware.

      They just dont mess around with the system much. When you're paying attention to other things like they are, two weeks go by fast.

      Run windows on some decent hardware, maybe you wont think it's too laughable.

  59. They do have an off button by Chapium · · Score: 1

    Some of us do turn our computers off now and then when we aren't using them. Saves on power... and my ears.

    Slow boot time is just one of many other reasons to use winXP over linux for the desktop user

    1. Re:They do have an off button by Anonymous Coward · · Score: 0

      The biggest power hogs in your computer are the monitor and the hard disk. Thankfully we have a method which powers them down after a period of activity!

      Yes both XP and Linux can do this.

      Check it out!

    2. Re:They do have an off button by jcast · · Score: 1

      Slow boot time is just one of many other reasons to use winXP over linux for the desktop user

      Wait a second, you mean XP's dismal boot time is a feature?
      --
      There are reasons why democracy does not work nearly as well as capitalism.
      -- David D. Friedman
  60. Re:Faster Booting by Anonymous Coward · · Score: 0

    Yeah, but putting your off computer over a treadmill is not running your computer.
    And that is absolutly the only way that a MS system will run for a couple of months.

  61. Oh, Yeah? by Anonymous Coward · · Score: 0

    delt@user:~$ uname -a
    Linux 0.1 0.0.1 #1 Mon Jan 2 04:32:56 PST 1991 unknown
    delt@user:~$ uptime
    4:17pm up 4029 days, 5:13, 7 users, load average: 0.04, 0.14, 0.16

  62. James Hunt? by Zocalo · · Score: 1

    I am the only one to notice the author's name is "James Hunt", as in the ex F1 racing driver "Hunt the Shunt"? It's not the same guy according to the quite amusing bio at the bottom, but let's hope that they just have making things go faster in common, and not having crashes as well. ;)

    --
    UNIX? They're not even circumcised! Savages!
  63. Aah! My Linux! by Anonymous Coward · · Score: 0

    I'm not supposed to get jigs in it!

  64. boot this by Anonymous Coward · · Score: 0

    http://www.sciencedaily.com/releases/2003/09/03091 8071025.htm

  65. who cares? by inkedmn · · Score: 1

    so what if somebody develops a way to decrease boot time by half? it's not like it takes 3 hours!!
    booting up in 2 minutes instead of 4 is somewhere near that bitchin' clear case mod on my list of priorites, honestly...

    --
    well, it's nothing one behind the ear wouldn't cure
  66. IMPORTANT MESSAGE FOR KIDRETARD: by Anonymous Coward · · Score: 0

    u write like a retard w/all those slashes b/c it makes u look stupid b/c oh hell nobody fucking cares what u have to say anyway best wishes kthxbi

  67. Parallel startup implemented in Mac OS X by MotownAvi · · Score: 4, Interesting

    Bah. Mac OS X's done this since Jaguar.

    The big question is "how do you specify dependencies?" The article uses makefiles. In Mac OS X, each startup item has a properties file (associative array) that names the item and specifies all the items that it depends on (http://www.usenix.org/events/bsdcon02/full_papers /sanchez/sanchez_html/). Then SystemStarter makes a dependency graph and starts them up in parallel whenever possible (http://developer.apple.com/documentation/MacOSX/C onceptual/SystemOverview/BootingLogin/chapter_4_se ction_2.html).

    1. Re:Parallel startup implemented in Mac OS X by klui · · Score: 2, Insightful

      You beat me to it. OS X also implements dynamic disk mounts even for root. Disks are mounted and assigned to a device on a first-come first-served basis.

    2. Re:Parallel startup implemented in Mac OS X by Anonymous Coward · · Score: 0

      And it takes about 2 minutes for my Ti Powerbook to boot. No joke; it's unbelievably slow.

      Love the machine otherwise, but booting these puppys is just ridiculous.

    3. Re:Parallel startup implemented in Mac OS X by Klaruz · · Score: 1

      Turn on text mode booting. I'll bet you'll find the thing that takes a long time is detecting airport networks. At least, that's how it is on my ti powerbook. It doesn't bug me too much, I almost never turn it off, just put it to sleep.

    4. Re:Parallel startup implemented in Mac OS X by asv108 · · Score: 1
      Bah. Mac OS X's done this since Jaguar.

      And my iBook still takes 5 mins to boot.

    5. Re:Parallel startup implemented in Mac OS X by Anonymous Coward · · Score: 0

      My personal experimentation with these kinds of activities always falls back to a problem with failure conditions. A typical process will produce some output on the screen. A typical server has many processes that it starts.

      For example, assume that the network was not up. You would indeed get a rapid boot because all of the network-dependent services would fail to come up. On the other hand, the processes that would start would probably scroll the network failure message off the screen. I have a fast boot, but a non-functional server and may not notice that all is not right with the world immediately.

      A worse condition would appear if one of the services fail. that would be effectively hidden in the messages that scroll past the screen. You also have problems when two processes attempt to provide error output at the same time. A worse scenario is parallel starting two processes where one works and the other does not but the output is intermixed to make it indeterminable which failed without further inspection. Another drawback is the cumbersome nature of maintaining startup scripts in the makefile(s) that can still go in parallel (many/most development projects get sloppy and end up with makefiles that do not successfully build in parallel, the same will happen here).

      The good news is that many of these situations are resolvable. For example, MAKE can buffer output until a process is completely finished and then single-thread its reported output stream. It can also remove much of the output normally produced (use @). Most Linux startup processes only report a single line of output anyway so that would usually help, also.

  68. chkconfig on Debian? by gfilion · · Score: 1

    I've switched from RedHat to Debian not so long ago, and there does not seem to be a chkconfig utility on debian.

    Because of this, I've been changing the rc scripts manually, but it's a bit cumbersome. So, I'd like to know if there is an utility similar to chkconfig on debian?

    1. Re:chkconfig on Debian? by Zocalo · · Score: 1

      Why, yes there is! It's called ChkConfig funnily enough.

      --
      UNIX? They're not even circumcised! Savages!
    2. Re:chkconfig on Debian? by eddy · · Score: 1

      What does it do? Maybe you mean man update-rc.d?

      --
      Belief is the currency of delusion.
    3. Re:chkconfig on Debian? by Saint+Stephen · · Score: 1

      I use rcconf. It's pretty nice.

      Debian could seriously use some more ASYNC-ness in the rc scripts. These are the problems I have:

      (1) Hotplug experiences a timeout initing USB -- it detects all my devices and then there's a delay while it figures out that's all there is.

      (2) Mounting 200 GB Reiserfs partitions takes a couple seconds. These are just data/mpeg partitions, not app/os partitions, and I don't wanna mess with carving 'em up. No reason they can't mount in the background.

      (3) Lots of network services like SSH and EXIM start synchronously. There's no reason I can't get to a prompt and then just use those svcs once they finish initing. That's what Microsoft did from 2000 to XP to cut down on perceived boot time considerably.

    4. Re:chkconfig on Debian? by gfilion · · Score: 1

      I use rcconf. It's pretty nice.

      Thanks for the tip, exactly what I was looking for.

      2) Mounting 200 GB Reiserfs partitions takes a couple seconds. These are just data/mpeg partitions, not app/os partitions, and I don't wanna mess with carving 'em up. No reason they can't mount in the background.

      Couldn't you just set the noauto option for this partition in /etc/fstab then mount it manually later? Check out 'man fstab' and 'man mount' for more infos.

    5. Re:chkconfig on Debian? by Saint+Stephen · · Score: 1

      Thanks...
      HTH...
      Couldn't you just set the noauto option for this partition in /etc/fstab then mount it manually later?
      That's what I'm doing. Thanks!

    6. Re:chkconfig on Debian? by tubaman24 · · Score: 1

      Debian could seriously use some more ASYNC-ness in the rc scripts.

      You can parallelize the boot process by replacing "init" with "runit" in Debian (apt-get install runit).
    7. Re:chkconfig on Debian? by Saint+Stephen · · Score: 1

      Thanks. I'll see if it helps. For what it's worth, it takes 50 seconds from Lilo to Login for me "the old way". I installed runit-run, read the docs a bit, and rebooted. It only shaved off 5 seconds, but I saw it loading things in parallel. It also didn't start lots of things, but I saw I have to do that manually.

      Should I expect a dramatic speedup, or is there some other compelling benefit?

  69. netbsd rc.d by Fritz_the_Cat · · Score: 5, Informative

    I'm surprised someone hasn't pointed this out already. NetBSD's rc.d.has had support for dependencies for sometime.
    http://www.netbsd.org/guide/en/chap-rc. html

    Additionally, there's an article here. http://www.daemonnews.org/200108/rcdsystem.html

  70. make by chanceH · · Score: 1

    I like make.

    but I would NOT want to be involved in trying to debug a Makefile that was causing my machine to not boot properply. And I'm sure people who don't like dorking with Makefiles would feel even stronger about that. Just seems like it could get pretty nasty.

  71. Re:nice! by Anonymous Coward · · Score: 0

    uh, um, er, ah, yeah....

  72. Gentoo can do that too by Anonymous Coward · · Score: 2, Informative

    Gentoo can do that too, just edit /etc/conf.d/rc:

    RC_PARALLEL_STARTUP="yes"

    1. Re:Gentoo can do that too by Anonymous Coward · · Score: 0

      Heh. Missed that one. Thanks for the tip.

    2. Re:Gentoo can do that too by the+lone+crouton · · Score: 1

      Heh. I'll try it. Thanks for the tip.

    3. Re:Gentoo can do that too by the+lone+crouton · · Score: 1

      Yep, saved nearly 6 seconds! Yay.

  73. Another ways IBM can boot Linux faster... by Anonymous Coward · · Score: 0

    Another way to boot Linux faster is by not running it on a pSeries RS/6000. Anyone who gets to watch one of these things boot can tell you about the "fun" expierence of watching a three digit LCD POST code display roll through what appears to be a random sequence of numbers before either booting the OS or flashing 888.

  74. Who needs to reboot? by BadElf · · Score: 1

    I've been running Redhat Linux for about 1.5 years. The only time I've had to reboot was when I upgraded from RH 8.0 to RH 9.0. It still only took about a minute (compared to almost 3 minutes on my XP box w/same CPU). I really don't care how long it takes to reboot as long as I don't have to.

  75. buuuuutt...... by _Shorty-dammit · · Score: 1

    I thought you never rebooted linux...

  76. Question about runlevels... by Anonymous Coward · · Score: 0

    Newbie question, but on Linux, does it go through each runlevel up to the level that it wants, or does it go directly to that run level?

    For example, when Linux boots, does it first start at run level 1, then go into run level 2, then run level 3, then 4 and then 5? Or does it start off directly at run level 3, or 5, etc?

    I ask because I have seen the same services being started at different run levels, and they started with different numbers. Being a newbie, I didn't understand why there were multiple startup scripts that were starting the same daemons but with different numbers. I guess if they go directly at startup into a runlevel instead of progressing up through each run level, then this would make sense.

  77. Just use Jiffies by DrSkwid · · Score: 1

    http://www.zevv.nl/jiffies/

    JIFFIES
    This is an extremely simple patch for the 2.4 kernel. It creates a read/writable entry /proc/sys/kernel/jiffies, where you can get and set the current jiffies. To fake your systems uptime, write the required number of jiffies to this file :

    # echo 100000 > /proc/sys/kernel/jiffies

    Jiffies run at 100 per second on i386 systems, so calculate the uptime with

    jiffies = days * 8640000

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    1. Re:Just use Jiffies by CausticWindow · · Score: 4, Funny

      Remember to turn back the uptime when you sell your computer.

      --
      How small a thought it takes to fill a whole life
    2. Re:Just use Jiffies by Anonymous Coward · · Score: 0

      omg, thank you for that laugh. if i had a mod point, you would have gotten that instead. Or a beer.

  78. Apple did this in Jaguar by tim1724 · · Score: 4, Informative

    One of the things Apple did in Jaguar to speed up Mac OS X booting was to start services in parallel.

    Apple uses a different startup script system (see the references below) than other UNIX flavors, but it's a really cool system. It uses dependency information rather than carefully-assigned integers to determine load order, so when they decided to add parallel service starting it was easy .. the dependency information was already there.

    I'd love to see Linux or *BSD distributions adopt this system, as it's really cool to type SystemStarter start foo and have it automatically load all the dependencies for foo before starting foo itself. Plus adding services means just copying a directory into place .. no worrying about making links in /etc/rc?.d or getting the ordering right.

    Relevant documentation:

    --
    -- Tim Buchheim
    1. Re:Apple did this in Jaguar by nvrrobx · · Score: 2, Informative

      Oooh I know I'm going to get flamed for this.

      On a Windows box:

      net start w3svc

      That will start IISAdmin automagically too. :)

      Gentoo's init scripts have dependency checking too. Now, if they started in parallel.. Wheee! That would certainly rock for bootup time on my laptop.

    2. Re:Apple did this in Jaguar by Hard_Code · · Score: 1

      YES. Linux needs this badly (well, any *nix). Somebody please create a Linux version, you will be loved forever.

      /me hammers the stake into Sys V init's bloated corpse

      --

      It's 10 PM. Do you know if you're un-American?
    3. Re:Apple did this in Jaguar by mib · · Score: 1

      Anyone know where/if you can get the source for SystemStarter? With a bit of tweaking it sounds like it'd be perfect for a batch processing harness I need, and would save me a bunch of work.

      I tried navigating the apple open source areas, but I got stuck in a twisty maze of passages all alike.

      - mib

    4. Re:Apple did this in Jaguar by tim1724 · · Score: 1

      You can find it in SystemStarter directory of the CVS repository. (The above link is to the CVSWeb page .. you can also get direct CVS access)

      Note that most of Apple's code relies on their CoreFoundation libraries, so you may have to snag those as well.

      --
      -- Tim Buchheim
  79. Can't post now... by azzy · · Score: 1

    Have to read the article, understand it, try it out, calculate old and new boot times, then post to try and get fp..

    hmmm

  80. Predicted Predicted response by nickgrieve · · Score: 1

    Uptime == unpatched

    1. Re:Predicted Predicted response by arkane1234 · · Score: 1

      I agree with that, most definately.

      Especially with the kernel issues that have popped up in the past year or two.

      --
      -- This space for lease, low setup fee, inquire within!
    2. Re:Predicted Predicted response by joe90 · · Score: 1

      Uptime != unpatched.

      There are very few patches requiring a reboot.

      But I would like to see parallel boot processing become mainstream rather than having to be hand-tuned for each box or config.

      This has advantages for systems requiring a reasonably high level of availability (providing a faster restart time after planned or unplanned outages), and for those users who use linux as their daily desktop or laptop.

      --

      Fast, cheap & reliable. Pick two.
    3. Re:Predicted Predicted response by Anonymous Coward · · Score: 0

      > Uptime != unpatched.
      > There are very few patches requiring a reboot.

      OK, I'll further qualify the other poster's remark:

      Uptime == unpatched kernel. And yes, there have been several kernel security patches in the past 400-odd days.

    4. Re:Predicted Predicted response by Karrots · · Score: 3, Interesting
      I know the Gentoo start up scripts can do this. Well I take that back I don't know if they actually do it. But they have a setting for it. As you can see mine is off at the moment.
      # Set to "yes" if you want the rc system to try and start services
      # in parallel for slight speed improvement.

      RC_PARALLEL_STARTUP="no"
    5. Re:Predicted Predicted response by mAineAc · · Score: 1

      as far as I know you don't have to reboot a linux machine to patch it. You can even reload a new kernel without patching it.

    6. Re:Predicted Predicted response by dmaxwell · · Score: 2, Interesting

      Kernel vulnerabilities are fairly rare. A new kernel is the only thing that mandates a complete system restart when upgraded. Linux and the BSDs got this right; it's the one overall thing I don't like about OS X. At most, OS X should only have to restart the GUI and close apps for most system patches....but nnnnooooo. Sheesh guys, you trumpet "the Power Of Unix"; use some of it.

    7. Re:Predicted Predicted response by Pharmboy · · Score: 2, Informative

      as far as I know you don't have to reboot a linux machine to patch it. You can even reload a new kernel without patching it.

      If you are talking about a module, maybe, but not a completely new kernel version. Many (if not most) of us are using RH 'official' kernels instead of building our own now. Since most of the non-essentials are modules anyway, they are actually pretty efficient kernels. I do build my own kernels on VERY specific application servers, but really its just so I remember how to. Since this article is about cutting boot times, its not really relevant to servers anyway.

      Most of my servers spend more time POSTing than booting (Dell and IBM) so cutting the time in 1/2 that the init scripts loads will only save 10%-20% of the boot time. Not that important for a box I install a new kernel on, then schedule a reboot (not wise) or just get to work early and reboot first thing in the morning while the coffee brews. Not getting hits/traffic/use at 7am, and only have to do maybe twice a year, since not every kernel bug affects every server.

      --
      Tequila: It's not just for breakfast anymore!
    8. Re:Predicted Predicted response by citog · · Score: 2, Interesting

      .. and it isn't the quickest to reboot either! Mind you, I don't find I'm rebooting that frequently compared to my Windows machine.

    9. Re:Predicted Predicted response by Anonymous Coward · · Score: 0

      Most patches do not require reboots of the system to apply them. (Well for *BSD at least :P)

      I had a server running over 700 days that was under constant maintaince, not vulnerable to the listed known exploits.

      Proper administration of a sytem should allow uninterrupted access for extended periods of time.

  81. Should that be... by slipgun · · Score: 1

    the effectiveness can vary widly from machine to machine.

    Should that be wildly or widely?

    --
    SpamNet - a spam blocker that really works
    1. Re:Should that be... by hplasm · · Score: 1
      widdly.

      (widdly-wee!!)

      sorry.

      --
      ...and he grinned, like a fox eating shit out of a wire brush.
  82. Automated dependency check? by Atario · · Score: 1

    Is this not possible? It would sure beat having to manually cruft together a dependency file yourself (and change it when you upgrade/patch something).

    --
    "A great democracy must be progressive or it will soon cease to be a great democracy." --Theodore Roosevelt
  83. Re:Faster Booting by Anonymous Coward · · Score: 0

    Liar.

    There's no such thing as X-windows, thus you're lying.

  84. LinuxBIOS = 3 second boot by DrSkwid · · Score: 1

    http://www.linuxbios.org

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    1. Re:LinuxBIOS = 3 second boot by CausticWindow · · Score: 1

      That's interesting, hadn't heard of it before.

      But why is it sponsored by Los Alamos National Laboratories? Are they using Linux in their MOABs? Guess that 3 second boot would really come in handy then.

      --
      How small a thought it takes to fill a whole life
    2. Re:LinuxBIOS = 3 second boot by DrSkwid · · Score: 1

      For their clusters.

      They like to reboot between jobs.

      --
      There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    3. Re:LinuxBIOS = 3 second boot by Anonymous Coward · · Score: 0

      If only it worked on more hardware and was easier to set up.

    4. Re:LinuxBIOS = 3 second boot by DeathPenguin · · Score: 1

      3 seconds is with a pretty minimal set of services. I've booted a four-node BProc (Beowulf, sorta) cluster made out of miniature biscuit boards based off the National Semiconductor Geode NX-1 in about 4.5 seconds. However, there's no SSH, no FTP, no XFS, no system logger, etc. but only bpslave. After that, I can use commands from the master node on the slave node through bpsh.

      Don't get me wrong, LinuxBIOS is still a great idea for a wide variety of systems since you can still use a bootloader such as ADLO to boot Windows or FreeBSD and other OSes as well as Linux. However, LinuxBIOS only gets you so far as to initialize your hardware. From there, the bootloader or ELF loader or whatever you have starts the kernel, and from there you start your services. For a desktop system or server, you need tons of services.

      LinuxBIOS is just that, a BIOS replacement that utilizes Linux. Here's Linus' take on BIOSes from boot/setup.S:
      # Well, that certainly wasn't fun :-(. Hopefully it works, and we don't
      # need no steenking BIOS anyway (except for the initial loading :-).
      # The BIOS-routine wants lots of unnecessary data, and it's less
      # "interesting" anyway.
      LinuxBIOS does that initial loading, ie initializing the CPU(s), memory, IRQ routing, etc, but without gathering the 'unnecessary data' that makes legacy BIOSes compatible with DOS and consequently very slow.

      I'm very interested in this idea from IBM (Or more specifically, James Hunt). Combined with LinuxBIOS, the parallel system services stuff could make Linux and similar OSes boot much, much faster to a fully usable state.

    5. Re:LinuxBIOS = 3 second boot by DrSkwid · · Score: 1

      To boot a cpu server using linuxBios and plan9 takes 30 seconds.

      A cpu server is analagous to a unix server accepting ssh connections.

      --
      There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  85. Re: "you only need to boot it up once" by Anonymous Coward · · Score: 0

    > I'm afraid that if you have a laptop, boot time is quite important. Doing suspend/resume with X running is not reliable.

    This probably depends a lot on the specific chipset. I've only used it on a thinkpad with a neomagic and a toshiba with an s3 savage vga, but I've never had a suspend/resume failure. I'm talking of months between a reboot/shutdown, I must have suspended/resumed it at least a hundred times. If you have a problem with it, would it help to switch to a vt first, before you suspend?

  86. power down? Grid!! by LinuxHam · · Score: 2, Insightful

    And if you stick around long enough at DeveloperWorks, you'll make a grid out of those PCs and offer the district more compute power than they ever realized they had.

    --
    Intelligent Life on Earth
    1. Re:power down? Grid!! by kcurtis · · Score: 1

      I really, really wish I could move more toward linux (with all the benefits, like the grid idea), but *Off Topic* I can't get the reading and math programs that are the core apps for my grammar schools in Linux. Or to work with Wine.

      With 21 grammar schools, three middle schools, and three high schools, this would be a major money saving move if I could. Oh well.

      Maybe this is an "Ask Slashdot" idea. *shrug*

    2. Re:power down? Grid!! by AstroDrabb · · Score: 1

      Have you looked for any alternatives? What are the names of the applications that you are trying to use? I could try them under Cross Over Office, Wine and wineX. Have you emailed the company that makes these programs to voice your opinions?

      --
      If Tyranny and Oppression come to this land,
      it will be in the guise of fighting a foreign enemy. -James Madison
    3. Re:power down? Grid!! by kcurtis · · Score: 1

      I'll post rather than email in the hope that someone reads this.

      Star Reading
      Star Math
      SRA Reading

      (Star stuff is unrelated to star office)

      They do centralized reading/math skills tests and analysis for the teachers. Help map trends, and can be matched to standardized state tests.

      I've already read that the Star stuff is not ported to *nix, but is only Win/Mac.

    4. Re:power down? Grid!! by Licensed2Hack · · Score: 1

      Have you contacted the developers at www.winehq.org or www.transgaming.com (winex) about this?

      You say the Star Reading and Star Math programs run on Mac. Mac OS X is BSD based, which is a *nix. I know almost nothing about Macs, but that should make it fairly easy to port to X11 on GNU/Linux.

      For the Mac people, is Mac OS X a superset of X11? (I.e., can you run X11 binaries) If so then having this company that makes Star [Reading|Math] change to X11 would give them the best of both worlds...

    5. Re:power down? Grid!! by Anonymous Coward · · Score: 0

      The Mac OS X GUI is completely unrelated to X11 (thank god). An X11 server can be run within the Mac GUI, but this doesn't help us here.

    6. Re:power down? Grid!! by odaiwai · · Score: 1

      > I.e., can you run X11 binaries

      Just what is an X11 binary? X11 is the windowing system and is not related to OSX, which is a Mac operating system.

      dave

    7. Re:power down? Grid!! by Daengbo · · Score: 1

      You should subscribe to the K12LTSP mailing list, because I know that a lot of guys are struggling witht he same problems, and even have a petition running. I think that most use Win4Lin to solve the problem, but you might post over there. Many helpful people wait to help you.

    8. Re:power down? Grid!! by DrPascal · · Score: 1

      A binary linked to xlib, of course!

      [stands there in complete silence with a cheesy smile on his face then leaves the room]

      --
      DrPascal: Not the language, the mathematician.
  87. I have discovered a way by spacemky · · Score: 1

    to boot my linux boxes in less than 10 seconds, and I only have to use 1 command to accomplish this!

    [root@linuxbox]# rm -rf /etc/rc.d
    [root@linuxbox]# shutdown -r now

    --
    640YB ought to be enough for anybody.
  88. easy to way to speed up... by Coneasfast · · Score: 1

    change distributions!

    a couple of months back i tried redhat and mandrake, both took a painfully long time to boot up, both debian and slackware (which is what i use) take little time to bootup (same as windows 98 you can say)..

    so for the redhat/mandrake users one solution would be to switch distributions and the difference *will* be noticeable by a lot, slackware 9 is very fast to bootup

    this is just something i found out, but off course i can understand many people would not want to switch distributions just for this reason alone

    --
    Marge, get me your address book, 4 beers, and my conversation hat.
  89. Serel? by Anonymous Coward · · Score: 0

    Uhm, didn't slashdot cover parallel service startup before? Does nobody else remember/use Serel?

    http://www.fastboot.org/

  90. Well, reliability varies greatly by The+Revolutionary · · Score: 1

    I don't know that I've ever had a problem with suspend-to-ram on my Inspiron 8200 laptop with apm. I don't have suspend-to-disk (because while the bios has a key combo for it, there is no bios code to actually handle it).

    I've also heard a lot of success stories with apci.

    Are there really a lot of people running reasonably modern systems who absolutely can not get at least suspend-to-ram to work reliably?

    1. Re:Well, reliability varies greatly by aonifer · · Score: 1

      I can't, though I haven't tried very hard lately. The latest version of swsusp will suspend fine, but upon resume will reboot right after reading the RAM image.

      I have a year-old Sony VAIO.

  91. Re:ms dos boot 2 seconds by Anonymous Coward · · Score: 0

    And look what DOS could do. Wow.

  92. Been there, done that by CausticWindow · · Score: 3, Informative

    Pah. Mac OS X have done this since 10.2.

    The large question is "how do you specify inter dependencies?" The article uses makefiles. In Mac OS X Jaguar, each startup item has a properties file (associative array, the indexes are strings) that lists the item and defines all the other parts that it depends on. Thereafter SystemStarter makes a dependency tree and starts them up in parallax whenever possible or when it feels like.

    --
    How small a thought it takes to fill a whole life
  93. MRAM in 2004? by focuss · · Score: 1

    One of many possible links
    MRAM is showing promise as the next big fast-boot solution, regardless of the OS.
    Cross that with Linux or *BSD and we'll start seeing laptops and PDAa with multi-year uptimes.

    --
    burnt sig
  94. Nostalgy by Peaker · · Score: 3, Informative

    I have started a discussion on Debian Devel about this quite a long while ago.

    It sure is nice to see that my idea is being implemented...

    However, as others mentioned there are quite a few problems with this approach.

    One, is that it is very difficult to use make to perform the reverse (shutdown) using the same input data as the boot.

    Another problem, one that I had no time to solve, and seems to not be addressed at all by the article, is that running services in parallel also logs things in parallel. Intermixed logs are quite unfriendly to read.

    The plan a few of us at Debian Devel devised was a mini-text-window-manager for the output logs, but noone got around to implementing it.

    Lastly, the most serious problem with this approach, was legacy support. Inserting this system into Debian, at least, required that all service package maintainers provide extra dependency information about their packages. This problem was the least feasible to solve.

    Thus, my little project died then - and seems to now be revived by IBM :)

    1. Re:Nostalgy by screenrc · · Score: 1
      Why make simple things complecated? Sure,
      a faster bootup might be a benefit for a few
      people, but how about the rest of us? Can you
      imagine having to troubleshoot this thing
      when each time it boot in (mostly) unpredictable
      ways. And how can you provide support to
      the users when they cannot repeat the
      sequence that gave them trouble?


      I think the benefits of speedup will not
      appear as benefits when users are forced into
      such unecessary, complecated, and unpredictable
      madness.

    2. Re:Nostalgy by amck · · Score: 1

      While I agree that this is a good thing to do, and the mechanism of labelling dependencies is a good idea, the practice of running /etc/rc.d
      scripts in parallel gives me shivers.

      Debugging race conditions in the shell scripts is going to be fun. And I'm not sure I want my server to do it: I'd want the option of a safe, slow, serial booting order for my servers.

      The booting /etc/rc.d can change a fair amount: catching correct dependencies may not be as easy, or as static a task as it sounds. And you have the fun prospect that the expert linux users, who are the most useful to help you debug these issues, don't reboot: only newbies do, so getting good error reports will take time.

      - Alastair

      --
      Anyone who believes exponential growth can go on forever in a finite world is either a madman or an economist
    3. Re:Nostalgy by bjg1492 · · Score: 1

      Another problem, one that I had no time to solve, and seems to not be addressed at all by the article, is that running services in parallel also logs things in parallel. Intermixed logs are quite unfriendly to read.

      It appears this is done by the Makefile.

      Log to separate files then merge at the end...

    4. Re:Nostalgy by Gunstick · · Score: 1

      This is my really simple idea how to make a sysV boot in parallel.
      Keep it all like it is and just change the rc script to this: if the numbers are the same, start those in parallel.
      Then just change the S* links to identical numbers where you know they can be paralellized.

      Result is that installers can dump their init scripts as before and they will boot fine.

      Georges

      --
      Atari rules... ermm... ruled.
  95. I can see it now... by agwis · · Score: 1

    We'll need a new command called bootuptime! Instead of flaunting 'uptime' to my poor misguided Microsoft user friends, I could ooh and awe them with my incredibly short 'bootuptime' figures.

    *Check it out! 3 months ago when I booted up my linux box it only took 5 seconds!*

  96. perfect /. timing yet again (GRUB help?) by LinuxHam · · Score: 0, Offtopic

    I'm trying to get a quirky PC to boot Debian 3r1, and I can't get it to boot without the rescue floppy.

    LILO gave L 40 40 (repeat indefinitely) at first. I added

    device hda=0x80

    to lilo.conf and that replaced the L 40's with just LI. Compiled a 2.4 kernel, and now I get

    LILO
    L

    instead of

    LILO
    Uncompressing Linux......................

    so I decided to try GRUB, and now the system boots to the grub CLI, and when I try to specify my 2.4 kernel, I get Error 13, unknown or unsupported kernel format. I'm currently recompiling the kernel as a.out format instead of ELF, but it'll take another hour.

    Anyone have any tips? And no, the PC isn't bad, or the RAM, or the hdd's.. I've had this machine running for about four years.. it ran multiple versions of RH6 and 7 before they decided to require a minimum of 64MB RAM. Any help on getting GRUB working would be appreciated.

    --
    Intelligent Life on Earth
    1. Re:perfect /. timing yet again (GRUB help?) by Anonymous Coward · · Score: 0

      LILO start message
      - - - - - - - - -

      When LILO loads itself, it displays the word "LILO". Each letter is printed
      before or after performing some specific action. If LILO fails at some
      point, the letters printed so far can be used to identify the problem. This
      is described in more detail in the technical overview.

      Note that some hex digits may be inserted after the first "L" if a
      transient disk problem occurs. Unless LILO stops at that point, generating
      an endless stream of error codes, such hex digits do not indicate a severe
      problem.

      () No part of LILO has been loaded. LILO either isn't installed
      or the partition on which its boot sector is located isn't active.
      L ... The first stage boot loader has been loaded and started,
      but it can't load the second stage boot loader. The two-digit error
      codes indicate the type of problem. (See also section "Disk error
      codes".) This condition usually indicates a media failure or a geometry
      mismatch (e.g. bad disk parameters, see section "Disk geometry").
      LI The first stage boot loader was able to load the second stage boot
      loader, but has failed to execute it. This can either be caused by a
      geometry mismatch or by moving /boot/boot.b without running the map
      installer.
      LIL The second stage boot loader has been started, but it can't load
      the descriptor table from the map file. This is typically caused by a
      media failure or by a geometry mismatch.
      LIL? The second stage boot loader has been loaded at an incorrect
      address. This is typically caused by a subtle geometry mismatch or by
      moving /boot/boot.b without running the map installer.
      LIL- The descriptor table is corrupt. This can either be caused by a
      geometry mismatch or by moving /boot/map without running the map
      installer.
      LILO All parts of LILO have been successfully loaded.

  97. Very Discriminating My Friend by tds67 · · Score: 2, Funny

    JIFFIES

    This is an extremely simple patch for the 2.4 kernel. It creates a read/writable entry /proc/sys/kernel/jiffies, where you can get and set the current jiffies. To fake your systems uptime, write the required number of jiffies to this file :

    # echo 100000 > /proc/sys/kernel/jiffies

    Nice way to solve this problem. You really must have a refined sense of good taste, because only choosy mothers choose jiffies.

  98. QNX has had this for years by Anonymous Coward · · Score: 1, Informative
    QNX does this more or less automatically. Under QNX, drivers and file systems are just programs. All the kernel does is pass messages around. As programs start up and take over sections of the pathname space, creating what look like directories in /dev, /fs, and so forth, other programs can start using those services.

    So all a program has to do is to wait for the pathname it needs to appear. There's a "waitfor" command in boot scripts for this, or programs can just wait for the pathname to come up, then go.

    There's an enormous architectural advantage to having unified interprocess communication as a primitive, rather than an afterthought.

  99. That's exactly what I wrote minit for by Fefe · · Score: 5, Informative

    See www.fefe.de/minit/ for info about the project.

    It's a tiny statically linked init that besides offering make-like dependencies to load services in parallel also offers ways to avoid spawning a thousand shell and utility processes in the boot process.

    On my notebook, it takes less than a second from the start of init to a login prompt. In fact the latency is so small that I have never used the APM or ACPI suspend mode any more, I just turn the notebook off and on again. That's actually faster than the BIOS suspend-to-disk feature.

    minit also has other benefits over standard init: you can ask init for the PID of services like sshd without PID files and thus even on read-only media like a CD-ROM without initial RAM disk or shmfs.

    It's Linux only, though. And you need the diet libc for full effect (52k memory footprint for init on my desktop, including shared read-only pages).

    1. Re:That's exactly what I wrote minit for by Anonymous Coward · · Score: 0

      what about twsinit? :)

    2. Re:That's exactly what I wrote minit for by Anonymous Coward · · Score: 0
      minit also has other benefits over standard init: you can ask init for the PID of services like sshd without PID files

      This could be dangerous. How do you figure out which sshd is the parent process and which ones are the children?

      Say you need to upgrade your openssh to 3.7.1 and say that you do not have physical access to the machine but rather are doing it over ssh. The proper way to do this is to install it (modern Unix variants allow you to overwrite binaries even if they're in use), kill off the parent sshd which is listening on port 22 and start up the new sshd. If you kill the wrong process, you could lock yourself out of the machine.

      So how does minit handle this? If it does figure out the parent, what does it use? I can't think of any standard way to do this, so that would limit portability.

      Still, this is cool and needed. It'd be nice if there were some program "ppid" that would give you the ppid given a pid. You could then draw a process graph in shell and it makes it easy to programatically upgrade sshd, for instance.

    3. Re:That's exactly what I wrote minit for by Anonymous Coward · · Score: 0

      If you fork and exec the sshd and tell it not to fork in the background (-D), you automatically have the PID of the process (it's the return value of your fork).

      This is portable and more reliable than PID files.

  100. I only boot once a year by codepunk · · Score: 0, Redundant

    I have lots of linux boxes and I only boot them once every year or so just to say I did. Who cares if it takes a minute to boot when it is gonna be up for year anyhow.

    --


    Got Code?
  101. Um...DUH? by Anonymous Coward · · Score: 0

    I didn't think you had to be a linux guru (or for that matter a huge multinational corporation with millions/yr in development, to know to remove unneeded services from the init directories..DUH.

    As with Windowz(shudder), often there are services that run at boot that shouldnt be.

    Init run levels are your friend

  102. Boot Time! by appleLaserWriter · · Score: 1

    I borrowed an iBook with OS X for a few weeks and was amazed to discover that you could suspend and resume it all week long without trouble.

    After booting Linux out of my apartment, I bought my own TiBook. Apple's startup times could use some improvement.

    Now I run Linux in the machine room, and OS X on the desktop.

    1. Re:Boot Time! by follower-fillet · · Score: 1

      > I borrowed an iBook with OS X for a few weeks and was amazed to discover
      > that you could suspend and resume it all week long without trouble.
      Oh yeah, that's *so* sweet--since I started doing that I've had 2 x 35+ days uptime. (Would've been longer but I had a hardware failure...) It makes a huge difference to how you work.

  103. I've been doing it since 1999. by pr0ntab · · Score: 5, Informative

    My first linux Mandrake box, I went through and parallelized my rc directories. The trick was to have fake S** entries that spawn off what can be done in parallel.

    Albeit makefile based (done by hand), but I was getting my boot times down to 23 seconds on an aging Pentium MMX, with tons of unnecessary services. (I know better know, :-P)

    Too bad there wasn't any way I could have done that to Windows 98. It was a DOG!

    XP is much better, but it doesn't boot much faster than that fast on my new box even today.

    --
    Fuck Beta. Fuck Dice
  104. Some older implementations of this idea by Daniel+Quinlan · · Score: 1
    I think I first heard about this concept from Richard Gooch who, not surprisingly, wrote an implementation based on the util-linux init implementation. See Linux Boot Scripts, Richard Gooch for more information.

    Midori Linux also has parallel boot scripts which really helps speed up the boot process on the devices that use it. The design is very nice (and based on Richard Gooch's) and doesn't rely on "make". It's named quickinit (it's just a .tar.gz despite the .mlz extension).

    I'm not sure using "make" is the best way to implement this although it is an interesting idea. "init" can manage dependencies without too much additional code. The Gooch/Midori systems are nice because dependencies are implemented as simple commands in the init scripts. You just add a "need <service>" command and it will block until the service is available. If I recall correctly, quickinit basically managed a full dependency tree whereas the Gooch version maintained a simple list (which works fine until you want to do something more complicated like restarting X windows or handle resume/suspend using the init system). It's too bad no major distributions have picked up this idea.

    Of course, rebooting needs to be first stable and second fast. It's not like we want to reboot all that often. :-)

  105. Re:Faster Booting by Overly+Critical+Guy · · Score: 1

    No, you don't.

    Especially with the currently in-beta MSI 2.0, which never requires a reboot, even for system updates, which Linux can't claim.

    --
    "Sufferin' succotash."
  106. Which is exactly why... by pr0ntab · · Score: 1

    you use make -j (some sane number)

    Makefiles list dependencies, and the commands (shell commands) that you have to run to resolve them.

    Using make -j n to run it schedules any operations in parallel (up to n threads), which does blocking on a "dependancy" level.

    The scripts must be serial. If not, you'd have a hell of a time writing them. ;-)

    Best to keep them small, so the total parallelization can improve on a macroscopic level.

    --
    Fuck Beta. Fuck Dice
  107. tsk... by pr0ntab · · Score: 1

    if it was an embedded device you'd ideally set init=/bin/your_main_program and there'd be no initialization sequence. your_main_program could spawn additional processes and configure interfaces at it's discretion, etc.

    You'd be using kmod with the dependancies pre-hashed out, or a statically linked kernel, eliminating the need for hardware setup stage.
    You do all the hard work up front and get it down to a single executable or single shell script that does only what it needs, and that's it.

    --
    Fuck Beta. Fuck Dice
  108. RCng by Z4rd0Z · · Score: 1

    There's a really nice solution for at least part of this problem already available: RCng. I don't know if it parallelizes the startup scripts, perhaps it could be hacked to do so, but it does its own dependency checking so you wouldn't have to invoke make (blech!).

    --
    You had me at "dicks fuck assholes".
  109. Laptops by Overly+Critical+Guy · · Score: 1

    Try that with a laptop and see what happens.

    --
    "Sufferin' succotash."
    1. Re:Laptops by pete-classic · · Score: 1

      #apm -s

      -Peter

  110. Richard Gooch boot scripts by Anonymous Coward · · Score: 0

    I'm surprised that no-one has mentioned Richard Gooch's work on this:

    http://www.atnf.csiro.au/people/rgooch/linux/boo t- scripts/index.html

    As you might know, he is the author of the linux devfs, amongst other things

  111. I got one down to about 3 seconds. by AxelTorvalds · · Score: 2, Interesting
    It was a Pentium 300 Mhz class machine in an embedded device. I had the kernel in flash and used my own variation of the linuxbios project.

    My best times were power on to init in about 2.7 seconds. By the time we got the "authentication code" and what not in it was closer to 30 seconds.

    Take all that BIOS stuff out and create a truely lean and mean setup with minimal init scripts and you can blaze. Longest step was copying the kernel from slow-mo flash memory in to RAM...

  112. What's more... by pr0ntab · · Score: 1

    there are some stages where an init script is waiting for hardware to initialize (USB), or for a network timeout interval, or just plain sleeps to wait for stuff to "settle", and so on.

    I highly doubt the parent's CPU load pushes an average of 0.5 during init. If it peaks a lot, then you could gain a little benefit from dual CPU, but not much.

    --
    Fuck Beta. Fuck Dice
  113. In Capitalist America by Talez · · Score: 1

    You wouldn't be too far wrong either. While I don't have the specific numbers, Microsoft have been using these sorts of fast booting techniques for Windows XP.

  114. What's the big deal? by mog007 · · Score: 1

    My Apple IIe boots up instantly.

    The screen takes longer to start up than the computer....

  115. Linux DID adopt it. by Balinares · · Score: 2, Informative

    > I'd love to see Linux or *BSD distributions adopt this system,
    > as it's really cool to type SystemStarter start foo and have it
    > automatically load all the dependencies for foo before starting
    > foo itself.

    Gentoo has been working that way for years, and if Gentoo does it, there are certainly other distros that work that way as well.

    --

    -- B.
    This sig does in fact not have the property it claims not to have.
  116. NT uses prolog to dependency analysis by cramhead · · Score: 1

    I heard that NT uses prolog to work out dependencies. This may be a cool and simple option for working out dependencies in the Linux boot up. May be useful for package management too.

    1. Re:NT uses prolog to dependency analysis by glenstar · · Score: 1

      yes, it does. And at least up to NT4 there was prolog in the network stack as well.

  117. Richard Gooch's method by ldamerow · · Score: 3, Informative

    Richard Gooch published an interesting implementation of parallel init scripts almost a year ago: http://www.atnf.csiro.au/people/rgooch/linux/boot- scripts

  118. Things the article missed by menscher · · Score: 1
    The article gives an example of needing to start 4 things, that each take 10 seconds. That's 40 seconds. But if items 2, 3, and 4 are not dependent on each other, only on item 1, then they can start at the same time, for a total of 20 seconds. That's where they're getting their number of cutting boot time in half.

    Anyone else see why this is stupid? Ok, here's a hint: you don't have three processors. Items 2, 3, and 4 will have to compete for CPU time.

    Yes, it will be faster. But is it worth spending a day tweaking your settings, rebooting repeatedly in hopes of shortening the time by a tiny fraction that nobody will notice? I think the answer should be obvious. Well, to everyone but those silly Gentoo users, anyway.

  119. Establishing dependencies by MobyDisk · · Score: 1

    Why doesn't Linux have a systematic way to establish dependencies for each service? I'm a Windoze user (yes, scoff at me if you will) and I see this as a case where Windows is superior. Every service can enumerate its dependencies, and the OS starts the dependencies in the proper order. Being a Linux newbie, I assumed it did the same.

    1) Is there any plan to change this?
    2) I see comments indicating that Apple did this successfully. If so, can we learn from their implementation and do something similar?
    3) What do BSD, and that various Unices do? Do they all have this limitation?

    1. Re:Establishing dependencies by zenyu · · Score: 1


      1) Is there any plan to change this?
      2) I see comments indicating that Apple did this successfully. If so, can we learn from their implementation and do something similar?
      3) What do BSD, and that various Unices do? Do they all have this limitation?

      1) People talk about it, but as someone else noted it makes for ugly logs if you start services in parallel without some kind of management of the output from each service.
      2) probably
      3) Gentoo has dependencies, but only so it can start required services before the one you request, I believe the same is true of one or more of the BSD's. It shouldn't be too hard to add a "fastboot" option to the init scripts that defaults to on to systems that already track dependencies. But we do need some better dependency editing than offered by Gentoo. I gave up on it on my laptop because it has only hard dependencies, when my WiFi card can't find a network at bootup it neglects to start-up all the things you might prefer to have a network connection for first, like ntpd and sshd. But I want these things started up anyway so that my clock stays more accurate via the cached drift file and so that I can remotely log in once it has found a network. It also tried to start up the network before pcmcia, which was easy for me to fix for a laptop, but wouldn't be for a newbie.

      Mandrake takes one page from Windows and starts up X before some services X doesn't need, this annoys some, but I like it most of the time.

  120. New boot system by Hard_Code · · Score: 2, Interesting

    The traditionaly Sys V init is archaic, crude, and disgusting. What, 6 hardcoded numeric runlevels? Wow, how useful is that. And I love ordering my startup scripts with two digit integers.

    *nix needs a major boot/shutdown system upgrade. I have migrated to minit, but that is primarily for low memory usage. It allows a rudimentary mechanism for specifying dependencies, but is geared mostly to be minimalistic. This 2003, I think we can come up with something better than Sys V init.

    Features of a next gen boot/shutdown service manager:

    * uses real dependency traversal on startup and shutdown (maybe using a small theorem prover like CML2, or maybe something like make)
    * allows configuration of arbitrary and unlimited sets of services, which can be named by arbitrary string literals - no longer chained to 7 numeric choices. e.g. "roaming laptop", "docked server", "minimal services", etc.
    * built-in service start/stop/restart/status/enable/disable tools, and standard service API with bindings for various languages (what, native services? imagine that...we do so for Windows NT+, e.g. apache) as well as Plain Old Shell Scripts. So every freakin' flavor/distro of *nix doesn't have its own fscking way to start/stop/enable/disable services.

    A lot of the garbage that goes on during startup (have you looked at the standard redhat scripts?) mounting drives and file systems, setting network and hardware parameters, etc., could probably use being standardized also, and either pulled into drivers or services or something, in a standardized fashion. Ideally all these APIs could be exposed both through command line tools, but also through desktop-integrated GUI tools, so that modifications don't entail digging up some ad hoc script on disk and modifying it and hoping you remember what the fuck you did a year ago in some system script.

    --

    It's 10 PM. Do you know if you're un-American?
  121. Re:FIFTH POST by jrfeenstra · · Score: 1

    anon does suck. trolls suck. 95% of the comments on slashdot suck. but sometimes there are good comments from anons. so i'd say probably keep em.

  122. Why not execute out of a ram-disk ? by KlausB · · Score: 1

    I wonder if it would help to execute all the stuff required for booting out of a Ram-disk ?

    Since disks these days are pretty fast (>20 MByte sustained for linear reading) you should be able to load say 100Mbyte (uncompressed) into a ramdisk in about 5 secs and then execute from there.

    This way, you do not have change anything about the init scripts, and the init_rd stuff is already in the kernel. Of course, in your 100 Mbyte, there will be a lot of pages that are never touched, but I think it would be still a winner as reading the full track is almost free as compared to reading just a few blocks and then wait for more than half a revolution on average for the next block on another track.

    1. Re:Why not execute out of a ram-disk ? by buttahead · · Score: 1

      it would only slightly speed things up. Services like DHCP, NFS, kudzu take most of ther time waiting for IO that isn't disk dependent.

  123. I literally don't have one by Anonymous Coward · · Score: 0
    My 3-year old daughter likes to press buttons, alas.

    So I disconnected both the front panel reset and power buttons on my Linux box, and all has been fine. I haven't missed them one bit.

    When I do need to shut down for a hardware change, I just yank out the plug.

  124. Why boot faster? by Black+Mage+Balthazar · · Score: 1

    If you don't have to reboot at all. I just enjoyed a wonderful week of uptime until xmms memory leaked something fierce and basically brought a P4 down to a 486.

  125. KDE? That's your problem. by dfries · · Score: 1

    I just timed it, KDE took just over 35 seconds to start on my system. I use fvwm, it is hardder to time, but I got something like 2 seconds.

  126. BIOS by achurch · · Score: 1

    My Linux system already starts up pretty quickly. Give me a BIOS that can boot in under 5 seconds (under 25, even!) and I'll be happy.

  127. Amusingly, XP does this and more by drinkypoo · · Score: 2, Informative

    Windows XP is probably the current technology leader in terms of reducing boot time. Oh yes, I can hear you scoffing loudly already, but it's true! NT loads drivers in parallel, let alone services, though NT is bad about allocating memory, so having more memory makes it boot a lot faster. Believe it or not, my XP boot time was cut in half when I went from 512MB to 1GB of memory.

    XP also will defrag your disk automatically in such a way as to optimize boot. In other words, files accessed at every boot are placed together, so you don't have to do a lot of seeking at boot time. Now THAT is cool.

    I was just bitching about how annoyed I am with the state of windows, what a pile of crap code it must be. Someone told me that windows was great because it hardly crashed these days, and I was pointing out that having to reboot it weekly or more often does not constitute stability. So it doesn't crash... It just gets flaky enough to where you reboot it voluntarily. Woop de doo. I know many people don't have this problem, but they're probably not doing much customization or running very many apps for the most part, or they like to shut down at night.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  128. Please implement this on my Zaurus! by RevAaron · · Score: 1

    Jesus christ, please oh lord of lords (etc etc), let someone implement this on my Sharp Zaurus C760. I could really use it!

    I've owned a lot of PDAs. But only this one takes like 5 minutes to boot. Literally. No joke. It may be 4 minutes, but I'm not just exaggerating. I've never seen a PDA that takes more than 15 seconds to boot on a reset, the other Zaurus model I've owned exempted (SL-5500), but even that seemed like a short wait compared to the SL-C760's boot time.

    (and yeah, it wouldn't be a big deal if I didn't have to reboot often. But no matter how "robust" Linux is, I've had to reboot more often than one would think..."

    --

    Working toward a usable PDA environment in the spirit of Newton OS: Dynapad
  129. That's only true for CPU-bounded tasks by Cid+Highwind · · Score: 1

    Anyone else see why this is stupid? Ok, here's a hint: you don't have three processors. Items 2, 3, and 4 will have to compete for CPU time.

    Most of that time isn't spent thrashing the CPU, it's waiting for data to be read from the disk, or for phenominally slow bits of hardware to report that they are configured and running. Items 2, 3, and 4 likely only need 5 seconds of CPU time total, all the rest is wasted waiting for i/o.

    Anyone else see why this is stupid? Ok, here's a hint: you don't have three processors. Items 2, 3, and 4 will have to compete for CPU time.

    Bah. If you think the point of gentoo is tweaking for that last bit of speed, you're mistaken. The point is to have the most current software, fine-grained control over what packeges get intalled, and the best package dependency handling around. <distro trolling mode=on> It's like having all the good parts of Debian, but with up-to-date software and without all the license zealotry.

    --
    0 1 - just my two bits
  130. Windows XP does this by soul_hk · · Score: 1

    Let's not forget that Windows XP executes parts of the boot sequence in parallel, have a look at the pretty output from bootvis to see it in action. http://www.microsoft.com/whdc/hwdev/platform/perfo rmance/fastboot/default.mspx

    of course, with Windows quick booting is important whether you're on a notebook or not ...
    (note:no blue screens on Windows XP so far for me)

  131. MS did this for XP by melted · · Score: 1

    But any innovation that comes from MS deserves to be overlooked by /. standards.

  132. Andrew Clausen's upstart by jiri+B · · Score: 1

    Andrew Clausen (author of parted) had this some time back - he called it upstart.

    Judging from his page he's changed his mind since, but I do remember him saying he's discovered a few race conditions that way - some of the start up scripts finish before the service is fully up, which they shouldn't...

    Jiri

    --
    -- Hi! I'm the "Good Times" signature virus. Copy me into your Sig!
  133. Yuh Huh by Greyfox · · Score: 1

    I boot my laptop once a day. This will be appreciated on that...

    --

    I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

  134. No more waiting? by illumina+us · · Score: 1

    So this means I can no longer take my pee break and grab a snack while waiting for my box to boot up? I used to do that when I ran Win2k, my primary OS is WinXP and now I can't do that. I just started using the Debian distro and it takes roughly 2 minutes to boot as opposed to the 30 seconds I am used to =/

    --
    -illumina+us "I put on my robe and wizard hat..."
  135. Re:Somebody help me by CurlyG · · Score: 1

    Err, I can relate to your pain very directly (you should try starting an IT business in Australia some time to really get the taste of utter rejection, apathy and futility), but I was unable to satisfy my curiosity as to what the hell Convea actually is, because your web site first presented me with a "network path not found" error, (though it worked on my second attempt), then a great deal of marketing guff that would have won me a game of bullshit bingo in a single round, and then your demo link just popped up an empty page...

    So I'm cheering for you here, but get back to me when you've sorted out your web site!

    --
    You know they call 'em fingers but I've never seen 'em fing. Oh, there they go.
  136. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  137. Mac OS X does this by rohanl · · Score: 1

    Each startup script has a corresponding StartupParameters.plist file that defines the dependencies. For example the one for Apache contains:

    {
    Description = "Apache web server";
    Provides = ("Web Server");
    Requires = ("DirectoryServices");
    Uses = ("Disks", "NFS", "Network Time");
    OrderPreference = "None";
    }

    Then all items are started up according to the dependencies in parallel.

    The configuration was always there, but Jaguar (10.2) was the first system that actually ran items in parallel. Boot time was reduced quite significantly for Jaguar.

  138. Am I the Only One? by Anonymous Coward · · Score: 0

    I read the headline for this story, and I though it said, "R00TING LINUX FASTER"

  139. OS X 10.2 does this. by Rick+Zeman · · Score: 1

    That's how Apple dramatically cut the boot time between 10.1 and Jaguwire.
    Might be new for linux, but it's hardly a revelation or innovation.

  140. nice idea but awful example files by alonsoac · · Score: 1

    I tried the sample files and there should be a big notice warning that they simply won't work out of the box. There are no files for runlevel 6 or 0 so after making the changes you can't even reboot to test it.

    It basically does a stop for all services and then a start for all services at each runlevel change. There is no way to tell it which services to run in each runlevel.

    Finally I managed to make several files for each runlevel and it does work but it cut my boot time from 1:24 to 1:13, not noticeable at all.

    Plus I wasted an hour just making it work, bad deal.

  141. slow iBook boot indicates something wrong by hayne · · Score: 1
    And my iBook still takes 5 mins to boot.
    Unless you are talking about one of the first generation iBooks (the coloured ones), something is wrong. As far as I recall (I don't do it too often since I just sleep it most of the time) my iBook 600 boots in under 2 minutes. You should restart using verbose mode (hold Command + V after the chime) to see what is taking all that time. E.g. some people have reported a delay when their system was configured to talk to a directory server that is no longer there. Easy to fix.
    1. Re:slow iBook boot indicates something wrong by asv108 · · Score: 1

      Thanks for the tip, that appears to be the issue.

  142. Re:ms dos boot 2 seconds by pebs · · Score: 1

    ms dos boot 2 seconds

    When I was running MS DOS, I was booting off a 360k floppy disk and I assure you that it did NOT boot in 2 seconds.

    Even when I had a hard drive, my autoexec.bat and config.sys had enough in them that it took a while to boot.

    Sure, any OS will boot quickly if you don't load any services. But what are you going to use it for if you don't load anything?

    --
    #!/
  143. Use the Power Save features by billstewart · · Score: 3, Informative

    For the last N years, laptops have had a sleep/wakeup power-save feature. For the last N-2 years, it's generally worked well enough to be worth using all the time :-) Linux probably knows enough about power management for it to work on most laptops by now. Instead of shutting the machine down and rebooting it, you just close the lid and it saves its status and goes into some standby mode, and when you open the lid it wakes up again, where it left off, no need for reboot. On some machines, it also succeeds in doing this when the battery gets below X%.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
    1. Re:Use the Power Save features by be-fan · · Score: 0, Redundant

      Linux probably knows enough about power management for it to work on most laptops by now.
      >>>>>>>>>>>
      You'd think so, wouldn't you?

      --
      A deep unwavering belief is a sure sign you're missing something...
    2. Re:Use the Power Save features by Richard_at_work · · Score: 1

      I enabled APM on my laptop (IBM thinkpad r31) after running gentoo for about 3 weeks. Up until that time i hadnt wanted to recompile the kernel.

      After booting for the first time with APM activated, the mouse cursor in any window manager would, randomly and several times a session, jump to the top right hand corner of the screen, and open random menus or close random windows.

      Very very annoying. I gave up after a while and unfortunatly went back to windows (I was enjoying my first X windows install for 3 years). If anyone knows of a fix for this, id gladly reinstall and try stuff :)

    3. Re:Use the Power Save features by TopherC · · Score: 2, Informative

      I have to concur here. I've been running Linux on a Dell Inspiron 8200 for the past year, and have never gotten sleep or suspend-to-disk working. Evidently the NVidia driver doesn't support it when using AGP. I like AGP for things like, oh, say Neverwinter Nights...

      This is just one of many problems with suspending Linux. In fact, probably 3/4 of the people I know running Windows have at least one piece of hardware that crashes the computer if they try to use sleep mode. I guess suspend works for *some* people, but I doubt it works for a majority. So boot-up times are a big deal to me.

      I also want to add that I'd been kicking around in my head the idea of starting services in parallel for a long time now, but I never realized how nicely `make' solves the problem. I had imagined writing complex Perl scripts to do the work, and it's always a pain to work out whether or not forked processes have completed in Perl.

    4. Re:Use the Power Save features by Richard_at_work · · Score: 1

      I know what you mean, but i wasnt even using the suspend function, i jsut enabled APM for the automatic power off at the end of a shutdown. The mouse cursor was going crazy, and in the end i decided that I couldnt live with it, but also i couldnt live with no auto shutdown.

    5. Re:Use the Power Save features by loucura! · · Score: 1

      I'd had other APM problems, but ACPI works -so- much better, so I use that. I don't think the suspend button works though, because I haven't used it yet.

      --
      Black and grey are both shades of white.
  144. Gentoo has service dependencies too by Kashif+Shaikh · · Score: 2, Informative

    Not trying to be a Gentoo evangelist, but a Gentoo rc script has specifiers for what a service depends on, so they can do away with static service level numbers.

    The dependency calculation is regenerated and cached, so bootup is faster. Now if someone could take gentoo service script as input and build a parallel service starter -- that would be a nice project.

    Btw, I have a Windows 2000 Server at work which I use for desktop use, and it takes *MUCH* longer to boot than a fully configured redhat 9 system. Why? Dunno, must be all the services and integrity checks that a "server" must have.

    Windows XP on the other hand takes about 30 seconds to boot.

    Kashif

  145. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  146. Yeah, but they should be making AIX boot faster by katchins · · Score: 1

    We had an old RS/6000 model (circa 1995) which took 20 minutes to boot. This was due to it doing a hardware config via X.25 protocol to all devices (e.g. hard drives, etc). "Quality Assurance" to say the least since extensive memory checks, CPU processor checks, etc were performed EVERY TIME AT BOOT. This was *painful* to say the least. After the hardware discovery/configuration was complete, it took 5 minutes for AIX to boot.

    This article strikes me as a joke. I am not familiar with their current pSeries systems (which is what the College has now), but I wonder if they take 20+ minutes to perform hardware checks and boot. If so, it's not Linux what you have to worry about!

    --
    if (!sig) { printf("Signature Unavailable\n"); }
    1. Re:Yeah, but they should be making AIX boot faster by Halo- · · Score: 1

      I'm willing to bet this was a "J40" right? nice squat beige box, about 8 procs at 20Mhz a piece? I used to have one of those at work. The reason it's so slow (I'm told) is that it was one of the earlier SMP machines in that line.

      There was a setting somewhere in SMIT which whould reduce the boot time to a much more managable 2-3 minutes. The 20 minutes was the result of each of the procs being verified in series... AIX wasn't even starting.

  147. Let's borrow back by bill_mcgonigle · · Score: 1
    Here's an example, for SSH:
    {
    Description = "secure login server";
    Provides = ("SSH");
    Requires = ("Resolver");
    OrderPreference = "None";
    Messages =
    {
    start = "Starting secure login server";
    stop = "Stopping secure login server";
    };
    }
    Now, is it worth admitting Apple did this right and borrowing the idea rather than reinventing the wheel? This is field-tested so we can presume they've worked the wrinkles out by now. Yet, the ego is a fragile thing. Of course, maybe linux/distros have borrowed some ideas from Mac OS X that I'm not aware of. Besides default background screens, that is.
    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
    1. Re:Let's borrow back by Anonymous Coward · · Score: 0

      It is also nice IMHO that Apple didn't use XML. Don't get me wrong XML is great but it wasn't designed for conf files.

  148. "only boot once"; another idea for transition by ay2b · · Score: 1

    regarding "you only boot linux once" -- that's true for my desktops, but I boot my laptop fairly frequently, so decreasing boot time is important.

    I wonder if in the transitional period, while implementing this you could use make to start up services in parallel, and remember which services you've started, and then use the [KS][0-9][0-9] method for any services not covered by the makefile.

    --
    "Those who would sacrifice essential liberty for temporary safety deserve neither liberty nor safety."
  149. Obligatory "OS X has it too" by topologist · · Score: 1

    Actually, I'm surprised this isn't the de facto standard, at least in the commercial linux desktop distributions, since startup time is a reasonable thing to optimize for desktop machines (a journaled filesystem certainly helps :-). Mac OS X has a parallelized service startup sequence as well, and a dependency grouping technique - see this paper for some information.

  150. Spelling nazi by guacamolefoo · · Score: 0, Offtopic

    Aren't you guys editors?

    effectiveness can vary widly from machine to machine.

    Widely?
    Wildly?

    GF.

  151. Make-based boot script by lars_boegild_thomsen · · Score: 1

    Anybody interested in this approach should take a look at LNX-BBC (http://www.lnx-bbc.com) - a Linux distribution designed for credit-card sized CD's. While the distribution itself is not particularly interesting (for me that is), the build process and startup scripts _are_ interesting. It is basically the most impressive exercise in make scripts I have ever seen. The whole distribution is built from source archives (ok - that's not hot news any longer) and the startup scripts are based on make too. I don't know if they do anything in parallel though. Don't think speed was the reasoning behind this.

    Another thing I do wonder about. I've got two simmilar laptops (both old 800 MHz) with same memory. One is running Win2K and one is running Debian. The Debian one is actually booting marginally faster than the Windows one (we're only talking 5-10 seconds here).

  152. Launching services in parallel is a new idea? by Tehrasha · · Score: 1
    At least April of 2002 -- http://freshmeat.net/projects/serel/

    See also -- http://www.fastboot.org/

  153. Try slackware by beej · · Score: 1

    Try booting a slack box sometime. It uses the Berkeley-style rc.d scripts instead of SysV. It rips through startup and shutdown.

  154. Shutdown? by kavau · · Score: 1
    Actually I never understood, why, on shutdown, you can't simply unmount all file systems, terminate the network connection, and then turn that damn power off. Who cares if any other services are left hanging in a void before they dissapear into nothingness?

    I'm sure there are some issues that would never occur to me. But can somebody enlighten me and the rest of the slashdot crowd on what they are?

    1. Re:Shutdown? by gordyf · · Score: 1

      The idea is to let daemons gracefully shut down before the fs is unmounted. I think.

    2. Re:Shutdown? by aminorex · · Score: 2, Informative

      You can't unmount a filesystem until all of the
      processes that are using it are dead.

      Those processes may have vital data to write out
      before they exit, so shutdown gives them time
      to do so.

      Once all the processes that would usually be using
      the filesystems are dead, the filesystems are
      unmounted, and the system is halted.

      --
      -I like my women like I like my tea: green-
    3. Re:Shutdown? by CaptnMArk · · Score: 1

      There is actually a very stupid thing in the shutdown procedure. There are times where the system just does a sleep 1/5 while waiting for things to shut down. Not only does this not give enough time for shutdown sometimes but it also slows down the shutdown procedure somewhat.

    4. Re:Shutdown? by pe1chl · · Score: 1

      Well, you must be new to Unix/Linux.

      In the old days (10-20 years ago), systems took ages to boot. Much of this time was spent in sleeps.

    5. Re:Shutdown? by hbr · · Score: 1

      Hey, ever since we've had journalling filesystems, I've just been yanking the power cord out. Isn't this what everyone does?

    6. Re:Shutdown? by torpor · · Score: 1

      You've got services running on your box, and if you issue a shutdown to those services it gives them a chance to handle any pending transactions within their own system that may be waiting, and cleanly exit.

      This is important for, say, database systems which may still have client connections in active use, or web servers that want to complete any last transactions, or send redirect headers to end-clients.

      --
      ; -- the corruption of government starts with its secrets. a truly free people keep no secrets. --
    7. Re:Shutdown? by gfilion · · Score: 1

      Actually I never understood, why, on shutdown, you can't simply unmount all file systems, terminate the network connection, and then turn that damn power off. Who cares if any other services are left hanging in a void before they dissapear into nothingness?

      I use an ext3 filesystem, so shutdown means pull the plug, and reboot means press the reset button on the case. It makes it pretty easy to explain to non technical people: "If the server stops reponding, press the reset button. If it still doesn't work after a couple minutes, give me a call."

    8. Re:Shutdown? by Anonymous Coward · · Score: 0

      > "If the server stops reponding, press the reset button. If it still doesn't work after a couple minutes, give me a call."

      Congratulations. You just turned UNIX into Windows.

    9. Re:Shutdown? by Sri+Lumpa · · Score: 1

      "Hey, ever since we've had journalling filesystems, I've just been yanking the power cord out. Isn't this what everyone does?"

      I tried that but it doesn't work on my laptop ;)

      --
      "The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers." Bill Gates,
    10. Re:Shutdown? by Tukla · · Score: 1
      ever since we've had journalling filesystems, I've just been yanking the power cord out

      I used to, but my "power cord" started bleeding after awhile.

  155. My own rc/init scripts by Skapare · · Score: 4, Interesting

    Back in 1999 I rewrote all the init scripts entirely from scratch. I did this after having spent a few years before hacking at init scripts in BSD/OS, OpenBSD, Redhat, Slackware, and Solaris. I experienced all the crankiness of these systems (Redhat and Solaris were the worst) and this time decided to avoid all that. I gave the scripts entirely different names so as not to conflict with existing scripts (was Slackware at this time). That way I could switch between them with just a change of /etc/inittab. It took a few hours, but I had a running fully functional system by the end of the day, and have been running on those scripts, as subsequently better debugged and tweaked, ever since. They booted up noticeably faster than even the Slackware scripts (which were about as fast as the OpenBSD scripts).

    Irontically, I didn't do this to get the boot speed. The init scripts are fast enough now that the kernel initialization time is longer, anyway. What I did this for was because I hated having a bunch of separate directories with symlinks in them for each run level. I didn't like having to use specialized tools to manipulate the system (I wanted to routinely use the tools I would have available if I were running from a rescue floppy trying to fix it). That meant doing things with a basic set of shell commands. Yet I didn't want to abandon having separate scripts for each service/daemon being started (or stopped as the case may be). What I ended up doing was creating a single subdirectory for all the individual service scripts, and making the script name have a pattern that included both the startup sequence (stop sequence simply ran backwards), as well as the run levels. Here's what the names in /etc/sys on my system look like:

    • 000.12345.net_lo
    • 020.--345.video_120x58
    • 040.--345.keymap
    • 060.-2345.mouse
    • 100.-2345.net_eth0
    • 101.-2345.net_eth1
    • 190.-2345.gw
    • 200.--345.random
    • 220.-2345.syslog
    • 240.--345.at
    • 260.--345.cron
    • 300.-2345.dns
    • 320.-2345.nsd
    • 400.-2345.ssh_main
    • 410.-2345.ssh_alt
    • 520.--345.inet
    • 540.-2345.ntp
    • 600.--345.mail
    • 620.--345.http
    • 640.--345.rsync
    • 660.-----.pop3
    • 700.----5.xfs
    • 780.--345.ftp
    • 800.--345.cache
    • 950.----5.xdm

    Figuring out which run level each service starts in is left as an exercise for the reader. BTW, I think most of the speed comes from the fact that I didn't add a lot of fat to my script system. That's easier to do when you do your own design.

    --
    now we need to go OSS in diesel cars
    1. Re:My own rc/init scripts by evilviper · · Score: 1
      I think most of the speed comes from the fact that I didn't add a lot of fat to my script system.

      I've obviously never seen your set of startup scripts, so this is obviously just a guess, but it's quite likely that the "fat" you didn't include, is better know as robustness, error checking, and recovery from unusual conditions.

      Just think how much faster everything could be if we didn't have to do pesky error checking and correcting. I know my network would be far quicker, and my hard drive would have much more space.
      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    2. Re:My own rc/init scripts by Skapare · · Score: 1

      What kind of error checking do you think is needed? I'm sure there is much we could agree on, but maybe there is some we don't. One of the things I want to be sure of is that the system comes up despite errors. Applications should know how to deal with failures in services, for example a mail server that came up OK after the DNS server failed to come up should either sit there and do nothing, or even take itself back down, because of the lack of DNS. I have SSH configured to come up regardless of any other service, and be functional even without DNS. I want the system to come up if at all possible, so I can SSH in, instead of have to drive to the office to grab the console.

      But I do check for errors to make sure messages are meaningful. The individual service scripts are still pretty much like those of SYSV; they just have a different location and naming strategy. But I'll let you look for yourself. Here is a copy of the scripts I put up for public access about a year ago. My current running copies have been updated a little bit since then, but not majorly so. If there is interest I could make a new set for general access.

      --
      now we need to go OSS in diesel cars
  156. Alternative system that doesn't use make by freshfoo · · Score: 1

    Here's another dependency-based parallel booting system. This one doesn't use make though. It uses a few (simple) utilities to do the work.

  157. Boot time? What boot time? by WheelDweller · · Score: 1

    I don't know about you guys, but I login every week or so...haven't turned the machine off (other than to change hardware) for about three years now. Why would I ever consider this a problem?

    Just making a point...

    --
    --- For a good time mail uce@ftc.gov
  158. Re:Somebody help me by Anonymous Coward · · Score: 0
    money can't buy happiness, invest time in your family and friends during this slow economy and forever! Good cheer is priceless.
    Can you see a trend? I try my damndest because I want to succeed and people just ignore us, we cant get a story on slashdot, journalists are busy, marketing people want $$$ before they even talk. I look at my mother who's worked all her life for pennies, who works 9-5 AND THEN spends more hours there after changing into her cleaning clothes and cleans the office. :o/ I sit here, I just want in my heart to once say
    I definitely see a trend, who cares about work/money? Get a decent regular job working for the man, and enjoy your time after five and the weekends. If you are always working, how can enjoy?
  159. Re:Faster Booting by trippinonbsd · · Score: 1

    ...and how many times do you update you windows kernel?

  160. Cached boot state? by Doc+Ruby · · Score: 1

    Why can't I boot to a login state, and cache a snapshot of the RAM + disk-diffs? Writes to the cached disk that persist between reboots would be written to the cache. Then the cache would be loaded on boot, picking up where I left off. The cache would be an image on disk, or why not Flash or even an EEPROM? Anything would be faster than the computations and configurations that are performed from scratch every time I boot, to customize the installed OS & startup apps to *exactly the same state every time*. Why has this util taken so long?

    --

    --
    make install -not war

  161. This'll be great by dacarr · · Score: 1
    ...for the occasions when one of my kittens stomps on the RESET button on the front panel.

    (Yes, it can be done on mine, they sit up at an angle.)

    --
    This sig no verb.
  162. Gentoo has it by avenj · · Score: 1

    I didn't see anyone mention this, but in addition to service dependencies, we also already have parallel functionality. Put RC_PARALLEL_STARTUP="yes" in /etc/conf.d/rc.

  163. Right but Wrong; be careful. by qortra · · Score: 2, Insightful

    Ok, I agree that boot time is important in many specific cases. However, you say

    I see... fanbody and girls... claiming that... b) linux boots very fast. They are wrong.

    This seems to be the prevailing wisdom here, so this is for everybody. I just have to disagree. A standard GNU/Linux distro (like Mandrake, for instance) will startup a buttload of services (depending on what you select at install time), and do far more than a standard Windows install (for instance). It will in fact run at startup every service that you've told it to install (again depending on if you tell it to, but I believe it will do this by default). Often this includes one or more databases (postgres, mysql), a web server (apache), perhaps a few file sharing services (samba, nfs, ftp), a few remote command services (ssh, telnet), and its usual collage of helpful newbie services (autodetect hardware, boot numlock, etc). Now, with all of this crap running on my antique P Pro 200-64mb, I boot in less than a minute from lilo to login prompt (and X is about 5 seconds more). I think XP home would barely beat that time on a system that old, and it can't serve things. And yes, faster systems scale nicely; my Debian system is extremely fast lilo->kdm; as good as my XP pro in fact, and it still has all the server trimmings.

    Now, on the other hand (for a fair comparison), if you've ever experienced a windows 2000 server machine with active directory, you know real pain. From boot.ini to load of video drivers is fast, but after that, restoring network connections can take as long as five minutes even on a fast system.

    So in conclusion, a default install of any random distro may or may not be slower starting up than another OS (read Windows), but just make sure you're making a fair comparison. If look through your /etc/rc3.d and find a whole bunch of services whose names you don't know, just remember that they might actually extend functionality beyond what you could get with another OS. If you ever truly do make your installation sleek and tiny, then give it another test and see what you find.

  164. Re:Somebody help me by slashdot_commentator · · Score: 1


    This has to be a troll.

    What kind of idiot would be posting to Slashdot looking for Vulture Capitalists?

    --
    There is no America. There is no democracy. There is only IBM and AT&T and DuPont, Dow, General Electric, and Exxon
  165. this is very old news ... see Serel at freshmeat by brainchill · · Score: 1

    serel - fast boot software serel is a utility that helps computers to boot faster by adding synchronization and integrity- checking to the operating system's "service startup" phase, allowing services to be started in parallel. The software supports the visualization of services, dependencies, and timings.

  166. Speed up the dinosaur by Diesel+Dave · · Score: 1

    In your init.d rc and rcS scripts add something like this to the start up execution case block:

    [SK][0-9][0-9]+*) # Background
    $debug "$@" & ;;

    (Debian shown) and then rename start links S+[name].

    The + will now denoted that that the process will be backgrounded at execution and will parallel your boot. You still need to make sure that dependancies are run first.

    Of course whether you do this or use gmake this is still 20 year old mickey mouse bullshit, and the entire sysvinit system ought to be scraped!

    def ShamelessBegging ():
    Somebody give me money so I can write a modern core unix userland already!

    Dave

  167. well duh! by makoffee · · Score: 1

    Now with this use(less)full knowledge I'm so going start tweeking my linux system out for performance.

    Isn't that the first thing you do right after you load the os off the disk?

    --
    -makoffee
  168. RE:Gentoo parallel startup by Evilive · · Score: 3, Interesting

    I did it and noticed a decrease in the boot time, probably 15-20 sec. give or take. YMMV.

    --
    -- Two in the pink, one in the sink.
  169. useless: 'cos how often do u actully boot a linux? by Anonymous Coward · · Score: 0

    ... it would make much more sense to speedup the bootprocess of winsux.

    damn windows operating (booting?) systems are busy with booting more than doing some useful task.

    jeebuz, its about time to speedup the SHUTDOWN time of windows at last. shutdown and never cum back.

    EOF.

  170. Disk seeks are the real culprit? by dwidznz · · Score: 2, Interesting

    I've seen the exact opposite approach taken - switching from parallel to serial to reduce startup times.

    The reason this worked was that starting processes in parallel increased disk contention and the extra seeks brought the machine to a crawl.

    Sure, that was on a system with very slow seek times, and not much in the way of disk caching and scheduling (an Amiga 500 with no HD). A lot of things have improved since then, but seeks are still extremely slow in machine terms, and we also have virtual memory and demand page loading which I imagine don't help the problem.

    Maybe keeping data needed at startup centralised on the disk (e.g. in the boot partition) would help.

    As disk accesses during startup are probably pretty predictable (consistent from one boot to the next), it may be possible to pre-load the disk cache to improve startup times.

    A simple approach would be to log disk blocks accessed during startup, and then read them (in a sensible order of course, and in parallel across disks) at the start of the next boot.

  171. You are right... by hughk · · Score: 1
    I agree that the startup groups and dependancies under NT onwards are a nice set of features. Although it isn't always very obvious what is happening or what went wrong. If we did something similar with Linux, we would have the chance to graphically indicate what is waiting for what.

    However, it is still annoying that the NT architecture claims that the system is up when it isn't. Login too quickly and you will find that minor things like RPC aren't running yet. With Linux, you get the login when startup is ready.

    However, I do like the startup groups and the dependencies under NT onwards, even if the stuff is poorly documented or wrong (bad dependancies). The joke was that in NT4.0 a fast processor and lots of memory sometimes meant that stuff was started out oif sequence - lots of hilarity spent debugging that one!

    --
    See my journal, I write things there
    1. Re:You are right... by drinkypoo · · Score: 1

      Incidentally gentoo has a modified sysvinit scheme which has dependencies.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  172. LinuxBIOS by Taco+Cowboy · · Score: 2, Interesting



    I thought there is an outfit called "linuxbios" that supposed to make re-booting, especially cold-booting a very fast process.

    Can anyone here tell me the recent progress of "linuxbios" ?

    Thank you !

    --
    Muchas Gracias, Señor Edward Snowden !
  173. Don't you know simpleinit-msb ? by ookaze · · Score: 1

    I'm genuinely surprised.
    simpleinit-msb is available and stable for more than a year, and that's what I use on all of my custom LFS boxes. No more headache with links, all is very simple, and it boots very fast, as most of the services start simultaneously (and I have a lot of them). Actually, if you choose to do so, you can even have X started very early in the boot process, having a graphical login even before all your other services have started.
    I know most distributions do not use it (even LFS, as they want to be as LSB and FHS compliant as possible), because it isn't standard and so is not LSB compliant.

  174. Re:Somebody help me by Anonymous Coward · · Score: 0

    It's not. Trolls are anonymous.

    AMIGA FOREVER!!, and good luck to that guy.

  175. Question - however inappropriate by Anonymous Coward · · Score: 0

    If I were to really analyse boot speed the first thing I would need to know was the use of the machine - i.e.: workstation or server.

    In the case of a server, let's face it; boot time probably doesn't matter at all.

    For a workstation, it seems to me, the most important thing is to get a GUI up as quickly as possible, and while the user is twiddling their thumbs trying to remember what it is they are meant to be working on, the rest of the services can be brought up.

    This way the user perceives his system is ready, before it really is, yet by the time they get around to actually doing something useful, the system will be ready. And even if it's not quite up, the user should only present them with a 'Service not ready' message

  176. Re: "you only need to boot it up once" by Anonymous Coward · · Score: 0

    My toshiba 4600 suspends/resumes without problems. Ofcourse, it's the only system I have which does that trick, but since it's also my only laptop, I don't mind.

    The only problem I have is that I often need to restart the dhcp client to get access to my cablemodem after a resume.

  177. Note about laptops and the need to boot by Anonymous Coward · · Score: 0

    I've got an Apple iBook running Linux; I've never seen an x86 laptop handle powersaving (or other functionality that's essential when you're using a laptop) as well as the iBook. There's pretty much no need for me to reboot except after a critical system component update, so the whole boot time issue is irrelevant for me. Now if I could only figure out how to modify the keymap used by KDE so that it would support both the weird Apple layout and the Finnish one ;)

  178. Re:Entertainment Linux Boxes *do* run lots of serv by Anonymous Coward · · Score: 0

    Why should a "MediaCenter" require less services than a LAN-server ? It actually serves information, just that this is multimedia information.

    My system (DVD/digital-TV/MP3-jukebox/CD-player/VCR) runs:

    - MySQL along with mngosearch for full-text search in all ebooks. Also it stores the TV program for the week.
    - LDAP stores all references (bookmarks) to media files, be them local or remote. Nice to extract XML data from it. I use RSS streams for information-interchange with the client programs (mozilla framework). LDAP also handles all other stuff (NIS, etc), now, that I have started it, why not use it ?
    - Apache serves interfaces and runs backends
    - the applications serving the media data over the net

    And this is just the major services, of course I run Samba, so I can access the data from other clients in a more traditional fashion and stuff like lirc and whatever a box needs to run.

    And no, I will not run two servers 24/7, I have a generic file/printer/LAN server already uptime all the time. I switch my media box on (it is in standby) with the IR-RC or wake it on LAN.

  179. Apache ? Of course ! by Anonymous Coward · · Score: 0

    If you have a system, that is a little better than these boring HTPC shit replayers you *want* a web-server, just in order to display the TV program, that you store in the MySQL database. Just one function I do with a httpd in such a system. I serve all information via HTTP to the clients.

  180. System V init by Etriaph · · Score: 1
    I've been thinking for a long time (and had a discussion with a friend a few weeks ago with some ideas) that we should drop the System V init and move to a multi-threaded startup in order to avoid the heinous startup time we currently are stuck with. If we could have some software that reads a dep. map of all the software in init.d/ and runs all the processes it can before encountering dependancies we could probably cut bootup by 1/3 or maybe even 2/3.

    It's nice to see that others have been thinking about this too.

    --
    "It's here, but no one wants it." - The Sugar Speaker
  181. Re:Make? - try opensource.openfuel.com/frc by Anonymous Coward · · Score: 1, Informative

    Instead of using make use a utility which has been designed for
    this purpose: FRC, its homepage is opensource.openfuel.com/frc

  182. Reasons to reboot by Anonymous Coward · · Score: 0

    If your system is only on as long as you use it (ie. 6pm-11pm = 5 hrs) then at all times outside active use, you save:

    (a) wear on components (24-5=19 hrs per day x 30 = 570 hours / month) [think of the MTBF of your essential components]
    (b) electricity to run your system
    (c) electricity to run cooling systems to offset heat created by systems running 24hrs/day
    (d) noise pollution from system and cooling systems

    Fast reboot times are quite useful.

  183. Predicted response by Anonymous Coward · · Score: 0

    Mainstream Supervirus Network

  184. add/remove -j make flag by iceco2 · · Score: 1

    would be a better way to switch from parralel to serial execution for debugging purpose. Meir

  185. Happy if I could hibernate my Linux Box... by xzenio · · Score: 1

    I have to admit that I like Windows Hibernate feature...and another one: turn off Hard Disks when I am not using my computer....

  186. portmap delay by Anonymous Coward · · Score: 0

    I had to insert a 30 second sleep into the start section of the portmap init script just to make sure that the ethernet ports were REALLY up and running.

    And now they are going to try and speed this up?

    Please.

  187. Remove the SCO Code by Snafoo · · Score: 1

    Linux would probably boot faster if we removed all that SCO code from the kernel....

    Oh wait... ;)

    --
    - undoware.ca
  188. No need for insult by sdack · · Score: 1

    You might see these young professionals as idiots, but what you do not see is your attitude towards them. Yes, you are ignorant when you are young, but you do have choices and if you deal with people you don't like, you have missed a choice.

  189. Linux isn't just for desktops anymore... by bergeron76 · · Score: 1

    For example, I run linux in my car and this will make a huge impact on how long I have to sit without tunes.

    Some of the things that I've done to expedite the boot process is:
    -build a kernel that's modular
    -load audio module, start playing a tune
    -start X
    -move 90% of my boot scripts into my .bash_profile
    -load remaining modules from the .bash_profile

    In this way, I'm presented with audio and the interface right away. The non-essential things like gpsd, kismet, etc. get loaded _after_ the initial UI is presented to the user.

    --
    Don't think that a small group of dedicated individuals can't change the world. It's the only thing that ever has.
  190. /etc/conf.d/rc by slithytove · · Score: 1

    They will start in parallel if you change the RC_PARALLEL_STARTUP="no" line in /etc/conf.d.rc
    Long live Gentoo!

    1. Re:/etc/conf.d/rc by Jonner · · Score: 1

      Wow, that's great. I assumed that it should be easy to make it work in Gentoo since it's long had dependency based services, but I had never seen that setting. It just goes to show you that Slashdot is good for something. I'm sure there are other GNU/Linux or at least Free Unix-like operating systems that have dependency based services.

  191. spend time to save time by obtuse · · Score: 1

    I know you were joking, but I've got an answer anyway. That's a big part of what IT does. If you can save your users a few minutes every time they start their machines, you're saving your company money.

    An admin is responsible for systems
    Security
    Integrity
    Availability

    This improves availability.

    --
    Assembly is the reverse of disassembly.
  192. No need for insult by sdack · · Score: 1

    You might see these young professionals as idiots, but what you do not see is your attitude towards them. Yes, you are ignorant when you are young, but you do have choices and if you deal with people you don't like, you have missed a choice.

  193. Re:FIFTH POST by Anonymous Coward · · Score: 0

    You're a fag that licks peep show walls for leftover glory hole juices

  194. Re:FIFTH POST by Anonymous Coward · · Score: 0

    www.cruisingforsex.com for all of your glory hole needs!

  195. Sample boot times? by phorm · · Score: 1

    Can anyone give some samples of basic boot times for a server, or better, desktop.

    I haven't rebooted my server in awhile and I'm not about to reboot to test. But from the lilo menu linux boots as:
    39 seconds to the "login: " prompt, and 18s to start X (default is CLI login).

    Not sure if that's good or not. GUI is using an XP-themed IceWM, with DFM as the desktop manager. basically it looks close enough to XP, but loads a lot faster than XP does on faster machines than this (Celeron 700 laptop, 256MB RAM)

  196. Windows login cheat? by Mr+Z · · Score: 1

    Are you referring to Windows' propensity to give you a login prompt, and then proceed to continue grinding the disc with who-knows-what in the meantime?

    --Joe
    1. Re:Windows login cheat? by JCCyC · · Score: 1

      Exactly. That's why it's a cheat. Of course, since we don't live inside a 50's Hollywood movie, cheaters sometimes win. Hence my enthusiasm for Linux doing it.

  197. Re:Don't forget... by Anonymous Coward · · Score: 0

    do you have a job? seriously

  198. Long kernel loading time by McTrex · · Score: 1

    I already tweaked my startup scripts to get a much faster boot, but one thing is really strange. I've installed SuSE 8.2 on a lot of different desktops and laptops, but only with an IBM A31p loading the kernel takes about 19 seconds (the part where it says Loading linux.............). On all other systems this takes just a few seconds at most. Does anyone have an explanation for this? I'm using the stock 2.4.20 kernel from SuSE with the following append line: acpi=off hdc=ide-scsi hdclun=0 showopts

    --
    RHCE, ITIL, LPIC-2, LCE, NACP
  199. -1 Incorrect Frame of Mind by eugene+ts+wong · · Score: 1
    I feel ashamed for not having thought about it myself; it makes me think that after all I'm not "creative" as I thought...
    Yeah, but what were you doing in that time? If you were busy contributing to other open source projects or trying to further yourself in other ways, then you would have productive in that manner. Even if everybody shut down @ night & booted in the morning, there still wouldn't be much time lost, because they have to take off their coats, get coffee, check for messages, etc. My Pentium Classic boots up to the prompt in less than a minute, yet there is never any wasted time that way.

    So, the fact that you may not have thought of it yourself might be a sign that you are productive in other areas of your life.

    On an unrelated note, I think that OS designers/creators should spend more time documenting the advantages of certain features. On my Gentoo system, for quite some time now, I've watched the boot process say something about mounting network drives. I wanted to take it off, but I was hestitant to do it. I finally tried it, & it turns out that it never made a difference either way, so it was better to leave it off. If there were some comments in the script about what typical network drives it was trying to load, then it would be more helpful to folks like me. It would have been good to say something like, "If your computer is the only 1 on the local network, then you don't need this. It's for NFS, Samba shares, etc.". Not many people will understand that, but some of us will, & it will help a little.
  200. Thanks. That was interesting. [!TextBelow] by eugene+ts+wong · · Score: 1

    m

  201. Having the opposite problem with power features by billstewart · · Score: 1

    I've got the opposite problem with the power features - most of the common distros come with them enabled, but the doorstop Pentium 60s in my lab don't support it, so if you leave the machine alone long enough, it will put the X screen into powersave mode - it knows the half about making it go dark, but not the half about waking it up again. Messing with X didn't seem to do the job well enough, and it was easier to recompile the kernel with power management turned off.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  202. Good article but glosses over most important part by Krellan · · Score: 1

    It is a good article, but it glosses over the most important part: in order to successfully boot up your system faster using parallel processes, you must first resolve all dependencies.

    This isn't easy, because it's a nontrivial problem to tell exactly what services a given process relies on and assumes to already be existing at the time the service is started. Also, some scripts start off daemons in the background and then return immediately! If another service depends on having this daemon running, it would need to know to wait for that daemon to finish initializing.

    What would be great is to have all future init.d files adhere to a convention in which they could list what they provide and what else they depend on, kind of like what the RPM database already does. It would look something like this:

    # script for starting myserviced
    # REQUIRES network syslog
    # PROVIDES myservice

    This example would be for a daemon that requires two services to be running, and provides a service of its own that other daemons can depend on. This could be used to resolve initialization dependencies and make the system boot faster. Note that the service names are abstract, not corresponding to any particular daemon, so that replacement daemons could easily be swapped in to do the same job.

    I would be surprised if new distributions haven't already thought of this or didn't already have such a system in place!

  203. Parallel boot issues, infeasibility of make, ~1998 by erlkonig · · Score: 1

    A new init and accompanying rc script system, whould be better parallelizing boot system for Unix than a system based on make and the current scripts. As has been pointed out already, make can only elegantly handle the following issues:

    • Dependency-based ordering of service startup.
    • Unlimited, named abstract boot targets.
    • Allow the use of abstract names in building dependency trees.

    Now, even providing just these two abilities would be nice, to be sure. Dependencies allow parallelization of boot, and thus the obvious speed benefit on system startup - yet beware, because make does not handle all issues here. Just as make -j can break updates of shared targets (like libraries), using it for system startup can scramble your boot logs. But make is a notional source for simply-named abstract targets like "make clean", except that here we want to be replace phrases like "boot everything up to Samba", or "prep the system for remote ssh for users with NFS-based home directories", or "shutdown Oracle and everthing that needs it", with commands like "initlevel -target samba", "initlevel -target ssh-logins", and "initlevel -stop-propagate oracle" (the last of which might leave us in an init level without a defined name, but that's alright). Make can't easily do the last one.

    But there are other key scenarios that a make-based system fails to address, that a rewrite of init and its accompanying scripts could:

    • Shutdown all services not needed by a given target.
    • Reboot a given service, and all services which depend on it and require the reboot to be valid..
    • Determine if service X can be shutdown without affecting service Y.
    • Track and report the status of running services.
    • React to the abrupt crash of a service.

    Based on the last point in particular, that of tracking the status of running services, I had abandoned the idea of solving the problem through simple scripting in '99, but these needs could all be addressed by rewriting init itself from scratch with new requirements in mind, and without the antiquated, numbered runlevels. Certainly most of the system would still be script-based, but init, in its role as the grand reaper, the dark ring to which all dying processes are bound, is the tool for watching the services on an ongoing basis, and killing or spawning services as needed to keep the current init target valid.

    For all of its flaws however, /etc/rc and /etc/init.d provided concepts sadly lacking back in the time where /etc/rc and /etc/rc.local were king - namely, the concept of standardized methods for each service script. Having "start", "stop", and so on available has not only made the current system useful for perhaps longer than it should have been, but provided a basis for conveniences like chkconfig(8) and service(8). Heh, if only "start" started all its needed parent services in parallel first, right - you could just have "service xlogin start" start everything it needed recursively, oh, wait, don't try it, you'll get 100 init processes or something if you're not careful, don't run that...*akk*

  204. Re:Gentoo parallel startup by Anonymous Coward · · Score: 0

    i activated it on my gentoo but didnt noticed any improvements
    but i got mine up in 32 sec from grub to kde login screen
    with hotplug activated