|
|
Log in / Subscribe / Register

LWN.net Weekly Edition for November 21, 2013

The Linus and Dirk show comes to Seoul

By Jonathan Corbet
November 20, 2013

Korea Linux Forum
Linus Torvalds famously does not like to give prepared talks, so, when he makes a conference appearance, it tends to be in the form of a free-ranging conversation, usually with diving buddy Dirk Hohndel. Those two put in an appearance on the second day of the 2013 Korea Linux Forum. What resulted was a lively conversation covering a wide range of topics; there was little overlap with their LinuxCon Japan session earlier this year.

In the beginning

Dirk started off with a simple question to Linus: looking back over the history of Linux, what would you change if you could? Linus answered that, given how well things have gone, he either did everything right or was incredibly lucky. His vote, he added, would be for the "did everything right" alternative. In truth, though, there was a lot of luck combined with doing one important thing right: he had no preconceived ideas of where he wanted Linux to go. Instead, he wanted the system's users to say where things should go; everything was open to change. That gave Linux the freedom to evolve into something that was useful for a lot of people.

What did he expect when he first put Linux out there? "Riches, fame, and fast cars" was his first, flippant response. What he actually expected, he said, was rather more prosaic. He had been developing software for long enough to see a common pattern with new projects: initially developers get excited about what they are doing, but then things slow down about halfway through. Once developers encounter the vast numbers of boring details that have to be dealt with to make things work, they often decide it's not what they jumped into the project for, so they leave it for something shiny and exciting. Linus fully thought that he would do the same with the system that came to be called [Linus and Dirk] "Linux," but it never happened. He quickly reached a point where it did what he wanted, but then "crazy people started doing insane things." New challenges came along, along with new users doing even stranger things. That has kept it interesting all this time.

Even now, he does not really know what to expect, except that Linux will be around for a long time. He had never thought that Linux would turn out to be his life, but, at this point, he has been working on it for more than half of his life. He doesn't, he added, see himself stopping now.

Was Linus surprised by how many people responded to the early Linux releases and sent patches? Yes, he was, but that was also what he had wanted to have happen. The one time he was truly surprised was in early 1992, when he suddenly realized that he didn't know all of his users anymore. That's unlikely to change, he noted, as it wouldn't work well to have all Linux users approach him now — even if sometimes the state of his mailbox makes it seem like that is exactly what is happening.

Pace, process, and patents

The previous day, Greg Kroah-Hartman had given a quick talk on how the pace of kernel development was high and continuing to increase. Dirk asked: do those numbers make your head spin? Linus replied in the negative, saying that we have learned how to build kernels at this point. There are increasing numbers of developers, but Linus personally deals with about 100 of them in any given release cycle. The rest of the work is nicely distributed. Nobody, he said, worries about the number of patches being merged per hour. He worries, instead, about testing and the scalability of the process as a whole. Thus far, things seem to be working out well.

An audience member stepped up to ask: given that the amount of code and functionality going into the kernel is increasing, is there a need for more testing time between releases? How does the balance between development and testing work out? Linus responded that most projects have a vision for what they want to accomplish, with nice lists of planned features for the next release. The kernel community doesn't do that; releases are purely time-based, and the release numbers themselves don't really mean anything. If something isn't ready for a given cycle, it simply does not get merged. [Linus and Dirk] Yes, more code implies a need for more testing, but that work is distributed too — there are more testers. In the end, individual developers are probably not working any faster, even if the process as a whole is accelerating.

Dirk added that Linus's mainline development activities, while being the highest-profile part of the process, are really just the final integration testing step. All the code merged at that point has been in maintainer trees and linux-next and is, hopefully, well tested.

Another audience question touched on patent issues: does the kernel project have any policies in place to detect and avoid patent-related problems? Linus responded that software patents are clearly a huge problem, but they are no bigger a problem for the kernel than for the technology industry as a whole. Indeed, the kernel tends to have fewer patent problems than software at higher levels because kernels have been around for a long time. In a sense, little that is new or novel is done at the kernel level. That said, kernel developers do try to avoid patent problems; he gave Samsung's exFAT filesystem implementation as an example. This code has been released under the GPL, but it has not yet been merged into the mainline; lawyers are talking about it now, and he hopes that the problems will soon be resolved. But, Linus said, as technical people we can't do much about patent problems; we have to let the legal people deal with them.

The next question had to do with patches causing incompatible changes. Linus asserted that most patches merged into the kernel are obvious improvements. Others may fix security issues, which can raise problems: some programs may be relying on the behavior that resulted in the security problem in the first place. In the case of security problems the necessary outcome is usually clear, and it may be necessary to break things. But, sometimes, a patch can be tweaked so that the kernel still provides the needed behavior while closing the security hole. A couple of times every release cycle it becomes necessary to think more carefully about a patch: is it more important to improve performance, or to maintain compatibility for some obscure behavior? In the end, he said, engineering is about tradeoffs.

