Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1488872

Re: [RFC PATCH v2 3/5] futex: Throughput-optimized (TO) futexes

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [RFC PATCH v2 3/5] futex: Throughput-optimized (TO) futexes
Date 2016-09-22 15:30 +0200
Message-ID <skceB-6UP-7@gated-at.bofh.it> (permalink)
References <sjtAR-3Al-1@gated-at.bofh.it> <sjtAR-3Al-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Sep 20, 2016 at 09:42:41AM -0400, Waiman Long wrote:
> +/*
> + * Spinning threshold before enabling lock handoff.
> + * Each sleep will decrement the threshold by 1/32 of the start value.
> + */
> +#define TO_SPIN_THRESHOLD	(1 << 13)
> +#define TO_SLEEP_DECREMENT	(TO_SPIN_THRESHOLD/32)

Argh, we should really get rid of those stupid numbers. Wasn't there a
patch set working on implementing paravirt functions that would make all
this fixable in a sane way?

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC PATCH v2 0/5] futex: Introducing throughput-optimized futexes Waiman Long <Waiman.Long@hpe.com> - 2016-09-20 15:50 +0200
  [RFC PATCH v2 2/5] futex: Rename futex_pi_state to futex_state Waiman Long <Waiman.Long@hpe.com> - 2016-09-20 15:50 +0200
  [RFC PATCH v2 3/5] futex: Throughput-optimized (TO) futexes Waiman Long <Waiman.Long@hpe.com> - 2016-09-20 15:50 +0200
    Re: [RFC PATCH v2 3/5] futex: Throughput-optimized (TO) futexes Mike Galbraith <umgwanakikbuti@gmail.com> - 2016-09-21 09:00 +0200
      Re: [RFC PATCH v2 3/5] futex: Throughput-optimized (TO) futexes Peter Zijlstra <peterz@infradead.org> - 2016-09-22 09:50 +0200
        Re: [RFC PATCH v2 3/5] futex: Throughput-optimized (TO) futexes Thomas Gleixner <tglx@linutronix.de> - 2016-09-22 15:40 +0200
          Re: [RFC PATCH v2 3/5] futex: Throughput-optimized (TO) futexes Davidlohr Bueso <dave@stgolabs.net> - 2016-09-22 16:50 +0200
            Re: [RFC PATCH v2 3/5] futex: Throughput-optimized (TO) futexes Thomas Gleixner <tglx@linutronix.de> - 2016-09-22 16:50 +0200
              Re: [RFC PATCH v2 3/5] futex: Throughput-optimized (TO) futexes Davidlohr Bueso <dave@stgolabs.net> - 2016-09-22 17:20 +0200
                Re: [RFC PATCH v2 3/5] futex: Throughput-optimized (TO) futexes Thomas Gleixner <tglx@linutronix.de> - 2016-09-22 22:50 +0200
                Re: [RFC PATCH v2 3/5] futex: Throughput-optimized (TO) futexes Davidlohr Bueso <dave@stgolabs.net> - 2016-09-22 23:40 +0200
                Re: [RFC PATCH v2 3/5] futex: Throughput-optimized (TO) futexes Thomas Gleixner <tglx@linutronix.de> - 2016-09-22 23:50 +0200
          Re: [RFC PATCH v2 3/5] futex: Throughput-optimized (TO) futexes Thomas Gleixner <tglx@linutronix.de> - 2016-09-22 22:30 +0200
    Re: [RFC PATCH v2 3/5] futex: Throughput-optimized (TO) futexes Peter Zijlstra <peterz@infradead.org> - 2016-09-22 15:30 +0200
  [RFC PATCH v2 5/5] futex, doc: TO futexes document Waiman Long <Waiman.Long@hpe.com> - 2016-09-20 15:50 +0200
  [RFC PATCH v2 4/5] futex: Add timeout support to TO futexes Waiman Long <Waiman.Long@hpe.com> - 2016-09-20 15:50 +0200

csiph-web