login
Header Space

 
 

Re: Soft lockup regression from today's sched.git merge.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <mingo@...>
Cc: <linux-kernel@...>, <tglx@...>
Date: Wednesday, April 23, 2008 - 1:42 am

From: Ingo Molnar <mingo@elte.hu>
Date: Tue, 22 Apr 2008 11:14:56 +0200


I looked more closely at this.

There is no way the patch in question can work properly.

The algorithm is, essentialy "if time - prev_cpu_time is large enough,
call __sync_cpu_clock()" which if fine, except that nothing ever sets
prev_cpu_time.

The code is fatally flawed, once __sync_cpu_clock() calls start
happening, they will happen on every cpu_clock() call.

So like my bisect showed from the get-go, these cpu_clock() changes
have major problems, so it was quite a mind boggling stretch to stick
a touch_softlockup_watchdog() call somewhere to try and fix this
when the guilty change in question didn't touch that area at all.
:-(

Furthermore, this is an extremely expensive way to ensure monotonic
per-rq timestamps.  A global spinlock taken every 100000 ns on every
cpu?!?!  :-/

At least move any implication of "high speed" from the comments above
cpu_clock() if we're going to need something like this.  I have 128
cpus, that's 128 grabs of that spinlock every quantum.  My next system
I'm getting will have 256 cpus.  The expense of your solution
increases linearly with the number of cpus, which doesn't scale.

Anyways, I'll work on the group sched lockup bug next.  As if I have
nothing better to do during the merge window than fix sched tree
regressions :-(
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Soft lockup regression from today's sched.git merge., David Miller, (Tue Apr 22, 4:59 am)
Re: Soft lockup regression from today's sched.git merge., David Miller, (Wed Apr 23, 1:42 am)
Re: Soft lockup regression from today's sched.git merge., Peter Zijlstra, (Tue Apr 22, 8:45 am)
Re: Soft lockup regression from today's sched.git merge., Rafael J. Wysocki, (Tue May 6, 6:41 pm)
Re: Soft lockup regression from today's sched.git merge., Rafael J. Wysocki, (Wed May 7, 2:56 pm)
speck-geostationary