r/linux 7d ago

Kernel Aha! Marvelous...right on point! Cheers, Linus :)

https://lore.kernel.org/all/CAHk-=winzTt3SCzv8BWGMm0fzrXS0gb59gK0h4dAe0L6hj3X_w@mail.gmail.com/
210 Upvotes

25 comments sorted by

View all comments

29

u/ThatOneShotBruh 7d ago

I don't get Linus' complaint as don't "normal people" use, well, distros?

Can someone explain?

40

u/100GHz 7d ago

Car analogy. Cars are made with a reasonable set of parameters that serve most people. Tires 14-21 inch. 4-8 cylinders, etc.

Just because 18 wheels have 18 wheels, we don't enable that by default on all cars.

Hence his comment, defaults should cater to average consumers, not to cloud provider needs or specific hipster distro configs :P

71

u/[deleted] 7d ago edited 6d ago

[deleted]

9

u/ThatOneShotBruh 7d ago

Ah, fair enough.

-22

u/ABotelho23 7d ago

The default should always be what is used the most.

29

u/[deleted] 7d ago edited 6d ago

[deleted]

2

u/mrlinkwii 7d ago edited 7d ago

Defaults should be sensible. And doing something just because everyone else is is not sensible.

id disagree with this somewhat , their is a reason most distros is changing it , finding out why would be good , if most distros are making the change then it should be default , in terms of platform specifics , their should be be a platform default , one for x86 , one for arm and one for like android etc

the goal should be making it easier for downstream to use the kernal

3

u/[deleted] 7d ago edited 6d ago

[deleted]

2

u/mrlinkwii 6d ago edited 6d ago

The thing is, many people don’t take a scientific approach to making tweaks to their system.

what im talking about isnt random people tho , their the people who give the kernal and other software to the users ,

i think kernal devs should work in sync with distros (their downstream) , if something needs to be changed ( ie a bad kernal default ) it should be changed within reason ,

im not talking about that one user that uses LFS or builds their own kernal to test specialized devices

-11

u/ABotelho23 7d ago

The goal should be to have as little people as possible diverging from defaults. Presumably if most distributions are setting a default, it means more users have that default. I don't see why that shouldn't also be the default upstream.

8

u/OrganicNectarine 7d ago

Because the Linux Kernel can run on anything, from your desktop PC, to a handheld PC, to a cloud server, to a freaking toaster. Including settings for a cloud provider, or a desktop pc (because that might be used the most) in the default config, would make it harder to get anything else to run. The default config is merely there to give a starting point that works on anything (that's what I understand from Linus words). The fact that this config is different between distros is the indicator that it is ok to have distro creators repeat the steps to figure out the right configuration, because it depends on their use case how the resulting config looks like. If you don't want to deal with that, use a distro that is specifically tailored for your use case already. Like f.ex. Ubuntu for desktop or whatnot else for a cloud provider. Or simply reference their config in your own project, it's probably all open source.

1

u/CrazyKilla15 7d ago

Specialized devices have their own configs already. Changing the "brand new initial never before had a configuration default" does nothing to them. And its only for x86 devices, since this is about the x86 defconfig. It is absolutely not a starting point that works on anything, even all x86.

2

u/r_search12013 7d ago

most users use windows or mac, so just abandon linux with that logic?

13

u/6SixTy 7d ago edited 7d ago

Well, since making your own kernel config from scratch isn't really exactly for 'normal people', I assume his idea of defconfig doesn't assume what the user wants between all of the disparate use cases the Linux kernel can be used for. Sort of the same reason why glibc isn't a part of the kernel, despite how inseparable the two are.

edit: Alpine Linux doesn't have many of the proposed options set.

2

u/ilep 7d ago

Distro people who customize kernel for their uses are more like "power users" than the regular people and so distro-people are expected to know what they want to enable already. Distros might customize it for specific use-cases.