Re: [RFC,PATCH] RCUify single-thread case of clock_gettime()

From: Ingo Molnar (mingo_at_elte.hu)
Date: 10/31/05

  • Next message: Ram Pai: "Re: [PATCH 00/13] Adaptive read-ahead V5"
    Date:	Mon, 31 Oct 2005 22:44:49 +0100
    To: "Paul E. McKenney" <paulmck@us.ibm.com>
    
    

    * Paul E. McKenney <paulmck@us.ibm.com> wrote:

    > Hello!
    >
    > The attached patch uses RCU to avoid the need to acquire tasklist_lock
    > in the single-thread case of clock_gettime(). Still acquires
    > tasklist_lock when asking for the time of a (potentially
    > multithreaded) process.
    >
    > Experimental, has been touch-tested on x86 and POWER. Requires RCU on
    > task_struct. Further more focused testing in progress.
    >
    > Thoughts? (Why? Some off-list users want to be able to monitor CPU
    > consumption of specific threads. They need to do so quite frequently,
    > so acquiring tasklist_lock is inappropriate.)

    looks good to me - i have added this to the -rt tree, it should show up
    in 2.6.14-rt3.

            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: Ram Pai: "Re: [PATCH 00/13] Adaptive read-ahead V5"

    Relevant Pages

    • Fw: [patch] posix timers: RCU optimization for clock_gettime()
      ... The attached patch uses RCU to avoid the need to acquire tasklist_lock ... as requested by some off-list users. ...
      (Linux-Kernel)
    • Re: [RFC][PATCH] identify raid rcu-protected pointer
      ... > the object of the rcu read-side critical sections. ... Thank for the patch and detailed explanations. ... The place where you put the comment about incrementing new_disk does ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Light-weight Auditing Framework
      ... > SELinux). ... This is an update of the patch discussed in this thread: ... looks like a promising application of RCU! ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [patch 0/7] lockless pagecache 2
      ... Code clarity and commenting improvement. ... RCU attempt - completely wrong?). ... Send instant messages to your online friends http://au.messenger.yahoo.com ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC] Lock free fd lookup
      ... > rwlocks in read-mostly situations like this, ... Given the read heavy assumption that RCU makes (supported by your ... benchmarks), I believe that the comparison with RCU vs. current scheme ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)