observations on 2.5 config screens
while i read a recent post stating, essentially, "it's unlikely
that the overall hierarchy of the config screens is going to change much," i find the 2.5 layout pretty much as confusing and illogical as the 2.4 screens. some petty and not-so-petty examples and suggestions:
Loadable module support
Does "Module unloading" mean whether or not I can run "rmmod"?
And if I deselect this, why can I still select "Forced module unloading"? Either I can unload or I can't, no?
And what's the rationale behind making unloading an option,
anyway? If I want loadable module support, is it really a big deal to assume I'll want the ability to unload them as well? Just curious, that's all. Under what circumstances would I explicitly *not* want the ability to rmmod? Tight space embedded kernels, possibly?
Processor family
It seems that the final option, "Preemptible kernel", does
not belong there. In fact, there seem to be a number of kernel-related, kind of hacking/debugging options, that could be collected in one place, like preemption, sysctl, hacking, executable file formats, etc. "Low-level kernel options", perhaps?
Bus options (PCI, PCMCIA, EISA, MCA, ISA)
First, there's no hint from that heading that hot-pluggable
settings are hidden under there as well.
In addition, why does "Bus options" not include the USB bus,
the I2C bus, FireWire, etc? A bus is a bus, isn't it?
Multimedia devices
How come "Sound" is not here? And (as we've already
established), Radio Adapters is not a sub-entry of Video for Linux. :-) (And is there a reason why Amateur Radio Support and Radio Adapters are so far apart in the config menus?
Wireless networking/protocols
Yes, I realize there's no such category, but there *should*
be, which would include:
Wireless LAN (non ham-radio)
Bluetooth
IrDA
anyway, just some observations from someone who doesn't
know any better.
rday
Quoted 10 lines
Does "Module unloading" mean whether or not I can run "rmmod"?
And if I deselect this, why can I still select "Forced module unloading"? Either I can unload or I can't, no?And what's the rationale behind making unloading an option,
anyway? If I want loadable module support, is it really a big deal to assume I'll want the ability to unload them as well? Just curious, that's all. Under what circumstances would I explicitly *not* want the ability to rmmod? Tight space embedded kernels, possibly?
These two are for Rusty to answer.
Quoted 6 lines
It seems that the final option, "Preemptible kernel", does
not belong there. In fact, there seem to be a number of kernel-related, kind of hacking/debugging options, that could be collected in one place, like preemption, sysctl, hacking, executable file formats, etc. "Low-level kernel options", perhaps?
Should go to "General config" IMHO.
Quoted 4 lines
Bus options (PCI, PCMCIA, EISA, MCA, ISA)
First, there's no hint from that heading that hot-pluggable
settings are hidden under there as well.
Well, PCMCIA pretty much suggests that, doesn't it?
Quoted 2 lines
In addition, why does "Bus options" not include the USB bus,
the I2C bus, FireWire, etc? A bus is a bus, isn't it?
Yes, this is a valid comment. Placing USB under "Bus options" should be totally straightforward, but that one's for Greg KH to decide.
Quoted 6 lines
Multimedia devices
How come "Sound" is not here? And (as we've already
established), Radio Adapters is not a sub-entry of Video for Linux. :-) (And is there a reason why Amateur Radio Support and Radio Adapters are so far apart in the config menus?
Yeah, this one is a puzzle. <g>
Quoted 8 lines
Wireless networking/protocols
Yes, I realize there's no such category, but there *should*
be, which would include:Wireless LAN (non ham-radio)
Bluetooth
IrDA
IrDA isn't necessarily networking, Bluetooth either. Wireless LAN is where it should be.
Quoted 2 lines
anyway, just some observations from someone who doesn't
know any better.
Thanks.
Signature · 1 line
Tomas Szepe <[email protected]>
Quoted 6 lines · Tomas Szepe
Quoted 4 lines
Bus options (PCI, PCMCIA, EISA, MCA, ISA)
First, there's no hint from that heading that hot-pluggable
settings are hidden under there as well.Well, PCMCIA pretty much suggests that, doesn't it?
you're right, based on the menus as they are now. however, as i think more about it, if you consider the next comment ...
Quoted 7 lines
Quoted 3 lines
In addition, why does "Bus options" not include the USB bus,
the I2C bus, FireWire, etc? A bus is a bus, isn't it?Yes, this is a valid comment. Placing USB under "Bus options" should be totally straightforward, but that one's for Greg KH to decide.
what might have been gnawing at me was, if USB (and other busses) are added here as well, then *most* hotplug options would be in one place. just one way of looking at it.
Quoted 11 lines
Quoted 8 lines
Wireless networking/protocols
Yes, I realize there's no such category, but there *should*
be, which would include:Wireless LAN (non ham-radio)
Bluetooth
IrDAIrDA isn't necessarily networking, Bluetooth either. Wireless LAN is where it should be.
ok, i can buy that. back to work here ... or, maybe not. there must be a bowl game on TV somewhere.
rday
Quoted 8 lines
Quoted 6 lines
Multimedia devices
How come "Sound" is not here? And (as we've already
established), Radio Adapters is not a sub-entry of Video for Linux. :-) (And is there a reason why Amateur Radio Support and Radio Adapters are so far apart in the config menus?Yeah, this one is a puzzle. <g>
Amateur Radio Support contains options to do with things like ham radio modem support.
Radio Adaptors contains options to do with radio tuner cards.
Radio adaptors was originally put together with Video for Linux, because when there were only a few radio adaptors supported, it seemed logical to group them with video capture cards, which often have television tuners on them.
Most of the illogical grouping of configuration options has come about because of the way the kernel has evolved.
For example, before IDE and SCSI CD-ROM drives because popular, CD-ROM drives were a completely separate configuration category. Now that IDE and SCSI CD-ROM drives are much more popular than proprietary interface CD-ROM drives, the configuration options for them are grouped with the IDE and SCSI options.
John.
On Wed, 1 Jan 2003, Tomas Szepe wrote:
[snippage]
| > It seems that the final option, "Preemptible kernel", does | > not belong there. In fact, there seem to be a number of | > kernel-related, kind of hacking/debugging options, that | > could be collected in one place, like preemption, sysctl, | > hacking, executable file formats, etc. "Low-level kernel | > options", perhaps?
So long as they come after the processor selection or whatever dependencies they have.
| Should go to "General config" IMHO.
But is General Config still above processor selection? I made a patch for a second "More general config" at the end of the main menu so that dependencies can be used. Andrew Morton has it queued in -mm now.
| > Bus options (PCI, PCMCIA, EISA, MCA, ISA) | > | > First, there's no hint from that heading that hot-pluggable | > settings are hidden under there as well. | | Well, PCMCIA pretty much suggests that, doesn't it? | | > In addition, why does "Bus options" not include the USB bus, | > the I2C bus, FireWire, etc? A bus is a bus, isn't it? | | Yes, this is a valid comment. Placing USB under "Bus options" | should be totally straightforward, but that one's for Greg KH | to decide.
USB needs to follow the Input subsystem unless there's something else going on regarding dependencies.
| > Multimedia devices | > | > How come "Sound" is not here? And (as we've already | > established), Radio Adapters is not a sub-entry of Video for | > Linux. :-) (And is there a reason why Amateur Radio Support | > and Radio Adapters are so far apart in the config menus?
I agree.
Greg Banks has (had) a real nice program for checking dependency ordering using Config.in files. It would be very nice if it now worked with Kconfig files. :) It could be used for this type of config reordering to verify that things weren't screwed up. I used it when I moved Network Devices to just under/after Network Options to show that no dependency ordering was mangled by that patch.
Signature · 1 line
~Randy
Quoted 7 lines · Randy.Dunlap
Greg Banks has (had) a real nice program for checking dependency ordering using Config.in files. It would be very nice if it now worked with
Kconfigfiles. :) It could be used for this type of config reordering to verify that things weren't screwed up. I used it when I moved Network Devices to just under/after Network Options to show that no dependency ordering was mangled by that patch.
so are you saying that there should be no backward dependencies in the list of menus? i remember just that in the 2.4 screens, when you could select hardware sensors and then, on a subsequent screen, deselect I2C which would, as a result, deselect sensors on that previous screen.
you're saying that, the way these menus are ordered, this type of thing should be avoided?
rday
On Wed, 1 Jan 2003, Robert P. J. Day wrote:
| On Wed, 1 Jan 2003, Randy.Dunlap wrote: | | > Greg Banks has (had) a real nice program for checking | > dependency ordering using Config.in files. It would be | > very nice if it now worked with Kconfig files. :) | > It could be used for this type of config reordering to | > verify that things weren't screwed up. I used it when | > I moved Network Devices to just under/after Network Options | > to show that no dependency ordering was mangled by that patch. | | so are you saying that there should be no backward dependencies | in the list of menus? i remember just that in the 2.4 screens, | when you could select hardware sensors and then, on a | subsequent screen, deselect I2C which would, as a result, | deselect sensors on that previous screen. | | you're saying that, the way these menus are ordered, this | type of thing should be avoided?
Tomas Szepe just corrected me on this...no longer an issue.
Thanks,
Signature · 1 line
~Randy
Quoted 12 lines
On Wed, 1 Jan 2003, Tomas Szepe wrote:
[snippage]
| > It seems that the final option, "Preemptible kernel", does | > not belong there. In fact, there seem to be a number of | > kernel-related, kind of hacking/debugging options, that | > could be collected in one place, like preemption, sysctl, | > hacking, executable file formats, etc. "Low-level kernel | > options", perhaps?
Quoted 2 lines
So long as they come after the processor selection or whatever dependencies they have.
No longer an issue, see below.
Quoted 9 lines
...
| > Multimedia devices | > | > How come "Sound" is not here? And (as we've already | > established), Radio Adapters is not a sub-entry of Video for | > Linux. :-) (And is there a reason why Amateur Radio Support | > and Radio Adapters are so far apart in the config menus?
Quoted 5 lines
I agree.
Greg Banks has (had) a real nice program for checking dependency ordering using Config.in files. It would be very nice if it now worked with
Kconfigfiles. :)
Forward references work nicely with the new configurator, see for yourself (patch against 2.5.53):
init/Kconfig +4 -0
@@ -1,6 +1,10 @@ menu "Code maturity level options" +config HRM0PS + depends on HRMOPS_PREREQUISITE + bool "This proves that forward-referenced symbols work just fine" + config EXPERIMENTAL bool "Prompt for development and/or incomplete code/drivers" ---help---
net/Kconfig +3 -0
@@ -5,6 +5,9 @@ menu "Networking options" depends on NET +config HRMOPS_PREREQUISITE + bool "Switch this on for some serious HRM0PS!!" + config PACKET tristate "Packet socket" ---help---
Signature · 1 line
Tomas Szepe <[email protected]>
PATCH 1/1 MODULE_FORCE_UNLOAD must depend on MODULE_UNLOAD
In reply to Robert P. J. DayQuoted 7 lines · Robert P. J. Day
...
Loadable module supportDoes "Module unloading" mean whether or not I can run "rmmod"?
And if I deselect this, why can I still select "Forced module unloading"? Either I can unload or I can't, no?
...
Thanks for spotting this, after reading kernel/module.c it seems obvious to me that you are right. The following simple patch fixes it:
init/Kconfig renamed from init/Kconfig.old +1 -1
@@ -127,7 +127,7 @@ config MODULE_FORCE_UNLOAD bool "Forced module unloading" - depends on MODULES && EXPERIMENTAL + depends on MODULE_UNLOAD && EXPERIMENTAL help This option allows you to force a module to unload, even if the kernel believes it is unsafe: the kernel will remove the module
Quoted 1 line
rday
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedRe: [2.5 patch] MODULE_FORCE_UNLOAD must depend on MODULE_UNLOAD
In message <[email protected]> you write:
Quoted 2 lines
Thanks for spotting this, after reading
kernel/module.cit seems obvious to me that you are right. The following simple patch fixes it:
Yep. Linus, please apply.
From: Adrian Bunk <[email protected]>
init/Kconfig renamed from init/Kconfig.old +1 -1
@@ -127,7 +127,7 @@ config MODULE_FORCE_UNLOAD bool "Forced module unloading" - depends on MODULES && EXPERIMENTAL + depends on MODULE_UNLOAD && EXPERIMENTAL help This option allows you to force a module to unload, even if the kernel believes it is unsafe: the kernel will remove the module
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
Quoted 10 lines · Robert P. J. Day
...
Processor familyIt seems that the final option, "Preemptible kernel", does
not belong there. In fact, there seem to be a number of kernel-related, kind of hacking/debugging options, that could be collected in one place, like preemption, sysctl, hacking, executable file formats, etc. "Low-level kernel options", perhaps?
...
Robert, could you comment on whether it's really needed to have the preemt option defined architecture-dependant?
After looking through the arch/*/Kconfig files it seems to me that the most problematic things might be architecture-specific parts of other architecturs that don't even offer PREEMPT and the depends on CPU_32 in arch/arm/Kconfig.
Quoted 2 lines
anyway, just some observations from someone who doesn't
know any better.
IMHO your comments are very valuable.
Quoted 1 line
rday
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 7 lines · Adrian Bunk
Robert, could you comment on whether it's really needed to have the preemt option defined architecture-dependant?
After looking through the
arch/*/Kconfigfiles it seems to me that the most problematic things might be architecture-specific parts of other architecturs that don't even offer PREEMPT and the depends onCPU_32inarch/arm/Kconfig.
I think it should be there. Plus, as you say, it is defined per-architecture.
The real problem in my opinion is that the category is misnamed. It is not "processor options" except for the first couple. The majority of the options should be under a title of "core" or "architecture" or "system options" in my opinion.
Robert Love
Quoted 9 lines · Robert Love
Quoted 7 lines · Adrian Bunk
Robert, could you comment on whether it's really needed to have the preemt option defined architecture-dependant?
After looking through the
arch/*/Kconfigfiles it seems to me that the most problematic things might be architecture-specific parts of other architecturs that don't even offer PREEMPT and the depends onCPU_32inarch/arm/Kconfig.
Quoted 7 lines
I think it should be there. Plus, as you say, it is defined per-architecture.
The real problem in my opinion is that the category is misnamed. It is not "processor options" except for the first couple. The majority of the options should be under a title of "core" or "architecture" or "system options" in my opinion.
On ARM, it doesn't appear under "processor options" but under "General Setup", which is where it fits best, along with the other general core features of the kernel. It does depend on a processor option, but there should not be any problem with that. ARM _does not_ support preempt on 26-bit ARM CPUs, so we _explicitly_ disallow selection of that configuration.
Signature · 2 lines
Russell King ([email protected]) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html
Quoted 6 lines · Robert Love
The real problem in my opinion is that the category is misnamed. It is not "processor options" except for the first couple. The majority of the options should be under a title of "core" or "architecture" or "system options" in my opinion.
Robert Love
Someone else suggested putting all the low level options like preempt, smp, and the stuff in kernel-hacking into a single menu, with a better name.
Signature · 3 lines
bill davidsen <[email protected]> CTO, TMR Associates, Inc Doing interesting things with little computers since 1979.
Quoted 3 lines · Bill Davidsen
Someone else suggested putting all the low level options like preempt, smp, and the stuff in kernel-hacking into a single menu, with a better name.
I do not think I like this. SMP, kernel preemption, and high memory support are the three most fundamental choices one makes during configuration.
They should be out in the open, in the beginning, in a well-labeled category. They only issue I see is "processor options" should be renamed "core options" or whatever. But that is trivial.
Robert Love
Quoted 9 lines · Robert Love
Quoted 3 lines · Bill Davidsen
Someone else suggested putting all the low level options like preempt, smp, and the stuff in kernel-hacking into a single menu, with a better name.
I do not think I like this. SMP, kernel preemption, and high memory support are the three most fundamental choices one makes during configuration.
I guess, depending on your definition of fundemental. I would put any option which affects the kernel as a whole in that category, myself. Compiling with frame pointers comes to mind, since every object file is changed and there are performance implications as well.
Quoted 3 lines
They should be out in the open, in the beginning, in a well-labeled category. They only issue I see is "processor options" should be renamed "core options" or whatever. But that is trivial.
Processor option would select the processor and any architecture dependent options, I would think. Something like "kernel characteristics" could have options like smp.
Signature · 3 lines
bill davidsen <[email protected]> CTO, TMR Associates, Inc Doing interesting things with little computers since 1979.
Quoted 4 lines · Bill Davidsen
I guess, depending on your definition of fundemental. I would put any option which affects the kernel as a whole in that category, myself. Compiling with frame pointers comes to mind, since every object file is changed and there are performance implications as well.
No-one other than kernel hackers should be playing with that option, hence it's in the kernel hacking menu.
Quoted 3 lines
Processor option would select the processor and any architecture dependent options, I would think. Something like "kernel characteristics" could have options like smp.
SMP isn't a processor option ?
Dave
Signature · 2 lines
| Dave Jones. http://www.codemonkey.org.uk | SuSE Labs
Quoted 9 lines · Dave Jones
Quoted 4 lines · Bill Davidsen
I guess, depending on your definition of fundemental. I would put any option which affects the kernel as a whole in that category, myself. Compiling with frame pointers comes to mind, since every object file is changed and there are performance implications as well.
No-one other than kernel hackers should be playing with that option, hence it's in the kernel hacking menu.
Anyone who wants to be able to debug a problem should be playing with
that, it's one thing which affects the whole kernel, and is't really a hack in the usualy sense. And sysctl isn't really a hack, it's just another feature (my opinion).
Quoted 5 lines
Quoted 3 lines
Processor option would select the processor and any architecture dependent options, I would think. Something like "kernel characteristics" could have options like smp.
SMP isn't a processor option ?
Clearly not, it's not processor dependent or even architecture dependent
generally. It's a characteristic of the os, unlike microcode, mtrr, and other stuff not on some architectures. You can select it for 386/486/P5 (and it works in 2.4 at least, for P5, have several).
I would think that processor options would select the processor and any
options which are specific to it rather than generally supported. Serial numbers, firmware loads, that sort of feature.
Preempt and smp, are general, I guess not supported on every possible
hardware, but certainly not restricted to a single model or family.
Signature · 3 lines
bill davidsen <[email protected]> CTO, TMR Associates, Inc Doing interesting things with little computers since 1979.
Quoted 4 lines · Bill Davidsen
Quoted 2 lines
No-one other than kernel hackers should be playing with that option, hence it's in the kernel hacking menu.
Anyone who wants to be able to debug a problem should be playing with
that
If someone is debugging a kernel, they are by definition, kernel hacking. They should know where the kernel hacking menu is.
Quoted 2 lines
Quoted 1 line
SMP isn't a processor option ?
Clearly not, it's not processor dependent or even architecture dependent
Of course its arch dependant. Some of the archs we support don't do SMP. See m68k for one. Sure there may be some boards out there with >1 68k welded to them, but Linux doesn't run on them.
Quoted 2 lines
generally. It's a characteristic of the os, unlike microcode, mtrr, and other stuff not on some architectures.
Absolute nonsense. These are _cpu_ features. If you dispute this, you have no understanding of what you talking about.
Quoted 2 lines
You can select it for 386/486/P5
(and it works in 2.4 at least, for P5, have several).
And thats perfectly valid. Although I've not seen an MP compliant 386/486 personally, there were patches I beleive at one time for some of the strange 486 implementations.
It's also a valid thing to do to do for code coverage reasons. Although I doubt anyones testing SMP builds on a 386/486 any more.
Quoted 3 lines
I would think that processor options would select the processor and any
options which are specific to it rather than generally supported. Serial numbers, firmware loads, that sort of feature.
serial number stuff is done at run time. Firmware loads. Well, you mentioned above that microcode wasn't a CPU feature, now you change your mind ?
Quoted 2 lines
Preempt and smp, are general, I guess not supported on every possible
hardware
Again, more contradiction. Above you said of SMP:
"Clearly not, it's not processor dependent or even architecture dependent" Now you're saying it is arch dependant.
Which Bill am I arguing with here ?
Quoted 1 line
From x86 POV, a preemptive SMP 386 kernel should boot.
Its the only way to guarantee that you get both features in a kernel that will run on anything from 386 up.
Dave
Signature · 2 lines
| Dave Jones. http://www.codemonkey.org.uk | SuSE Labs
Quoted 8 lines · Dave Jones
Quoted 2 lines · Bill Davidsen
Quoted 1 line
SMP isn't a processor option ?
Clearly not, it's not processor dependent or even architecture dependent
Of course its arch dependant. Some of the archs we support don't do SMP. See m68k for one. Sure there may be some boards out there with >1 68k welded to them, but Linux doesn't run on them.
Exactly, that's not a characteristic of the CPU, it's a system board thing and support is really a low level kernel option.
Quoted 5 lines
Quoted 2 lines
generally. It's a characteristic of the os, unlike microcode, mtrr, and other stuff not on some architectures.
Absolute nonsense. These are _cpu_ features. If you dispute this, you have no understanding of what you talking about.
No, you missed what I was talking about... reread the above, I said SMP was an os feature *unlike* mtrr, etc.
Quoted 18 lines
Quoted 2 lines
You can select it for 386/486/P5
(and it works in 2.4 at least, for P5, have several).And thats perfectly valid. Although I've not seen an MP compliant 386/486 personally, there were patches I beleive at one time for some of the strange 486 implementations.
It's also a valid thing to do to do for code coverage reasons. Although I doubt anyones testing SMP builds on a 386/486 any more.
Quoted 3 lines
I would think that processor options would select the processor and any
options which are specific to it rather than generally supported. Serial numbers, firmware loads, that sort of feature.serial number stuff is done at run time. Firmware loads. Well, you mentioned above that microcode wasn't a CPU feature, now you change your mind ?
Quoted 6 lines
Quoted 2 lines
Preempt and smp, are general, I guess not supported on every possible
hardwareAgain, more contradiction. Above you said of SMP:
"Clearly not, it's not processor dependent or even architecture dependent" Now you're saying it is arch dependant.
In general by architecture dependent I meant "specific to one architecture" or even one processor. HT is only on one type of CPU, mtrr is on one family of CPUs, etc. As opposed to SMP, which is possible on any of the supported CPUs, even if there isn't a Linux supported example of it. There was even a board mounting two AMD Socket7 CPUs with a bunch of glue which ran some BSD variant (no VM, I assume).
I don't mind you disagreeing with me, I'd appreciate it if you would stop misreading what I said and then claiming I don't know I'm talking about.
Signature · 3 lines
bill davidsen <[email protected]> CTO, TMR Associates, Inc Doing interesting things with little computers since 1979.
DJ> > Processor option would select the processor and any architecture dependent DJ> > options, I would think. Something like "kernel characteristics" could have DJ> > options like smp.
DJ> SMP isn't a processor option ?
DJ> Dave
Good day!
I think, first of all it's "General Kernel options(features)" to support SMP(Preempt, MTRR) or not.
And may be would be better to move Processor Family and SubArch menu to the top level of the menu? Then merge "General setup" and "Processor type and features" in one menu.
It's just my opinion, no more.
Ruslan mailto:[email protected]