Re: Linux Kernel speculation



On Thu, 21 May 2009 12:36:38 -0500, Nobby Anderson <nobby@xxxxxxxxxxxxxxx> wrote:
We have a number of systems based on the ppc core in a Virtex 4 FX12. The
system has 4MB flash RAM for program storage and 32MB RAM and uses one of
the EDK-supplied Ethernet cores for comms (temac).

Some time ago I ported a 2.6.15 kernel onto it and we've been running with
that ever since. The system boots with a small bootloader which loads uboot
which in turn loads the Linux kernel. The kernel has an initrd and boots
into a ram filesystem that's loaded off a compressed image on the flash.

The total boot time is of the order of 35 seconds - that's from a cold start
to the application running with tcp sockets open to receive stuff from the
LAN. I'd like to explore ways of making that faster.

It seems that the biggest pauses in the boot process are to do with the
initrd loading, then the flash RAM being decompressed into RAM for the
ramdisk, and then there's a long pause while the Etherent hardware
initialises. There's also about 5 seconds lost at the start while the
system looks for keypresses to activate the two boot loaders' flash-ram
loading tools, and I'm going to replace both of those to look for a
jumper setting on the board.

What's the most effective route to further reducing the boot time? For
example, is there anything I can do to get rid of the initrd, or to
speed up loading a flash disk into RAM? Is there any benefit to going
for a later kernel - later desktop kernels seems to bood a lot faster
than older ones on the same hardware, but I'm unsure how much of that
is to do with more efficient driver and other module loading and
how muchg is to do with the basic kernel itself. I've already removed
everything from the kernel that's not needed and everything that it needs
is compiled in, I believe.

Do you have unnecessary devices compiled in your kernel or as modules
in your initrd?

I have a diskless multimedia computer that boots off a LAN and it
takes <25 seconds to boot to a gui application. Without the gui, it
would be <20 seconds, for example the ssh server is available in 15
seconds from bios start.
.



Relevant Pages

  • Linux Kernel speculation
    ... system has 4MB flash RAM for program storage and 32MB RAM and uses one of ... which in turn loads the Linux kernel. ... The total boot time is of the order of 35 seconds - that's from a cold start ... then the flash RAM being decompressed into RAM for the ...
    (comp.arch.embedded)
  • Dual Opteron 248s w/ 8GB RAM on Tyan K8W (S2885)
    ... I am having a problem with getting 8GB of RAM to work with the 2.6.5 ... kernel that Red Hat uses in their new Fedora Core 2 test3 release. ... Also I haven't really stressed the kernel on these boots. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Pre-loaded mfsroot size and FreeBSD 4.9 with 4G RAM
    ... If I have 4G of RAM in the machine, ... With only 2G of RAM the kernel boots ... the kernel still panics. ... boots successfully on a machine with 4G of RAM. ...
    (freebsd-hackers)
  • Re: Pre-loaded mfsroot size and FreeBSD 4.9 with 4G RAM
    ... If I have 4G of RAM in the machine, ... With only 2G of RAM the kernel boots ... the kernel still panics. ... boots successfully on a machine with 4G of RAM. ...
    (freebsd-hackers)
  • FC3 boot question
    ... This system is a intel P3 800 with 512 ram, ... When it boots it shows that it is booting to kernel 2.6.12-1.1381-FC3.this was the latest up2date had at the time. ...
    (linux.redhat.misc)