Re: Patch for Retry based AIO-DIO (Was AIO and DIOtestingon2.6.0-test7-mm1)

From: Adrian Bunk (bunk_at_fs.tum.de)
Date: 10/26/03

  • Next message: Pavel Machek: "Re: Blockbusting news, results get worse"
    Date:	Sun, 26 Oct 2003 12:57:19 +0100
    To: Andrew Morton <akpm@osdl.org>
    
    

    On Thu, Oct 23, 2003 at 04:46:38PM -0700, Andrew Morton wrote:
    >...
    > > -Os has it's benefits on some systems, so it shouldn't be totally hidden
    > > under EMBEDDED. OTOH, it's less tested, so only people who know what
    > > they are doing should use it (EXPERIMENTAL plus help text).
    >
    > It causes kernels to crash on a major linux distribution. We need to
    > either make it very hard to turn on, or just forget it altogether.

    The -Os patch with a dependency on EMBEDDED is below.

    diffstat output:

     arch/arm/Makefile | 2 --
     arch/h8300/Kconfig | 4 ++++
     arch/h8300/Makefile | 2 +-
     Makefile | 8 +++++++-
     init/Kconfig | 10 ++++++++++
     5 files changed, 22 insertions(+), 4 deletions(-)

    cu
    Adrian

    --- linux-2.6.0-test9/init/Kconfig.old 2003-10-26 12:48:21.000000000 +0100
    +++ linux-2.6.0-test9/init/Kconfig 2003-10-26 12:49:56.000000000 +0100
    @@ -196,6 +196,16 @@
     
     source "drivers/block/Kconfig.iosched"
     
    +config CC_OPTIMIZE_FOR_SIZE
    + bool "Optimize for size" if EMBEDDED
    + default y if ARM || H8300
    + default n
    + help
    + Enabling this option will pass "-Os" instead of "-O2" to gcc
    + resulting in a smaller kernel.
    +
    + If unsure, say N.
    +
     endmenu # General setup
     
     
    --- linux-2.6.0-test9/Makefile.old 2003-10-26 12:48:15.000000000 +0100
    +++ linux-2.6.0-test9/Makefile 2003-10-26 12:48:32.000000000 +0100
    @@ -275,7 +275,7 @@
     CPPFLAGS := -D__KERNEL__ -Iinclude \
                        $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include)
     
    -CFLAGS := -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
    +CFLAGS := -Wall -Wstrict-prototypes -Wno-trigraphs \
                          -fno-strict-aliasing -fno-common
     AFLAGS := -D__ASSEMBLY__
     
    @@ -431,6 +431,12 @@
     # ---------------------------------------------------------------------------
     
     
    +ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
    +CFLAGS += -Os
    +else
    +CFLAGS += -O2
    +endif
    +
     ifndef CONFIG_FRAME_POINTER
     CFLAGS += -fomit-frame-pointer
     endif

    --- linux-2.6.0-test5-mm4/arch/arm/Makefile.old 2003-09-25 14:38:18.000000000 +0200
    +++ linux-2.6.0-test5-mm4/arch/arm/Makefile 2003-09-25 14:40:47.000000000 +0200
    @@ -14,8 +14,6 @@
     GZFLAGS :=-9
     #CFLAGS +=-pipe
     
    -CFLAGS :=$(CFLAGS:-O2=-Os)
    -
     ifeq ($(CONFIG_FRAME_POINTER),y)
     CFLAGS +=-fno-omit-frame-pointer -mapcs -mno-sched-prolog
     endif
    --- linux-2.6.0-test5-mm4/arch/h8300/Kconfig.old 2003-09-25 14:43:27.000000000 +0200
    +++ linux-2.6.0-test5-mm4/arch/h8300/Kconfig 2003-09-25 14:43:44.000000000 +0200
    @@ -5,6 +5,10 @@
     
     mainmenu "uClinux/h8300 (w/o MMU) Kernel Configuration"
     
    +config H8300
    + bool
    + default y
    +
     config MMU
             bool
             default n
    --- linux-2.6.0-test5-mm4/arch/h8300/Makefile.old 2003-09-25 14:38:18.000000000 +0200
    +++ linux-2.6.0-test5-mm4/arch/h8300/Makefile 2003-09-25 14:38:24.000000000 +0200
    @@ -34,7 +34,7 @@
     ldflags-$(CONFIG_CPU_H8S) := -mh8300self
     
     CFLAGS += $(cflags-y)
    -CFLAGS += -mint32 -fno-builtin -Os
    +CFLAGS += -mint32 -fno-builtin
     CFLAGS += -g
     CFLAGS += -D__linux__
     CFLAGS += -DUTS_SYSNAME=\"uClinux\"

    -
    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: Pavel Machek: "Re: Blockbusting news, results get worse"

    Relevant Pages

    • Re: [ck] 2.6.12-ck4
      ... > +My take on the never ending config HZ debate. ... > 1000HZ kernel, decreases overhead ever so slightly, and minimises clock drift ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED
      ... I'm not doing anything funky in grub, here's my boot options: ... +config EARLY_PRINTK ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.12-rc5-mm1
      ... `grep HZ .config' and see if you can work out why it broke? ... The timer interrupt may cause bus ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 32-bit segfaults on x86_64 in recent mm kernels
      ... > kernels on x86_64. ... This is because of the flex mmap patch for x86-64. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH 45/47] Re-add PC Speaker support for PPC
      ... config INPUT_PCSPKR ... * 8253/8254 Programmable Interval Timer ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)