WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Long pause during boot  (Read 3057 times)

Offline nObRaIn

  • Newbie
  • *
  • Posts: 18
Long pause during boot
« on: December 22, 2010, 08:33:17 AM »
Hi all,

I'm new around here and I've been playing with tiny core for a couple of days now. At the moment I have a working system on a USB stick with just a browser, ntfs support, and wireless network with wpa. I am impressed with TC and I already have a couple of projects in mind where TC would fit nicely. I have already tested this setup on four different systems at home and it seems to be working great, but I have a small issue with a fifth, much older system. This is more an annoyance than an issue but I would still like to try and troubleshoot it if possible.

In this particular system, after loading tinycore.gz, I see the msg ".....ready" and it stops there for more than a minute. After this pause everything seems to be working normally and the process continues. The first message I see after this pause is "tcp reno registered".

Is there any possible way to see what happens during this pause and find what could be causing it?

This is an old celeron 333 notebook with 128mb of ram, no bios support for booting from usb devices (except for an external usb floppy drive), and a single usb port available. I am not sure if this is of any relevance, but for the test I just boot the system with a floppy containing plop, I swap the floppy drive with my TC usb stick, and I boot TC from there. I also use pcmcia cards for both wired and wireless connectivity as the notebook does not have any onboard means for connecting to the network.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Long pause during boot
« Reply #1 on: December 22, 2010, 10:06:23 AM »
Boot with param 'syslog'
Log is in /var/log/messages
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline nObRaIn

  • Newbie
  • *
  • Posts: 18
Re: Long pause during boot
« Reply #2 on: December 22, 2010, 11:48:54 PM »
thanks for the quick suggestion. it seems there is a lot going on during this "pause" but the time-stamp is exactly the same for all entries (from "syslog started..." to "tcp reno registered"). Assuming that syslog's time-stamps are accurate, it looks like the delay is happening before syslog is even started.

Can it be that tinycore.gz needs more than a minute to load on such an old system (assuming again, that the "ready" message is not accuratre)? or, what else can be happening between that (the "ready" msg) and the time syslog actually starts?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Long pause during boot
« Reply #3 on: December 23, 2010, 04:27:53 AM »
Use "debug" to see kernel messages before syslog is started.
The only barriers that can stop you are the ones you create yourself.

Offline thane

  • Hero Member
  • *****
  • Posts: 697
Re: Long pause during boot
« Reply #4 on: December 23, 2010, 01:24:15 PM »
Any chance it's because of USB 1.0 (the early implementation of USB)?

When I first started using TC (on a Compaq Deskpro EN) I was booting from CD with the extensions/backup on USB, and even with a small number of extensions it took a while to boot. You've got everything including the core pieces on USB so I assume it would take even longer.

Now running TC on a box with USB 2.0 and everything installed on USB, and it boots in a few seconds (I'm still not using many extensions though).

« Last Edit: December 23, 2010, 01:26:11 PM by thane »

Offline nObRaIn

  • Newbie
  • *
  • Posts: 18
Re: Long pause during boot
« Reply #5 on: December 24, 2010, 12:52:52 PM »
thanks again for the suggestions. i did try using "debug" but the messages scroll too fast to read in detail. Is there any way I can log this info?

In any case, it looks like there is no delay there, so i'm leaning towards the usb 1.0 explanation as it still takes a couple of minutes from the time i see the ready message to the time i see anything else on the screen, even with "debug".

Unfortunately i don't have any other systems with usb 1.0 at home to test, but i did try booting the same notebook with the unmodified tiny core 3.3 and it didn't make any difference at all.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Long pause during boot
« Reply #6 on: December 24, 2010, 01:17:25 PM »
thanks again for the suggestions. i did try using "debug" but the messages scroll too fast to read in detail. Is there any way I can log this info?

See Reply # 1
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: Long pause during boot
« Reply #7 on: December 24, 2010, 04:15:40 PM »
If you boot with "pause", you can scroll up/down with shift+pgup/dn.

I concur with the thoughts on slow loading during the booting stage (have also had slow boots due to this).  Assuming it can reach the theoretical throughput of 12Mbit/s, it would take ~7 seconds to read ~10MB... but actual speeds are typically much less.

Edit: Side note: Wikipedia article: "For USB 1.1, an average transfer speed of 880 KiB/s has been observed." which would bring the time to ~12s
« Last Edit: December 24, 2010, 04:21:00 PM by ^thehatsrule^ »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Long pause during boot
« Reply #8 on: December 24, 2010, 06:58:31 PM »
I would be curious what happens if you follow the same boot procedure as closely as practically reproducible on a newer PC - even if that involves a USB 2.0 port.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline nObRaIn

  • Newbie
  • *
  • Posts: 18
Re: Long pause during boot
« Reply #9 on: December 24, 2010, 09:18:50 PM »
Side note: Wikipedia article: "For USB 1.1, an average transfer speed of 880 KiB/s has been observed." which would bring the time to ~12s

And yet, it takes a couple of minutes in my case. I did try loading tc with "pause" but I still miss the very first messages even if I scroll all the way up.

thanks again for the suggestions. i did try using "debug" but the messages scroll too fast to read in detail. Is there any way I can log this info?

See Reply # 1

I can't find anything in /var/log if i boot with "debug" alone, and syslog gives me the same log with or without debug.

I would be curious what happens if you follow the same boot procedure as closely as practically reproducible on a newer PC - even if that involves a USB 2.0 port.

I did try that (if you mean booting via floppy with plop etc) but it didn't make any obvious difference. The newer PC boots as fast as if it was booting directly from the usb stick.