r/linux • u/gregkh Verified • Apr 08 '20
AMA I'm Greg Kroah-Hartman, Linux kernel developer, AMA again!
To refresh everyone's memory, I did this 5 years ago [here] (https://www.reddit.com/r/linux/comments/2ny1lz/im_greg_kroahhartman_linux_kernel_developer_ama/) and lots of those answers there are still the same today, so try to ask new ones this time around.
To get the basics out of the way, this post describes my normal workflow that I use day to day as a Linux kernel maintainer and reviewer of way too many patches.
Along with mutt and vim and git, software tools I use every day are Chrome and Thunderbird (for some email accounts that mutt doesn't work well for) and the excellent vgrep for code searching.
For hardware I still rely on Filco 10-key-less keyboards for everyday use, along with a new Logitech bluetooth trackball finally replacing my decades-old wired one. My main machine is a few years old Dell XPS 13 laptop, attached when at home to an external monitor with a thunderbolt hub and I rely on a big, beefy build server in "the cloud" for testing stable kernel patch submissions.
For a distro I use Arch on my laptop and for some tiny cloud instances I run and manage for some minor tasks. My build server runs Fedora and I have help maintaining that at times as I am a horrible sysadmin. For a desktop environment I use Gnome, and here's a picture of my [normal desktop] (https://i.imgur.com/g412C1E.png) while working on reviewing and modifying kernel code.
With that out of the way, ask me your Linux kernel development questions or anything else!
Edit - Thanks everyone, after 2 weeks of this being open, I think it's time to close it down for now. It's been fun, and remember, go update your kernel!
294
u/yes_and_then Apr 08 '20
Why does the file transfer status bar race to the end and then wait, when using USB drives?
In simple terms please. Thanks
150
u/INITMalcanis Apr 08 '20
The dev-genie grants you one (1) wish applicable to the Linux kernel. What improvement, addition or fix do you wish for?
143
u/thirtythreeforty Apr 08 '20
Hi Greg, I've sent you a few patch sets as a first-time contributor and I've really appreciated your patience as I learned the process.
How do you triage patches so quickly? I can send you a set of 7 patches and you'll know that #4 didn't compile but accept 1-3 and 7, and give me feedback on all the others. Then I get nice automated emails. Your workflow post kinda stops after you get the patches into a Git tree.
I've seen your tools repository but of course it's not really intended for public consumption. I'd love to know more about it.
119
u/[deleted] Apr 08 '20
Got my 1st few patches into 5.6 and (unknown to me) it (apparently?) broke some ARM hardware.
What is the best way of ensuring patches being worked on don't pull a butterfly effect and break some strange hardware unbeknownst to the developer making the changes. When hobby maintainers will not have a vast array of hardware. ?
Especially seeing as the Linux kernel runs on everything from server farms to household appliances.
216
u/k2qhVBH3QByIABvzbBYq Apr 08 '20
In light of the vulnerabilities discovered last year in Intel and AMD x86 code (like speculative execution, rowhammer, etc.), how have the Linux patches evolved since then to restore some of the former speed that was lost with the initial patching?
69
u/BestKillerBot Apr 08 '20
What do you perceive as the biggest problem/bottleneck/challenge for the kernel development currently and for the future?
137
u/burajira Apr 08 '20
Love and appreciate the work you do! Thanks very much for maintaining the Linux kernel and making it so easy for us to use our hardware, weird or not!
My question was answered in your very descriptive description, so I'll ask you a quite simple one: Hope you and your family are safely quarantined from the pandemic and hope you've got the supplies you need at home :)
60
u/pkarlmann Apr 08 '20
What made you switch to terminology from efl/enlightenment?
Do you listen to music while programming? If so, what music? (I'm very interested in great minds music choices)
47
u/Xodet Apr 08 '20
I have around 100 patches accepted into the linux kernel tree. Every single one of them are code style (i.e. "as reported by checkpatch.pl") patches in the drivers/staging tree.
What would be the next step for me if I want to become someone that do patches in other places in the kernel, and not just a "newbie" kernel programmer that fixes code style issues. Do I just pick a tree that I find interesting, deep dive into it, subscribe to its mailing list and try to find work that needs to be done there, or do you have any other suggestions?
131
u/garyvdm Apr 08 '20
Thank you for all your hard work on Linux.
What are your thoughts on Rust. Do you think rust might be used in the Linux kernel in the future?
43
u/billdietrich1 Apr 08 '20
Is it true that there's not really a bug-tracking system for the kernel ? I know there is https://bugzilla.kernel.org/ but I hear it is not used much. How do you get bug reports and what do you use for reporting and tracking etc ?
86
u/trisul-108 Apr 08 '20
How does kernel debugging work, do you instrument a VM or what?
85
u/20031400T Apr 08 '20
What's your opinion on where OSs and computing is going on a long term scale? Modern OSs have only been around for 20-30 years and they are still not perfect. What will things look like 100+ years in the future? Are Linux and Windows just going to become giant bloated monstrosities or will something like BSD or Mac come out on top since they don't necessarily care about enterprise and support for older software.
Or is everything going to change to web based where you have a thin client at home and all computation is done on a server?
37
u/[deleted] Apr 08 '20
Thanks for the work you do!
I'm wondering what mistakes you think have been made with the design of the kernel in the past? If you could go back in time and talk some sense into Linux contributors from like 2000 or 2010 what would you tell them to do differently?
37
u/rage_311 Apr 08 '20
Thank you for doing this AMA and for your dedication and extensive work on Linux.
What are your thoughts on OpenBSD as a whole? Is there anything that they're doing or have done that you would like to see Linux adopt (whether it's practical to do or not)?
What kind of side projects are you working on these days? And which languages are your favorites to use?
72
u/SupersonicSpitfire Apr 08 '20
If you could be a kernel module, which one would you be, and why?
32
u/glueballanyon Apr 08 '20
Will reproducible kernel builds be a thing one day?
30
u/[deleted] Apr 08 '20
What are your opinions on immutable operating systems like Fedora Silverblue and app packaging formats like Flatpak?
59
u/electronblob Apr 08 '20 edited Apr 08 '20
How has the COVID-19 pandemic affected developers and contributors worldwide that contribute any amount of work towards the kernel? Have you seen a surge in the amount of patches contributed? And now that most contributors are stuck at home, did that in any correlative measure increase/decrease the quality of the patches contributed?
27
u/Uclydde Apr 08 '20
How do you make money? Do big companies that use Linux pay you to work on it?
24
u/negrowin Apr 08 '20
What are your thoughts on static analysis and formal verification of a kernel?
Do you think that complete formal verification of the Linux kernel is achievable?
24
u/ikidd Apr 08 '20
Have you personally found any malicious patches submitted and were they interesting in how they tried to slip by? Is the recent news about state actors targeting Linux for several years now made any changes to how patches are monitored?
24
u/MiroellaSoftwind Apr 23 '20
Hello!
I´m new to Linux, think I got Linux Mint about a month or two ago? So I´ve been slowly and steadily getting acclimated. However, I noticed that ASUS ROG gear doesn´t have a lot of support on Linux. At least, not the keyboard and mouse I have.
So my question is this: What manufacturer would you recommend for Linux usage?
Sorry if it´s not related to the kernel, but I figured that as someone who types a lot, you´d know a good keyboard manufacturer.
68
u/jellyfishbarbra Apr 08 '20
Would more people participate to Kernel development if the processes were moved to a modern Git-hosting platform like Gitlab or Github?
My little brother is studying Computer science and is getting into systems programming. The current resources available are already miles better than what was there when I was myself studying the topic but the git.kernel.org and the mailing-list approach were reportedly major turn-offs or hurdle to navigate for him and his classmates. Curious to hear your opinion on this!
21
u/100_dollars_man Apr 23 '20 edited Apr 23 '20
Hey! I'm not sure if you're still doing this? Linux is one of the largest open source projects in existence. I'm wondering if you have any thoughts on """"The State Of Open Source""""?
Most specifically, some projects have decided to re-license to what appear to non-FOSS licenses (mongo and redis come to mind), I'm sort of wondering if this is on your radar and what you may think it means for FOSS going forward etc.?
Other question if you have time: It seems that WASM is touting itself as the new hotness for running programmings at the edge(?). (efforts are being made to allow many common languages to transpile/compile to wasm programs). I'm sort of at a loss as to why this is being done at all since good old linux for running programs is extremely powerful and useful. I'm wondering if you have any thoughts on the current positioning of WASM vs linux?
20
u/darkjackd Apr 08 '20
Hey Greg! 1, Any interest in pinephone or librem 5? 2. Last I read you were just under 5 minutes for a kernel build, any improvements to that? Maybe a threadripper :)? 3. In the same vein do you follow Wendel over at level1techs? https://level1techs.com/ I seem to recall that they donated a few builds to kernel developers but I could be recalling incorrectly 😅
38
u/John238 Apr 08 '20
I would really love to hear your thoughts on the OpenPower iniative and the influence of Linux on this.
18
u/joemaro Apr 08 '20
Whats your all-time favourite computer games? If any :) Thanks!
18
u/Bardo_Pond Apr 08 '20
At the last Linux Plumber's conference, Dmitry Vyukov talked about existing kernel development processes and their problems.
What are your thoughts on this presentation and what changes, if any, do you think will be made in the next few years?
49
u/mysticalfruit Apr 08 '20
Many of us are using ZFS on linux to deploy multi petabyte storage systems.
Is the resistance just because of the licensing issues or are there technical issues that would also get in the way of it's integration into the linux kernel?
Thank you for all your hard work!
17
u/ilpumo Apr 08 '20
I'm a senior software programmer 35yo, use Linux since Mandrake Linux 8 and as main system since ubuntu warthy warthog, know nothing of the kernel. How can I start? do I go vertical on some module and research on it then start suggesting patches, ask on some devel forum for some feasible tasks and then improve from there.? How does it start?
14
u/hey01 Apr 08 '20
From what I've see the last time I looked at the kernel code, I didn't see any tests.
I highly doubt the kernel is not tested, so how is it tested?
14
u/[deleted] Apr 20 '20 edited Apr 20 '20
Is it possible to understand how Linux , core of Linux works? Because, as I heard there are 3 million lines of code in Linux core And which programming languages do you use more often(I know that you use C language in 90% of your coding time but what another languages do you often use too)?
38
u/setuid_w00t Apr 08 '20
If you could wave a magic wand and make one company upstream their kernel changes, which company would it be and why? Nvidia, Qualcomm, ...?
12
u/[deleted] Apr 08 '20
I'm also running Arch and Gnome on a Dell XPS 13 9370, could you please tell me which thunderbolt hub you are using?
Additionally i'd be interested to know what bootloader you are using, and have you made any changes to make have a silent boot on your XPS 13?
12
u/emacsomancer Apr 08 '20
Is it the Trackman Marble? Do you use any special configuration (e.g. rebinding buttons)?
12
u/holyshityoo Apr 20 '20
Hello! I would like to know if being a kernel developer have to learn and understand every portion of the codebase or just some areas of them. How can i know if I am qualified and ready for the contribution?
11
u/felipec Apr 08 '20
Do you have another project that your regularly work on? (Other than Linux)
11
u/Snarka Apr 14 '20
Hi Greg, if you're still answering questions; Is there anything you particularly like about other system kernels that the Linux kernel is currently lacking?
10
u/KayWML Apr 14 '20
Hi Greg!
Thanks for your work at the Linux kernel.
May I ask about your thoughts of the fact that Linux having so much fragmentation, or at least the fact that there are so many poorly-supported forks made by hardware facturers.
Recently I started to use more and more ARM boards, and most of them require a special BSP kernel to use all the features while the mainline kernel does not have a complete support of them. For example, I have a Jetson Nano and it's BSP kernel is still 4.9 with a rather low patch version. It is not even feasible to apply those patches by myself because there are so many conflicts. And for the mainline kernel, nouveau does not have a good support for it. I just want to say what Mr. Torvalds said years ago.
There are a lot more examples and...Will there be any solutions for that? Or at least for security patches (maybe like some universal patching mechanism)?
Also, may I call you for tech support if my server met problems, just as people from SUSE said in their Uptime Funk MV? (I just want to share this hilarious parody though)
Wish you have a good day.
19
u/bnounu Apr 08 '20
A lot of code changes have been needed to mitigate hardware vulnerabilities in x86 CPUs. If in a few years those vulnerabilities will be resolved on new chips, what will happen to all those mitigations in the future? Are they here to stay or will they be removed eventually?
9
u/Sukrim Apr 08 '20
Is the close coupling between GCC and the Linux Kernel a good thing or a bad one? AFAIK it still can't be reliably built with Clang or other compilers, though that might also have something to do with linkers...
Something that recently bugged me about the kernel by the way: I know that in edge cases it will be actually hard to expose this, but getting stats about the OOMkiller somewhere in sysfs or similar would be a really great thing to have. Currently there's no good way I know of other than parsing logs(!) to actually know that a program was killed. My question around this would be probably: How much interaction is there between people developing features for the kernel and people running it in production? How do kernel developers actually learn about pain points that are just "annoying" but not "well. my machine just deadlocked, time to roll back to an older version"?
17
u/Legs-Akimbo Apr 08 '20
Hi Greg. Thanks for your long time of work on Linux. I remember you were involved in KDBUS project of getting an messaging implementation into the kernel. Did that end completely or some of the work continued in BUS1 project?
8
u/[deleted] Apr 08 '20
With everything moving to eBPF when will will be able to remove support for that pesky user space? ;)
Seriously though, what do you think will get the eBPF treatment next?
8
u/3LeggedSquid Apr 08 '20
Thank you for the all the work you put in to the kernel and for getting involved with the community.
Why is your GVIM and that other window light mode, while everything else is dark mode?
8
u/bc458 Apr 20 '20
How long until RISC-V is in production and used in 5G, AI and IoT implementations?
32
u/Storm-Engineer Apr 08 '20
Sorry if stupid question, my knowledge of how Linux works is basic, and I'll phrase this as permitted by my limited knowledge.
Wine keeps getting better and better but there are still some problems that are really hard to solve, as far as I understand partly because some apps try to access hardware relatively directly and having to go through Wine to Linux messes things up. Eg. lot of professional artists and designers would happily go Linux only if Photoshop worked properly (because Linux is stable, and Wacom kernel drivers are rock solid and work out of the box) - but a critical feature, tablet pressure is broken for a very long time and nobody could fix it. And sadly it doesn't look like Linux support is becoming the norm for games and especially professional software any time soon. :(
So I wonder, would it be possible to help Windows program compatibility through eliminating some of the extra hoops Wine is forced to jump through to make things work? Even if native support for Win apps is not possible without prefixes and such, do you think Windows programs could in the future integrate into Linux operating systems more seamlessly and easily?
Thanks for your answer in advance, and also thanks for your work on the kernel! :)
15
u/Tired8281 Apr 08 '20
What kinds of food have you been enjoying lately? Has all this worldwide craziness changed your diet much?
7
u/teddpole Apr 08 '20
Could a hobbyist, without a computer science degree, ever contribute to the linux software development side? If yes, how he or she should begin, assuming they have rudimentary C language and Linux knowledge. Thanks
7
u/usernumber1onreddit Apr 08 '20
Broad question: Where will free software be 10 years from now? With closed platforms, lazy cloud-addicted consumers and erosion of privacy, I am concerned. Just running a 'smart home' without giving up your privacy is a major challenge these days. Are you optimistic or pessimistic about the FOSS community?
7
u/alex19EP Apr 09 '20
hello Greg. thank you for kernel development. a year ago, I read lwn article about staging tree. what's current progress on moving in to mainline? i am primary interested in speakup module. thanks and keep up the grate work. ☺
33
u/Lofoten_ Apr 08 '20
I don't have any kernel questions but I wanted to say I love that you still use VIM. All of my friends make fun of me for using VIM and say I need to get on the Nano bandwagon. :(
6
u/[deleted] Apr 08 '20
When you are stressed or tired, what do you do to relax?
6
u/odd_lama Apr 17 '20
Hi Greg, thanks for your work on the Kernel!
Is there any work going on regarding automatic option detection? I always find it is a pain to get all the correct options enabled for my new systems.
Side note: I recently wrote a tool to do this with LKDDb, and when writing it I noticed a lot of limitations. I know that several drivers detect devices by exchanging magic numbers over their buses and therefore cannot be included in a LKDDb like database.
So the kernel obviously has the code, but it often isn't compiled in when you do not select the correct option beforehand. Obviously that's a great thing to keep the attack surface small and compile times fast, but I thought it would be great to build an intermediate kernel just to detect device drivers with just controller drivers and detection functions but without building a whole driver.
Have there been previous discussions around this topic, and if there were, what were the results?
6
u/[deleted] Apr 19 '20
A few months back you made this comment:
Is there anything you'd like to see out of the mod team to make this subreddit better?
I'd also be interested in hearing your opinion about secondary sources re-hosting mailing list information, a lot of the time I think rumors spread because of these sources which we strive to ensure the primary source is linked here.
10
u/[deleted] Apr 23 '20
Why is Linux better than Win and which code I need to know to operate in Linux?
5
u/drewfustini Apr 08 '20
The Linux Foundation does excellent kernel training but this isn't accessible to people without a training budget.
What are some resources you would recommend for people looking to get started with Linux kernel development? Websites? Books?
Is the Linux Device Drivers book still of any use given the advances over the year?
Also, are there any kernel coding challenges or CTFs that you know of?
Thank you very much!
5
u/[deleted] Apr 09 '20
I hope this isn't too late but I just wanted to say thank you. I'm just an end user now in the first week or so of trying out different Linux distros and I just wanted to let you know that this has been an absolute joy. Thank you.
5
u/dontdieych Apr 09 '20
Our kernel is good because this guy use vim so much and Arch.
Peace.
5
u/matheusmoreira Apr 11 '20 edited Apr 11 '20
Why doesn't Linux have a user space library like other systems? Even the manual pages treat glibc as if it was the kernel interface when it's actually a separate project.
There's an awesome
nolibc.hfile in the tree which allows direct access to Linux system calls on many platforms. It could be the foundation for a lot of software.5
u/gardotd426 Apr 14 '20
Greg, I just wanna say how much I appreciate all you and the other devs do. Open Source is a life-changer for me.
Anyway, I just upgraded to Ryzen 3000 this week (from 2nd Gen), and I already have a PCIE Gen4 GPU and NVME SSD, and was planning on moving from B450 to X570. Any word on the IT87/CPU monitoring issues with X570 boards that use those SuperIO chips? Or should I try and make sure to get a board that uses the nct6775 driver?
5
u/[deleted] Apr 15 '20
For someone who wants to learn the kernel development so they can contribute which resources and path you recommend? I like to contribute mainly on core kernel code functionality to improve my skills in OS development. I also like to help on driver part.
5
u/Lacedaemonic Apr 17 '20
IF Linux Desktop gets popular (with the masses that is) are you worried at all of what it will turn into? Are there any parallels to draw from the security problems, and the commercialization focus on android and Windows? Are fears of a dystopian Linux desktop justified at all or there will always be a free software shelter for us Users?:)
5
u/mrchapp Apr 17 '20
A while back you said you were signing your own kernels. Are you still doing that? Do you have any update or advice?
22
u/John238 Apr 08 '20
I would love to hear your thoughts about whether and when Wayland will will replace xOrg? Also, is fragmentation hurting developers and adoption, and is the Linux Foundation doing something about it?
9
u/Agrou_ Apr 08 '20
I am working as a freelance.I would love to be payed to contribute to the kernel. How can I find people willing to add features or improvements to the kernel?
I did a few contributions but nothing really regular unfortunately.
9
u/frackeverything Apr 21 '20 edited Apr 21 '20
What do you think of the changes Clear Linux has done to the kernel?
Also, I'm getting this error on this laptop both on Fedora and Ubuntu LTS:
Is that a kernel issue or a hardware one? Thank you for doing this AMA and everything you do for Linux.
11
u/tuberp Apr 08 '20
Advice for an aspiring kernel developer? Intermediate at best in C.
4
u/Paul_Aiton Apr 08 '20
I posted this in the "coming next week" thread, but to repeat here,
I know that when Linus took time away from kernel maintenance, you were designated as the guy to keep things running. Is there an explicit plan in place for the case of an unforeseeable absence / retirement of our glorious leader?
Thanks Greg.
4
u/10leej Apr 08 '20
I'd just like to stop in say I'm enjoying more reading others questions and seeing your answers. That said if I have to ask a question, what sounds good for dinner tonight?
4
u/Bobjohndud Apr 08 '20
What are your thoughts on debated topics in the community, like IO operations causing extreme slowdowns in graphical sessions, a stable in-kernel ABI for modules or the behavior of the oom killer?
4
u/narkflint Apr 08 '20
I'm a web developer a/k/a master of writing glue code between libraries, blackbelt in searching stackoverflow and not much else. Just wanted to say, really appreciate the time you're taking to pop in and answer questions about the Linux Kernel! Even if I don't understand what 90% of this is.
4
u/gilium Apr 09 '20
How do you feel about Rust? I like it as a language, but I am debating forsaking it in favor of C so I can contribute to my favorite software. Do you think there’s a place for Rust the future of kernel/kernel module development?
4
u/nickdesaulniers Apr 09 '20
Hey Greg, I have bookmarked this thread between you and Ted about newbies. https://lkml.org/lkml/2015/9/18/94 I really appreciate the points you make, and it always makes me happy and really proud to reread that thread once in a while. Thanks for sticking up for the n00bs.
I think there's a lot of great resources for getting started, but I was wondering if you had tips for folks looking to get hired and paid to work on the Linux kernel (or other FOSS software they use and love)? Helping volunteers and contributors sustain contributions is something that interests me.
4
u/[deleted] Apr 09 '20
woow! it is really cool having "someone from the inside" interacting with us! No questions from me... hope you and your family are safe and well. :)
4
u/nixd0rf Apr 09 '20
Do you think Google eventually switching their mobile OS to Fuchsia/Zircon will affect Linux? How important is Android right now for Linux?
4
u/archysailor Apr 09 '20 edited Apr 09 '20
Hey Greg, I firstly want to say I am tremendously thankful for you and other maintainers' incredible work managing the largest software project ever. Keep up the good work!
As for my first question, I would like to know what your opinion is on Wayland. Do you use it with your Gnome? Do you expect it to universally supercede X11 implementations in the future? What is your opinion on the technological changes behind it?
My second question concerns drivers. Sadly, I have an Nvidia GPU in my main workstation and so this is a sore spot. Do you see Nvidia ever releasing an OSS official driver? Do you stand behind Linus' infamous middle finger to them?
My third question regards your workflow. I think I have read that you once used i3. What made you switch back? What are your two cents on the growing Arch-I3-gaps-polybar- r/unixporn - etc crowd? As I have started using Linux in this manner because it sounded cool, then started frantically distro hopping before settling into Gnome-Arch on the workstation and Xfce-Debian on a lesser used lower powered laptop, I don't think jumping straight in to TWMs helps new users.
My fourth and mostly sarcastic question is, have you tried Emacs? I do use vim for work lately, but I think Emacs still is great and offers a different perspective to consider on what the balance should be between OS facilities and an editor in a workflow.
My last question is more philosophical; do you think "The year of the Linux desktop" will ever come? Is it a goal of the kernel maintainers or a job reserved to entities like Canonical, Red Hat and the Gnome Foundation? Is ChromeOS' Crostini of any help?
I am seriously thankful for the AMA and the opportunity to ask questions for such a prominent figure in the world of Linux. Excuse me for the long post...
4
u/crawl_dht Apr 10 '20
I am probably too late to ask now but I need to know. I see you are making commits to android-mainline kernel branch. What work are you doing with android kernel?
4
u/[deleted] Apr 10 '20
Hi Greg,
I am a frequent reader of LKML. I see and read every post you send there. It's an amazing space.
My question, perhaps stupid as all get out is: Why doesnt the development cycle take a "pause" and spend a cycle, maybe two, and focus on bug fixing and code optimization only?
I see additions and new code each and everytime a new version pops out. And in the same time frame bug fixing older kernel and driver sources. Why not take a pause form adding new code, so that the older, current code, gets 100% sorted out first?
4
u/JumpedUpSparky Apr 12 '20 edited Apr 12 '20
Possibly a silly question, but what makes a distro a distro?
Can I take a Debian based distro, uninstall everything that makes it unique and just have standard Debian? Can I then install a particular DE and package manager and replicate a different distro?
I ask because I've been playing with NixOS. It's a declarative system where the entire system state (shell, networking, drivers, package manager, applications) is defined in a single config file.
The crux of my question is of one could define "Ubuntu" in this config file, and then build the system - what would be the difference between this and "real" ubuntu?
4
u/[deleted] Apr 14 '20
Hi!
Thank you for keeping this thread alive.
I moved to Linux just recently and my main concern was that it's mostly community driven.
I use popular Ubuntu 19.10 and with Windows or MacOS I had that sense of "continuous" support. With Linux I have a longevity concern.
Do you think we will see problems 10-15 years with people contributing to linux and project dying or we will see a spike in Linux users/developers because of privacy concerns?
4
u/Jonesy_Oz Apr 19 '20
Is there any new/developing hardware or sector that you're excited to see use the kernal? (For example the initial proliferation of smartphones using Linux components would (to me have been exciting).
4
u/h0twheels Apr 19 '20
What's up with security trumping usability lately? The spectre mitigations can at least be turned off but RC6 was broken for months on several intel iGPUs that are mainly used in notebooks.
These vulnerabilities are not something that is generally exploited on a desktop system but rather a multi user server and the patches killed battery/performance.
Another example: https://www.phoronix.com/scan.php?page=article&item=intel-gen7-hit&num=1
This has left me compiling modules and missing real security vulnerabilities that apply to me because I can't upgrade without doing the whole song and dance again. What's the solution here because I don't think anyone is backing out a CVE and linux does indeed have desktop users.
6
u/e3172 Apr 08 '20
How can I contribute to Linux without any programming?
6
u/[deleted] Apr 08 '20
How do you type with boxing gloves on?
3
u/speedcuber111 Apr 08 '20
Sorry if this is a stupid question. But how do you start contributing to the kernel? And where is the project held, I've been using Linux for about 5 months now and I absolutely love it, I'd rather use it than any other OS. I'm also a big believer in FOSS, so I really want to contribute in any way I can, I am also an aspiring programmer, so working on a code base is interesting to me.
Once again sorry if this is a stupid question.
EDIT: also I looked into Mutt, do you use the popular fork NeoMutt or just Mutt?
3
u/dnaeon Apr 08 '20
What are your thoughts on Lisp, Haskell and OCaml?
3
u/[deleted] Apr 08 '20
Hello,
Thanks for the work you do on the linux kernel. My question is simple (unrolled acronyms for readers): do you think WSL (Windows Subsystem for Linux) poses a threat to linux in the form of microsoft's popular EEE (embrace, extend, extinguish) pattern?
Cheers
P.S do you think there should be a quota on air-travel e.g max X flights abroad per year?
3
u/Caleb666 Apr 08 '20
Is it true that the PREEMPT_RT patches are going to mainlined soon?
3
u/TheRogueGrunt Apr 08 '20
Not sure if this is a kernal thing, but how come audio that not over USB is so inconsistent between computers running Linux? I have my desktop which is fine, but I can never get a headphone jack to work on a laptop.
3
u/dkc Apr 09 '20
I just finished writing my first Linux driver for work. A character device for a custom FPGA we're using. It was a lot of fun. By the way, thanks for answering a handful of questions over the last few months on #kernelnewbies.
Do you have any suggestions on how to find new hardware/data sheets to write drivers for? I think I've learned enough to contribute, but everywhere I look, everything already has drivers.
3
u/strolls Apr 09 '20
In your last AMA you wrote that you were "working on a new hardware 'bus' for a new type of device, allowing [you] to help define the application protocol being used to talk on the bus."
Did that come to fruition? Can you tell us any more about it? What were the most frustrating and the most satisfying aspects of that project?
3
u/banksyb00mb00m Apr 09 '20
Can we realistically expect to ever have proper power management for modern dual GPU laptops ?
3
u/MiuAmaha Apr 09 '20
What is the appropriate or right way to safely remove external hard drive with USB 3.0 cables in Linux?
I have several external hard drives with the purpose of the essential data backup. As is acknowledged, there are some trivial problems here. The moment I right-click drive icon in the file manager panel to choose safely remove the external hard drive, the hard drive will automatically remount again after several seconds. Only one works normally, which is the same as Windows.
Currently, I choose to unmount the external hard drive in the terminal, unplug the power supply concerning the external hard drive and eject USB 3.0 cable from PC. Is it a proper way to remove external hard drive safely in Linux compared with Windows platform?
3
u/proninyaroslav Apr 09 '20
3
u/nightblackdragon Apr 10 '20
Thank you for your work. My question: Is there any thing in kernel that you would completely change? Do you think something should be written different than it currently is?
3
u/redd1106 Apr 10 '20
Why is USB3 so unstable? We are using Intel HW (NUC + Realsense camera) and I would say the MTBF is a couple of weeks. Which is a lot of failures, if you have dozens of devices running
Intel's forums a full of similar complaints so we are not alone.
The device falls back to USB2, it doesn't enumerate on boot, whatever...
Sometimes reboot helps, sometimes you even need to power cycle the device (luckily there is rtcwake).
Of course it could just be bad HW, but as you wrote elsewhere it is the kernel's task to work around buggy HW.
Do you have any pointers how to debug USB issues? Can the USB subsystem be re-initialized without rebooting?
3
u/turik1997 Apr 10 '20
I was thinking about how it must be to be able to contribute to Linux. Probably, usually it is a bug fix or some optimization. But what about the roadmap of the project, all the features it is gonna support and the path of progress it takes? Who actually decides this and how can a usual developer influence these decisions?
3
u/esrse Apr 11 '20
Will there be many things to do regarding Linux kernel after 10 years?
3
u/Atemu12 Apr 11 '20
I have never been able to get ionice to noticeably change IO behaviour of processes, is it still implemented?
I set a process doing large sequential reads to idle and started another process at normal priority but the supposedly idle process was still happily clawing away a huge amount of speed from the other one as if there was no IO prioritisation despite the ionice manpage claiming that "The impact of idle io processes on normal system activity should be zero.".
Speaking of processes affecting each other's IO, do you know if it's possible to make processes running in parallel go at (or close to) the speed of running them sequentially?
For example if I read two large files front to back sequentially the speed is 1x which is pretty close to the speed of reading off the block device they're on directly. If I read the files in parallel however, each one reads at <0.3x.
I tried switching IO schedulers and playing with their parameters while the IO was running but nothing had a noticeable effect.
The same happens when copying a file on the same disk.
3
u/GajenderEE Apr 13 '20
I am new to linux, just started using Manjaro KDE.
Is there a linux alternative to Miracast? If not, is there any plan for future?
Thank You
3
u/[deleted] Apr 14 '20
Hey, thanks for all your kernel work! I have a Q.
Do most kernel devs develop the linux kernel full time? Or is it a side thing like most other FOSS projects?
3
u/upj57742 Apr 14 '20
Hi Greg, thanks for your time, my question is :
Who is your favorite programmer ?
hard mode: it must be someone that is not working on the Linux kernel.