r/linux • Verified • Dec 01 '14

I'm Greg Kroah-Hartman, Linux kernel developer, AMA!

To get a few easy questions out of the way, here's a short biography about me any my history: https://en.wikipedia.org/wiki/Greg_Kroah-Hartman

Here's a good place to start with that should cover a lot of the basics about what I do and what my hardware / software configuration is. http://greg.kh.usesthis.com/

Also, an old reddit post: https://www.reddit.com/r/linux/comments/18j923/a_year_in_the_life_of_a_kernel_mantainer_by_greg/ explains a bit about what I do, although those numbers are a bit low from what I have been doing this past year, it gives you a good idea of the basics.

And read this one about longterm kernels for how I pick them, as I know that will come up and has been answered before: https://www.reddit.com/r/linux/comments/2i85ud/confusion_about_longterm_kernel_endoflive/

For some basic information about Linux kernel development, how we do what we do, and how to get involved, see the presentation I give all around the world: https://github.com/gregkh/kernel-development

As for hardware, here's the obligatory /r/unixporn screenshot of my laptop: http://i.imgur.com/0Qj5Rru.png

I'm also a true believer of /r/MechanicalKeyboards/ and have two Cherry Blue Filco 10-key-less keyboards that I use whenever not traveling.

Proof: http://www.reddit.com/r/linux/comments/2ny1lz/im_greg_kroahhartman_linux_kernel_developer_ama/ and https://twitter.com/gregkh/status/539439588628893696

1.9k Upvotes

1.0k comments sorted by

View all comments

3

u/azalynx Dec 03 '14

As someone who is very familiar with the way kernel maintainers handle things, can you give us some insight on the problems regarding Con Kolivas' kernel patchset, and why the patches were never merged? In your personal opinion, do you think there's useful stuff in those patches, or in the BFS scheduler? Or do you think most of the alleged benefits come down to placebo? Is the problem just that it's hard to quantify or measure desktop responsiveness from a user perspective with benchmarking tools?

Basically, I'm trying to figure out whether there are actual weaknesses in the kernel that those patches (and the BFS scheduler) addressed, and if so, what would be the first step towards getting either those patches, or something similar, merged in the future? Do we have to start by writing better benchmarking tools that can measure responsiveness or what? Or is X to blame for everything?

4

u/gregkh Verified Dec 03 '14

I was not involved in the scheduler patchset review process at all, so I don't know what happened, or really care about anything regarding that area of the kernel, sorry.

If you can actually benchmark "responsiveness" that would go a huge way toward having the ability to be able to "improve it" by changing the scheduler. Remember, the scheduler works as a general-purpose scheduler for all different types of processes and loads, and as such, is the best one out there compared to any operating system (as benchmarked by latency response benchmarks and throughput benchmarks), so we are doing really well.

X is to blame for everything, and nothing, so feel free to point your finger at that huge codebase, only if you are willing to help fix it up.

2

u/azalynx Dec 03 '14

Thank you for taking the time to respond, especially two days after the AMA, I really appreciate it. =)

As for X, I'm patiently putting my hopes on Wayland; I use the open source radeon drivers, so it's already starting to look pretty usable even now, and I imagine it will get even better in 2015.

2

u/admiralspark Dec 03 '14

BFS and Con's CK patchset were not included into the kernel for many reasons, most of them being drama-related. Early on he had some disagreements with the merger process and basically he and the maintainers got upset with each other (both rightfully so).

I personally work with his patchset and it's great...for desktop applications. It is not efficient beyond the scale of desktop processors as far as computations by a machine goes; CFS is much more efficient at scale and unless your core is under obnoxious load (like an average of 4 nonstop), it works fine on the desktop as well.

It is, however, a very important patch set which, if it was more modular, would be completely worth being an option in mainline.

See Graysky's work on the Arch repo he maintains: http://repo-ck.com/

As a side note, I absolutely love using a -ck kernel when compiling, since I can run a make -j9 on my i7 machine and still browse the web/watch video/etc

EDIT: A word

2

u/azalynx Dec 03 '14

This is kind of what I was wondering; if indeed there is a benefit to these patches, surely the CFS maintainers would be interested in improving their scheduling to match the benefits of the CK/BFS patchset.

I recall reading about how people had a difficult time "proving" that it was objectively better, as in, using benchmarking tools or something, which is why I asked whether the first step might be to create a tool that could objectively measure something like "UI responsiveness", thus allowing us to prove objectively that solution A is better than solution B.

4

u/gregkh Verified Dec 04 '14

Yes please create such a tool / benchmark, that would be wonderful to have.

I have seen some tools to benchmark the scheduler code, in a userspace wrapper, to allow for simulation and testing different options and variants, which is really nice, but I don't think they ever got polished up enough for people to use them other than the original developers (some Google devs).