Re: [PATCH] preset loops_per_jiffy for faster booting

From: Adam Kropelin (akropel1_at_rochester.rr.com)
Date: 07/10/04

  • Next message: Andi Kleen: "Re: GCC 3.4 and broken inlining."
    Date:	Fri, 9 Jul 2004 18:24:56 -0400
    To: Tim Bird <tim.bird@am.sony.com>
    
    

    On Fri, Jul 09, 2004 at 12:25:03PM -0700, Tim Bird wrote:
    > Finally, this code adds a new FASTBOOT menu to the kernel
    > config system, where we (CE Linux Forum developers) would like
    > to add this and other config options which can be used to
    > reduce kernel bootup time.

    <snip>

    > +menuconfig FASTBOOT
    > + bool "Fast boot options"
    > + help
    > + Say Y here to enable faster booting of the Linux kernel. If you
    > + say Y here, you may be asked to provide hardcoded values for some
    > + parameters that the kernel usually determines automatically.

    If FASTBOOT is intended to be merely a container for individual related
    options, this help text seems misleading. FASTBOOT=y alone will have no
    effect on the kernel. It's just a gateway to other more specific
    options. Something like this may be better:

            Say Y here to select among various options that can decrease
            kernel boot time. These options commonly involve providing
            hardcoded values for some parameters that the kernel usually
            determines automatically.

            This option is useful primarily on embedded systems.

            If unsure, say N.

    > +config PRESET_LPJ
    > + int "Preset loops_per_jiffy" if USE_PRESET_LPJ
    > + help
    > + This is the number of loops used by delay() to achieve a single
    > + jiffy of delay inside the kernel. It is roughly BogoMips * 5000.
    > + To determine the correct value for your kernel, first turn off
    > + the fast booting option, compile and boot the kernel on your
    > + target hardware, then see what value is printed during the
    > + kernel boot. Use that value here.

    Perhaps mention the new lpj= parameter is an alternative:

            loops_per_jiffy can also be set via the "lpj=" kernel command
            line parameter.

    --Adam

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Andi Kleen: "Re: GCC 3.4 and broken inlining."

    Relevant Pages

    • Re: [PATCH 1/3] 2.6.8-rc4-mm1 - Fix UML build
      ... can access them all, and initialized data all before uninitialized, so ... SYMLINKS:= $,$/$f) ... semaphore.c-dir = kernel ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Real-Time Preemption, -RT-2.6.12-final-V0.7.50-24
      ... > rebooted to a kernel that doesn't have the RT-preempt patch but ... getting a very verbose running trail, almost like an strace output, ... Copyright 2005 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • RE: Error mounting root fs on 72:01 using Promise FastTrak TX2000 (PDC20271)
      ... Subject: Error mounting root fs on 72:01 using Promise FastTrak TX2000 ... > Now I'm sucessfully booting my system with the 2.4.23 kernel using ... I think it's when the ATARAID driver is about to fire up. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • RE: Error mounting root fs on 72:01 using Promise FastTrak TX2000 (PDC20271)
      ... > Now I'm sucessfully booting my system with the 2.4.23 kernel using ... I think it's when the ATARAID driver is about to fire up. ... > the hard drives since this is the only thing that has changed. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: udev and devfs - The final word
      ... As each device driver loads and registers with the kernel, ... 'cookies' can be written out to keep them separately ID'd. ... e.g. increasing error rates and aging silicon will ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)