WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to speed-up the boot?  (Read 3997 times)

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
How to speed-up the boot?
« on: November 09, 2015, 10:13:33 AM »
Hi All,
Hence the TC7 boot slower than TC6 I'm looking for some working way how to do it much, much faster. I've remastered the filesystem to have only one FAT partition without ext4. Than I've tried to remove the overlays, but it's even slower because than it tries to load all the modules, even not needed and install extensions from non-existing ext4 partition. I've used turbo with 900MHz for boot process, but still it takes 18,5 sec. to finalize the boot, means to the LAN becomes connected.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11522
Re: How to speed-up the boot?
« Reply #1 on: November 09, 2015, 10:48:12 AM »
Hi jgrulich
If you add the boot code:
Code: [Select]
printk.time=1You will have timing information in  dmesg  which will tell you where time is being spent. The  syslog  boot code may
also prove useful. The results of that can be found in  /var/log/messages.

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: How to speed-up the boot?
« Reply #2 on: November 09, 2015, 02:54:05 PM »
I know about this investigation, but the major time it takes before the first text line with TC version appears. Than it is quite fast. Means that I've asked if someone knows the way how to speed the initial time when the system is extracted into the ram and is initiated.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11029
Re: How to speed-up the boot?
« Reply #3 on: November 09, 2015, 03:36:16 PM »
The bootloader is slow? You can only use faster media, or load less data (smaller kernel, smaller initrd).
The only barriers that can stop you are the ones you create yourself.

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: How to speed-up the boot?
« Reply #4 on: November 10, 2015, 05:50:02 PM »
Yes, the bootloader is slow. It takes 8 sec to get the first text line and than 10.2 sec to load whole system. I've removed all really not necessary and mandatory files from SD card, but still the same, 8 sec to start Linux. Don't know what to test to reduce this time.

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: How to speed-up the boot?
« Reply #5 on: November 15, 2015, 11:25:07 PM »
I have noticed that when I look at the end of my Xorg logs that the last entries are at 8.5 seconds for :1 and 9.1 seconds for :0, but clock time from power on is 23 seconds. It sure does seem to take a long time to start the boot process after power on. Other than a watch, is there a reliable way to measure the POST time? How much difference does the SD card speed help?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: How to speed-up the boot?
« Reply #6 on: November 16, 2015, 02:15:53 AM »
Yes, the bootloader is slow. It takes 8 sec to get the first text line and than 10.2 sec to load whole system. I've removed all really not necessary and mandatory files from SD card, but still the same, 8 sec to start Linux. Don't know what to test to reduce this time.

Removing unneeded files has no influence. During the first 6-8s hardware is initialized. GPU reads bootloader, loads firmware for CPU, turns on RAM, starts USB and other peripheral units, etc. It is out of your control. Only thing you can do is to disable I2C, I2S in config.txt if you do need them to save 1.5s

For details see http://raspberrypi.stackexchange.com/questions/10442/what-is-the-boot-sequence


« Last Edit: November 16, 2015, 02:22:04 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 699
Re: How to speed-up the boot?
« Reply #7 on: November 16, 2015, 06:10:32 PM »
Have seen on some linux systems that have some tcp/ip functions being slow, and delayed
because of no response in the dns back resolving in the "in-addr.arpa" zone.
And also in the forward zone.

The dns resolving in the systems being delayed by some timeouts by no response.

So if you having some servers in your linux system with fqdn, you can add these in to the hosts file, so the server don't need to ask the dns server.. and so on.