Africa, outreach, and inspiration

What about people in places like Africa, who lack the resources to work with Linux; what can the kernel project do for them? Linus responded that he is not trying to solve all the world's problems. A nice thing about open-source software is that it makes it possible to lower barriers for people anywhere in the world. But if you live in a remote part of Africa and don't even have electricity, you will not be able to participate in open-source development. But, he added, Linux and open-source software have helped to bring infrastructure support to a lot of poor places; it allows things to be done more cheaply and efficiently. He is happy that Linux has been used in that kind of project.

When he was in Korea ten years ago, Linus said, most Korean developers seemed to be busy doing localization work. That is important work, but not particularly challenging or gratifying. Now Korean developers are doing no end of interesting things; open source, he said, has helped to bring that change about. In general, we used to worry about getting more developers in Asia. A lot of progress has been made in that area, but it will take rather longer to reach places like Africa.

Has the Outreach Program for Women been successful in the kernel project? Linus answered that he is the wrong person to ask, since he doesn't usually get involved in initiatives like that. In general, he said, participation by women has been getting better, but it is still "really bad."

Linus was then asked: back at the beginning, what inspired you to start Linux in the first place? The answer is that it comes down to a lot of hard-to-describe personal things, starting with a background that made Linux possible in the first place. The country he grew up in offers free, widely available education; it also features a culture where money is less of an issue than in a lot of other places. That made releasing Linux an easier choice — he was never going for the money. In general, the culture outside of technology matters a lot; that is why open-source software took off much more quickly in certain countries than in others. It was simply less of a cultural jump in those countries.

How did he decide which patches to accept when he started? It took a while to start getting actual patches; early users usually sent in feature requests instead. When the first patches started coming in, he usually would not apply them directly; instead, he used them as a template describing the desired functionality. The TTY patches from Ted Ts'o were, perhaps, the first patches that he didn't rewrite; they were obvious features that he wanted to have anyway.

Things got more difficult around 2000, when he was bombarded with patches and the community as a whole had huge process problems. He had not yet given up control to the subsystem maintainers, and so had to look at every patch himself. It took him a long time, Linus said, to learn not to argue with people — most of the time. He also just doesn't look at most patches that closely now; he simply cannot afford to do it anymore.

Security and surveillance

Is open source a hindrance to security? No, Linus said, but the open-source process can be inconvenient when it comes to security issues. Security people tend to want to deal with companies that will keep issues hidden, but in an open environment you can't keep things quiet for long. He is completely convinced that open source is "good for security in every way," but it does mean that we need to have a different process for dealing with security reports. That creates some friction with how some people want to work.

What about the reports of widespread surveillance? Who is responsible for that problem — governmental agencies or the companies that work with them? Linus responded that there are a lot of people with stronger opinions on this topic than him. But, he said, companies often do not have a choice; they put backdoors into their products because security agencies require it. When faced with a situation like that, employees at the company can choose to resign rather than add the backdoor, but not everybody has the freedom to make that choice. Or they can go public, leading to a need to move abruptly to a different country; that, he said, is a choice for rare individuals.

In the end, he said, even the security agencies behind all this surveillance activity believe that they are doing things for the right reasons. So he doesn't get as emotional about the issue as some others do. Open-source software, he said, does not guarantee the absence of backdoors, but it does make them much harder to hide. It protects us from the sort of single points of failure that can enable backdoors to be hidden in proprietary code.

Dirk concluded by asking for some predictions for the next five years. His own were that there would be at least twenty new filesystems added to the kernel, but that we would not see a new filesystem notification system call. Linus said that he knows some of what is coming, but that stuff isn't interesting and fun; it's "the boring stuff that Jon [Corbet] talked about before." The fun stuff, he said, are the things that nobody predicts. It still happens; people send in stuff that is "completely insane." His response is usually "hell, no," but, two years later, he discovers that he has accepted it.

[Your editor thanks the Linux Foundation for travel assistance to attend the Korea Linux Forum.]

Comments (17 posted)

A Long-term support initiative update

By Jonathan Corbet
November 20, 2013

Korea Linux Forum
Distributors of Linux-based systems typically do not ship vanilla mainline kernels; instead, they apply a set of changes that, they think, will make the kernel more useful to their users. Some distributors, most notably those of the enterprise variety, are known for making extensive changes. But companies that ship Linux within mobile and embedded systems — Linux distributors of a different sort — also often provide highly modified kernels with their devices. Maintaining those kernels can be a significant cost for embedded companies. The Long Term Support Initiative (LTSI), working under the auspices of the Linux Foundation, aims to make life easier for mobile and embedded distributors. At the Foundation's 2013 Korea Linux Forum, Noriaki Fukuyasu provided an update on the current status of this effort, along with an estimate of the value it provides.

