[git pull] scheduler fixes - Kernel

This is a discussion on [git pull] scheduler fixes - Kernel ; From: Hugh Dickins Date: Fri, 1 Aug 2008 20:59:08 +0100 (BST) > On Fri, 1 Aug 2008, Jeremy Fitzhardinge wrote: > > > > I have a function traversing a pagetable in vaddr order (low to high), taking > > ...

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 21 to 22 of 22

Thread: [git pull] scheduler fixes

  1. Re: [PATCH] lockdep: lock_set_subclass - reset a held lock's subclass

    From: Hugh Dickins
    Date: Fri, 1 Aug 2008 20:59:08 +0100 (BST)

    > On Fri, 1 Aug 2008, Jeremy Fitzhardinge wrote:
    > >
    > > I have a function traversing a pagetable in vaddr order (low to high), taking
    > > pte locks as it builds up batches of pte page updates. When the batch is
    > > issued, it releases all the locks, and won't end up holding more than ~16 at a
    > > time.
    > >
    > > So, I think this is OK. There are no internal lock ordering issues, and I
    > > don't think there'll be any bad interactions from someone trying to take pte
    > > locks for two separate pagetables. I don't think there's anyone else trying
    > > to take more than one pte lock at once, but if there were "lock low vaddr then
    > > high" seems like a reasonable locking rule (or more precisely "lowest" to deal
    > > with the case of a pte page being aliased at multiple vaddrs).

    >
    > Please check the spin_lock_nested() in move_ptes() in mm/mremap.c.


    It won't work because spin_lock_nested() is limited to a depth
    of 8 and he aparently needs 16.

    Taking more than a few locks of the same class at once is bad
    news and it's better to find an alternative method.

    --
    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/

  2. Re: [PATCH] lockdep: re-annotate scheduler runqueues

    From: Peter Zijlstra
    Date: Fri, 01 Aug 2008 13:08:43 +0200

    > The thing that triggered it for David is a regular kernel build with
    > large concurrency.


    Peter, I've been beating up these two patches here for a while
    on my 64-cpu box and it hasn't budged yet.

    I'll let you know if anything happens, but it looks good so far.
    --
    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/

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2