Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc4 released

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul E. McKenney
Date: Thursday, August 21, 2008 - 9:43 am

On Thu, Aug 21, 2008 at 08:57:31AM -0700, Linus Torvalds wrote:

And not only that, it will be worse before the new standard is ratified.
Or to give the full version: "Could be worse, and probably soon will be."


Let's see...

1.	Yes, the standard is being designed by a committee.

2.	No, it does not simply ratify the Linux kernel's memory-barrier
	API.  Yes, I did propose that.  No, the proposal did not go
	very far, but yes, it did get people's attention.  Yes, there
	were a number of people who asserted that Linux's approach was
	fundamentally broken/buggy/whatever.  Yes, they have changed
	their mind, most of them, anyway.  No, there is still zero
	chance of the standard simply ratifying smp_mb() and friends.

3.	Yes, we are working to get things closer to the Linux kernel's
	memory-barrier API into the spec.  No, they will likely not
	be exact.  Yes, getting some prominent committee members to
	countenance the idea of any sort of raw memory barrier (not
	connected directly to a load, store, or atomic operation)
	was a long-term project that finally made headway last May.
	Again, design by committee.

4.	No, the current Linux kernel memory-barrier API is not perfect.
	Yes, the proposed standard's preferred memory-barrier approach
	will make code easier to read and understand in many cases, and
	could potentially allow the compiler to do better optimizations
	(which, yes, might or might not be a good thing).  No, the
	proposed standard's preferred approach does not apply to all the
	cases in the Linux kernel.  No, I don't know whether or not it
	will be worthwhile to introduce the standard's preferred approach
	to the Linux kernel (though I suspect that it would be, but have
	to wait and see).  Either way, yes, the Linux kernel will likely
	continue to need to resort to non-standard gcc extensions and
	assembly language in at least some cases.  As you say, the kernel
	is not a garden-variety pthreads application.

But even if the Linux kernel never uses this stuff, user applications
will need it.  And there are a number of reasons why gcc extensions and
assembly language are even less welcome in many such applications than
they are in the Linux kernel.


Pretty much.  After all, if you wake up some morning and find that you
have absolutely no problems, your first action should be to check to
see if you are under six feet of earth.

							Thanx, Paul
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger , Nick Piggin, (Thu Aug 21, 6:37 am)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2. ..., Stefan Richter, (Thu Aug 21, 7:02 am)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2. ..., Stefan Richter, (Thu Aug 21, 8:22 am)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27- ..., Paul E. McKenney, (Thu Aug 21, 9:43 am)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27 ..., Jeremy Fitzhardinge, (Thu Aug 21, 2:06 pm)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27 ..., Jeremy Fitzhardinge, (Thu Aug 21, 2:21 pm)