LTSI is about two years old at this point, Noriaki said; most of its users are companies in the Asian region. He said that LTSI could be thought of as "LTS + I" — the combination of community long-term support and industry. The LTS part is simply the long-term stable kernels supported by Greg Kroah-Hartman. LTSI started with the 3.0 kernel which, having had its two years of support, has just gone into the unsupported mode. Currently the 3.4 and 3.10 kernels are deemed the LTS kernels, with 3.10 having just begun its two years.

The "I" part comes from the industry patches that are added on top of the community LTS kernels. With these changes, Noriaki said, LTSI looks something like a fork of the mainline kernel, but that is not really the case. Yes, there is a lot of backporting of features into the LTSI kernel in response to industry requests, along with non-mainline changes that [Noriaki Fukuyasu] come from within the embedded industry, but the LTSI kernel is meant to serve as a conduit to direct those patches into the mainline.

Why was LTSI started? Kernel fragmentation has turned out to be expensive and painful for the embedded industry. Maintaining a pile of in-house patches is a difficult and error-prone task. Meanwhile, the industry is struggling to keep up with the high pace of innovation in the Linux kernel. The idea behind LTSI is that a lot of these problems can be addressed with a single kernel maintained for the embedded industry.

In general, Noriaki said, there is no standard distribution for the embedded industry, so companies tend to end up assembling things on their own. Yes, Android exists for a portion of the industry, but Android is aimed at mobile applications, while the embedded market is considerably larger than that. But even creating an Android-based device is a lot of work: one starts with a mainline kernel, applies Google's patches, mixes in patches to support the specific system-on-chip in use, adds some vendor-specific patches, then tries to bring in as many upstream fixes as possible. And this job must be done many times: embedded distributors often maintain a dozen or more kernels for their range of products.

The existence of in-house patches adds another level of complication to the creation of custom kernels. Vendors often put a lot of work into drivers for their hardware and other custom kernel code, but that work is never merged upstream or shared with others. As a consequence, the vendor is required to drag all that code forward whenever the time comes to move to a new kernel release. All this results in a repeated cycle of deadline-driven, one-shot work.

Unsurprisingly, the cost of moving to a new upstream kernel release tends to discourage vendors from doing so. But the kernel is evolving rapidly, and vendors do not want to be left behind. Products are getting more complex even while product cycles are getting shorter; it is natural to want to use newer kernels for new products to take advantage of the development work that has been done there.

A number of distributions have been based on the community LTS kernels; notably, Android releases were based on 3.0 and 3.4. LTSI is another distribution based on those kernels. The LTS kernel, though, is augmented in a couple of ways. One of those is the backporting of features and (in particular) new hardware support from later upstream kernel releases; this work is done on request from LTSI users. The other source of changes is in-house patches from vendors.

The next LTSI kernel will be 3.10; patches for this release are being accepted through the end of 2013. January will be dedicated to testing and stabilization of the LTSI 3.10 kernel, which, if all goes according to plan, will see its first release toward the beginning of February. See this page for some information on how to participate in this process.

Noriaki concluded his talk with an attempt to quantify the value of the LTSI kernel to its users. If nothing else, he said, having a specific number can be useful to hand to management when trying to convince them to ship LTSI in future products. The value of this kernel, he said, is a function of the number of backported patches. Getting patches to apply to older kernels, making whatever changes might be needed, and testing the result is an expensive process — and it must be done every time a company moves to a new kernel release.

The LTSI 3.0 kernel at the end of its life included 2,238 patches from the community LTS release, augmented by 875 patches backported by LTSI itself — a total of 3,113. The 3.4 kernel, instead, has 2,750 patches from the community release plus 721 LTSI patches; that's 3,471 total, and 3.4 is only halfway through its two-year life span. Assuming that each patch takes eight hours of a developer's time to backport and that the full cost of a developer's salary is $18,000 for a 20-day working month, one can quickly do the math to assign a value to this backporting work. That number came out to about $2.8 million for the 3.0 kernel, and $3.1 million for 3.4. The value for "active users," who are able to take advantage of the process to get their in-house patches upstream (and thus avoid the need to forward-port them in the future), should be quite a bit higher.

These numbers were taken from a white paper published by the Linux Foundation; registration is required to obtain a copy. One might well take issue with the cost assumptions used therein, but it would still be hard to deny that the LTSI kernels provide real value for the product-based distributors that use them. If working with LTSI brings those distributors — and their patches — closer to the mainline, that value can only increase.

[Your editor thanks the Linux Foundation for travel assistance to attend the Korea Linux Forum.]

Comments (3 posted)

Page editor: Jonathan Corbet

Inside this week's LWN.net Weekly Edition

  • Security: GNU virtual private Ethernet; New vulnerabilities in chromium, mozilla, nss, samba, ...
  • Kernel: 3.13 Merge window, part 2; Control groups; Device trees II: The harder parts.
  • Distributions: A "personal cloud": percloud; Mageia, openSUSE, ...
  • Development: The failure of pysandbox; Dart, PHP, Python, ...
  • Announcements: Open Source software for small businesses, events.
Next page: Security>>

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds