Slashdot Mirror


Tuning The Kernel With A Genetic Algorithm

fsck! writes "Jake Moilanen provided a series of four patches against the 2.6.9 Linux kernel that introduce a simple genetic algorithm used for automatic tuning. The patches update the anticipatory IO scheduler and the zaphod CPU scheduler to both use the new in-kernel library, theoretically allowing them to automatically tune themselves for the best possible performance for any given workload. Jake says, 'using these patches, there are small gains (1-3%) in Unixbench & SpecJBB. I am hoping a scheduler guru will able to rework them to give higher gains.'"

4 of 251 comments (clear)

  1. fp by odyrithm · · Score: -1, Offtopic

    fp
    -A

    --
    moo
  2. second post by Anonymous Coward · · Score: -1, Offtopic

    i win, you flaming bitches.

  3. Oh, Oh by Anonymous Coward · · Score: -1, Offtopic

    Just wait till some of our beloved gentoo ricers hear about it. I mean, imagine something like this with these highly optimized C-Flags:

    LDFLAGS='-Wl,-O1,--enable-new-dtags,--sort-commo n, --allow-multiple-definition,--allow-multiple-defin ition,--relax -z combreloc -z muldefs -s'

    CFLAGS="-g0 -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER -pipe -O3 -march=pentium4 -fweb -funswitch-loops -funroll-all-loops -funit-at-a-time -fsched2-use-traces -fsched2-use-superblocks -fsched-stalled-insns=12 -frename-registers -fprefetch-loop-arrays -fpeel-loops -fomit-frame-pointer -fmerge-all-constants -finline-limit=32768 -finline-functions -ffunction-sections -ffast-math -fdata-sections -fbranch-target-load-optimize2"

    CXXFLAGS="-g0 -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER -pipe -O3 -march=pentium4 -fweb -funswitch-loops -funroll-all-loops -funit-at-a-time -fsched2-use-traces -fsched2-use-superblocks -fsched-stalled-insns=12 -frename-registers -fprefetch-loop-arrays -fpeel-loops -fomit-frame-pointer -fmerge-all-constants -finline-limit=32768 -finline-functions -ffunction-sections -ffast-math -fdata-sections -fbranch-target-load-optimize2 -fvisibility-inlines-hidden -fabi-version=0 -fpermissive -fno-enforce-eh-specs"

    FEATURES="-ccache buildpkg -sandbox"
    MAKEOPTS="-j1"
    PORTAGE_NICENESS='0'
    A CCEPT_KEYWORDS="~x86 x86"
    CLEAN_DELAY="7"
    CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config"
    CONFIG_PROTECT_MASK="/et c/gconf"

    CBUILD=i686-pc-linux-gnu
    CCHOST=i686-pc-linux-g nu
    CCHOST=i686-pc-linux-gnu
    CHOST=i686-pc-linux- gnu
    CTARGET=i686-pc-linux-gnu

    http://bugs.gentoo.org/show_bug.cgi?id=74072

    This is a joke, btw., I'm using gentoo myself and love it.

  4. ADOBE RELEASES ACROBAT ON LINUX! by Anonymous Coward · · Score: -1, Offtopic

    Yeah, this means a lot to corporations. Linux will be used a lot more on corporate desktops now. You can read about it here.