Skip to contentSkip to conversation

Linux Boot Time measurements

DISCUSSION Davide CASCONE 3 participants 3 messages Jun 21, 2006 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

I'm working with Linux 2.6.16 on the OMAP5912 OSK platform. The kernel is run in XIP mode from a Sibley flash that works in burst mode at 48MHz and is cached. During the boot I have measured the following times:
1. about 1.2s from the start of the bootloader to the start of the kernel (perhaps most of time is spent to verify checksum)
1. about 500ms from the start of the kernel to the start of JFFS2 mount
2. about 1.2s to mount the JFFS2 file system on a 16MByte partion (13MByte of used space and 3MByte of free space)

What do you think about these measurements?
Any suggestion to improve the performances?

Thanks in advance.
Best Regards,
Davide

#1 lore raw
Quoted 5 lines · Davide CASCONE

2. about 1.2s to mount the JFFS2 file system on a 16MByte partion (13MByte of used space and 3MByte of free space)

What do you think about these measurements?
Any suggestion to improve the performances?

Profile it. Then quadruple INOCACHE_HASHSIZE and profile it again :)

Are you using summary? We can halve the amount of data we have to read from the flash.... I've had that half-implemented for about two weeks now. Must get it done before the 2.6.18 merge window closes...

Signature · 1 line
dwmw2
#2 lore raw

Re: Linux Boot Time measurements and JFFS2 file system mounting

Hi,

I am using linux kernel-2.6.12 for custom design board based on mips processsor. I want to reduce my bootup time. Can you suggest some step to optimise the boot up speed? Currently its taking ~30-40sec to bootup.

I have one more issue while mopunting jffs2 file system I am getting the kernel panic error..not able to open mtdblock. Pl see the attached log message. Can you suggest something here to sort out this issue.

Thanks & Regards,
Rakesh Jagota

Thanks & Regards,
Rakesh
----- Original Message ----- From: "David Woodhouse" <[email protected]>
To: "Davide CASCONE" <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, June 21, 2006 2:26 AM
Subject: Re: Linux Boot Time measurements

Quoted 21 lines · Davide CASCONE
Quoted 5 lines

2. about 1.2s to mount the JFFS2 file system on a 16MByte partion (13MByte of used space and 3MByte of free space)

What do you think about these measurements?
Any suggestion to improve the performances?

Profile it. Then quadruple INOCACHE_HASHSIZE and profile it again :)

Are you using summary? We can halve the amount of data we have to read from the flash.... I've had that half-implemented for about two weeks now. Must get it done before the 2.6.18 merge window closes...

Signature · 6 lines
dwmw2


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

## Booting image at 00200000 on cpu 0 ...

   Image Name:   Linux image
   Created:      2006-06-21   0:17:45 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    1431247 Bytes =  1.4 MB

Load Address: 80001000
Entry Point: 80333000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 2.6.12-rc2 ([email protected]) (gcc version 3.3.4) #11 Tue Jun 20 17:17:36 PDT 2006 Physical Memory Size: 131072 kB
Total Linux Memory: 110588 kB
Peripheral DMA: Chip 0x7108
CPU revision is: 00019064
Determined physical RAM map:
memory: 00c00000 @ 00000000 (usable)
memory: 05fff000 @ 02000000 (usable)
Built 1 zonelists
Kernel command line: root=/dev/mtdblock3 rw rootfstype=jffs2 console=ttyS0,9600
Primary instruction cache 24kB, physically tagged, 3-way, linesize 16 bytes.
Primary data cache 24kB, 3-way, linesize 16 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 512 (order: 9, 8192 bytes)
CPU frequency 165.00 MHz
Using 82.500 MHz high precision timer.
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 105684k/110588k available (2694k kernel code, 4744k reserved, 573k data, 128k init, 0k highmem) Mount-cache hash table entries: 512
Checking for 'wait' instruction... available.
NET: Registered protocol family 16
Can't analyze prologue code at 802a0d04
Boot Environment: 0x803535e0
nvram: x8 mode, 8192 bytes @0xc0000000
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
JFFS2: default compression mode: priority
Initializing Cryptographic API
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
ttyS0 at MMIO 0x18400000 (irq = 23) is a 16550A
ttyS1 at MMIO 0x18480000 (irq = 24) is a 16550A
ttyS0 at MMIO 0x18400000 (irq = 23) is a 16550A
ttyS1 at MMIO 0x18480000 (irq = 24) is a 16550A
lirc_serial: port b8400000 already in use, proceeding anyway
lirc_serial: compile the serial port driver as module and
lirc_serial: make sure this module is loaded first
Trying to free nonexistent resource <b8400000-b8400007>
lirc_serial: auto-detected active low receiver
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
loop: loaded (max 8 devices)
Ethernet Address: 00:11:22:33:44:55
go-emac: Registered eth0 at 0x18380000 irq 22
eth0: MII PHY found at address 1, status 0x786d.
ieee80211: 802.11 data/management/control stack, 1.0.3
ieee80211: Copyright (C) 2004-2005 Intel Corporation <[email protected]>
Loaded prism54 driver, version 1.2
Linux video capture interface: v1.00
Registering slave CPU 1, msg_base=a14a0000
go7x8x: registering new Go7x8x encoder
go7x8x: registered GO7x8x I2C controller at 0x0x18300100
wis-ov7640: starting probe for adapter GO7x8x I2C Adapter (0x810000)
wis-ov7640: initializing OV7640 at address 33 on GO7x8x I2C Adapter
wis-ov7640: error initializing OV7640
wis-saa7115: starting probe for adapter GO7x8x I2C Adapter (0x810000)
wis-saa7115: initializing SAA7115 at address 32 on GO7x8x I2C Adapter
msp3400: chip reset failed
msp3400: no chip found
tuner 0-0068: chip found @ 0xd0 (GO7x8x I2C Adapter)
WISChip 7x8x FLASH: probing 8-bit flash bus
WISChip 7x8x FLASH: Found 1 x16 devices at 0x0 in 8-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Creating 4 MTD partitions on "WISChip 7x8x FLASH":
0x00000000-0x00030000 : "Boot (192K)"
0x00002000-0x00004000 : "Environment (8K)"
0x00030000-0x001b0000 : "Kernel (1.5M)"
0x001b0000-0x007b0000 : "JFFS2 File system (6.0M)"
physmap flash device: 800000 at 1f400000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
RedBoot partition parsing not available
i2c /dev entries driver
Inside ds1337 rtc driver
<7>i2c_adapter i2c-0: found normal i2c entry for adapter 0, addr 21
Advanced Linux Sound Architecture Driver Version 1.0.9rc2 (Thu Mar 24 10:33:39 2005 UTC).
go7x8x-i2s: Trying to register GO7x8x I2S device
ALSA go7x8x I2S PCM capture driver initialized
ALSA device list:
#0: go7x8x-i2s
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
NET: Registered protocol family 1
NET: Registered protocol family 17
VFS: Cannot open root device "mtdblock3" or unknown-block(31,3)
Please append a correct "root=" boot option

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)