Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753137Ab2BZVfy (ORCPT ); Sun, 26 Feb 2012 16:35:54 -0500 Received: from DMZ-MAILSEC-SCANNER-3.MIT.EDU ([18.9.25.14]:55786 "EHLO dmz-mailsec-scanner-3.mit.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752972Ab2BZVfx convert rfc822-to-8bit (ORCPT ); Sun, 26 Feb 2012 16:35:53 -0500 X-AuditID: 1209190e-b7f7c6d0000008c3-03-4f4aa5b8d98f Subject: Re: Can we move device drivers into user-space? Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=windows-1252 From: Theodore Tso In-Reply-To: Date: Sun, 26 Feb 2012 16:35:45 -0500 Cc: Theodore Tso , Bernd Petrovitsch , Henrik Rydberg , Bobby Powers , Greg KH , Guenter Roeck , Jidong Xiao , Kernel development list Content-Transfer-Encoding: 8BIT Message-Id: <99497605-0426-4A64-A134-D4D248590A2F@mit.edu> References: <20120224203715.GA4995@polaris.bitmath.org> <20120224205651.GA13333@kroah.com> <20120224212238.GA5178@polaris.bitmath.org> <20120224213027.GB15735@thunk.org> <20120224221459.GA5254@polaris.bitmath.org> <20120226104701.GA18152@polaris.bitmath.org> <365b85cee33d4f1aadc31336663de21c@HUBCAS2.cs.stonybrook.edu> <09a5cca9cffb4300843f682be529e8ca@HUBCAS2.cs.stonybrook.edu> To: Richard Yao X-Mailer: Apple Mail (2.1257) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFKsWRmVeSWpSXmKPExsUixG6nortjqZe/we9NEhbrb51it/jctobR onnxejaLuZO7WSzu7tvOanF51xw2ixWnDrFaTJk+k9GBw+PE+7+MHr++XmXzODD5JpvHzll3 2T32z13D7vH/UQurx+dNcgHsUVw2Kak5mWWpRfp2CVwZ9z6tZC44r1mx7uBnlgbGqwpdjJwc EgImEne2fmeDsMUkLtxbD2RzcQgJ7GOUuHboNjOEs4FRYtaRKewgVUICR5kkfu+3AbGFBSwk jvw7zghi8woYSsx81c4KYjML6EnsuP4LzGYTUJK482k/C4jNKRAo0dp/CSjOwcEioCrR1W4B Mp9ZoJNZ4vnn21C92hLLFr5mhphpJfHnwUUmiCMmsErcO72FCaRZREBD4tChYIirZSVuH9zP NIFRcBaSM2YhOWMWkrELGJlXMcqm5Fbp5iZm5hSnJusWJyfm5aUW6Rrr5WaW6KWmlG5iBEUL pyTfDsavB5UOMQpwMCrx8E5e6ekvxJpYVlyZe4hRkoNJSZT37BIvfyG+pPyUyozE4oz4otKc 1OJDjBIczEoivOreQDnelMTKqtSifJiUNAeLkjivmtY7PyGB9MSS1OzU1ILUIpisDAeHkgTv TZChgkWp6akVaZk5JQhpJg5OkOE8QMO5loIMLy5IzC3OTIfIn2LU5Xh2ettFRiGWvPy8VClx 3o8ggwRAijJK8+DmwJLcK0ZxoLeEea+BVPEAEyTcpFdAS5iAlrR99ARZUpKIkJJqYBRsP7bz 0sk5M585m+9V5j/3ou9wte6yk/O3Cl3/dn1DwZ3F98/dmnDyy4e8x3d8ZePnrn7bc8HzxjnP hZMq9z/7H10/+VzlmrM/nq02eqEh+tDB6KNN7kXlWYUHS1QUj6z+JNdTKe+X4CDWWz5JNcbh uxsrZ65d4iNWNcep0/nSyiMieKezvf6qxFKckWioxVxUnAgA8XVkQU0DAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5359 Lines: 96 On Feb 26, 2012, at 4:25 PM, Richard Yao wrote: > Ted, > > I think you have me confused with Jidong Xiao. He is the one who > suggested moving things to userspace. I happened to see the > conversation, noticed people had missed a few points and added them in > an attempt to be helpful. If you look at my emails to the mailing > list, you would see that I had said that this work should be done > elsewhere. The email to which you had replied was one that was meant > to say that if people were set on having those interested in doing > this to work with LInux, it should be okay for them to brainstorm on > the LKML. The problem is that there are a huge number of crackpots out there, and Linux is popular enough that many of them tend to gravitate to the LKML. If they want to brainstorm, that's fine; but don't expect senior kernel developers to necessarily pay a lot of attention. It would be like people insisting on being able to brainstorm about whether it's possible to square the circle, or solve the halting problem, on some abstract math theorist's mailing list. It's possible they might be on the verge of a massive breakthrough, but when I was one of the postmaster of MIT, I got to field enough of these folks asking if we could make sure the chair of the math department would take a look at their proof, because they couldn't get anyone else to pay attention?. There is an old saying, "code talks, bullshit walks". If someone is known to have produced real code, then people are much more likely to take the time to respond. If someone hasn't yet produced real code, it's better if they try it, and show at least some kind of interesting result, before they try to waste a lot of people's time working on their pet theories. And if they want to go do this "value add" on the FreeBSD list, I'd encourage them to do it, except I don't think I would be thanked by the FreeBSD folks?. -- Ted > > With that said, please refrain from further outbursts. They hurt Linux. > > Yours truly, > Richard Yao > > On Sun, Feb 26, 2012 at 3:30 PM, Ted Ts'o wrote: >> On Sun, Feb 26, 2012 at 10:05:59AM -0500, Richard Yao wrote: >>>>> I do not see what prevents an in-kernel context switch into a ring 3 >>>>> context with a different process address space. Is it necessary to >>>>> remove the code from the kernel tree before someone can do this? >>>> >>>> No, and that's the real problem here: Everybody who might think it's a >>>> good idea may please implement - and thus propose - something concrete, >>>> try it out and comeback with experience and performance numbers - and >>>> not just try to come up with some theory and other misleading points >>>> (what political aspect?!) and ideas what others should do and why it >>>> might be better. >>> >>> It seems counterproductive to tell people to produce results without >>> doing the brainstorming that such results require. >> >> It's also counterproductive to tell kernel programmers how they should >> do what they are being paid how to do. If you just want to brainstorm >> possibilities where **you** will do all of the work, as opposed to >> asking the kernel development community to work on your pet theories, >> it's helpful if you more carefully label your poposals as such. >> >>> If such discussion is not welcome here, then the FreeBSD project has a >>> similar kernel design. Perhaps it would be more productive for those >>> interested in this to brainstorm on their mailing list. If anything >>> materializes, it could be for their kernel instead. Nothing is forcing >>> anyone to do things with Linux. >> >> My experience is that most researchers produce code which is not of >> production quality. It's very easy to produce a proof of concept that >> works well enough to publish a paper. Making something which is >> actually performant, is **hard**. The problem is that you don't get >> Ph.D.'s for counting cache line misses --- or for getting your >> implementation to the point where cache line misses matter in the >> first place. So the threat that Linux will miss out on some great >> breakthrough is something that is very hard for me to take seriously, >> speaking quite frankly. >> >> Usenix has awarded best paper awards to work that was done on obsolete >> kernels, where if the goal of that work was to produce production >> kernel code, was in fact horrible work. But if the goal of that work >> is to produce Ph.D. graduates, or to help the professor get tenure, >> was perhaps more successful. >> >> That being said, maybe you'd be happier engaging with the Minix 3 >> community. They are folks who think (unproven, theoretical) safety is >> more important than performance. And they've created a kernel which >> is a 140 times slower at process creation, ten times greater syscall >> overhead, and file copies that were two to ten times slower.[1] >> >> [1] http://lwn.net/Articles/220255/ >> >> And Prof. Tannenbaum is an academic, so his goals may be more closely >> aligned to yours. >> >> Best regards, >> >> - Ted -- 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/