Re: [Lse-tech] [patch] sched-domain cleanups, sched-2.6.5-rc2-mm2-A3

From: Ingo Molnar (mingo_at_elte.hu)
Date: 03/25/04

  • Next message: Jamie Lokier: "Re: arch/i386/Kconfig: CONFIG_IRQBALANCE Description"
    Date:	Thu, 25 Mar 2004 20:09:45 +0100
    To: Andi Kleen <ak@suse.de>
    
    

    * Andi Kleen <ak@suse.de> wrote:

    > It doesn't do load balance in wake_up_forked_process() and is
    > relatively non aggressive in balancing later. This leads to the
    > multithreaded OpenMP STREAM running its childs first on the same node
    > as the original process and allocating memory there. [...]

    i believe the fix we want is to pre-balance the context at fork() time.
    I've implemented this (which is basically just a reuse of
    sched_balance_exec() in fork.c, and the related namespace cleanups),
    could you give it a go:

      http://redhat.com/~mingo/scheduler-patches/sched-2.6.5-rc2-mm2-A5

    another solution would be to add SD_BALANCE_FORK.

    also, the best place to do fork() blancing is not at
    wake_up_forked_process() time, but prior doing the MM copy. This patch
    does it there. At wakeup time we've already copied all the pagetables
    and created tons of dirty cachelines.

            Ingo
    -
    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: Jamie Lokier: "Re: arch/i386/Kconfig: CONFIG_IRQBALANCE Description"

    Relevant Pages

    • Re: List linux-dvb closed to public posts
      ... > may as well just fork the code and fix the damned thing myself:). ... > separate bug-submission address which is open. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: open(2) says O_DIRECT works on 512 byte boundries?
      ... If you also run into this final fix is attached below. ... the very moment we mark any pte wrprotected because a third unrelated thread ... The COW triggered inside fork will run while the parent pte is readonly to ... unsigned long addr, int *rss) ...
      (Linux-Kernel)
    • Re: open(2) says O_DIRECT works on 512 byte boundries?
      ... If you also run into this final fix is attached below. ... the very moment we mark any pte wrprotected because a third unrelated thread ... The COW triggered inside fork will run while the parent pte is readonly to ... unsigned long addr, int *rss) ...
      (Linux-Kernel)
    • Re: Power Management Update
      ... I encountered this problem by having an IDE CD-ROM, ... He mentioned producing a cleaner patch, but this should at least fix the ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] fs/fcntl.c : dont test unsigned value for less than zero
      ... I think the real problem here is that 'arg' ... architecture's ptrace code could easily make use of the latter, ... But be careful not to "fix up" ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)