Quotes of the week
Posted Dec 1, 2011 2:17 UTC (Thu)
by jcm (subscriber, #18262)
[Link]
Posted Dec 1, 2011 2:18 UTC (Thu)
by thedevil (guest, #32913)
[Link] (2 responses)
Posted Dec 1, 2011 3:22 UTC (Thu)
by dkrawchuk (guest, #21896)
[Link] (1 responses)
Posted Dec 2, 2011 3:52 UTC (Fri)
by thedevil (guest, #32913)
[Link]
There's the catch. I can't even plug them all in at once (not enough USB connectors). And what about those that currently sit in the drawer, but I may someday reuse them? I don't want to suddenly be forced to recompile the kernel then.
Posted Dec 1, 2011 10:44 UTC (Thu)
by nlucas (guest, #33793)
[Link] (7 responses)
There are drivers who don't even work well unless loaded as module (many usb ones included).
Heck, the ehci-hcd driver (USB 2.0 hci) must be a module if you have some crappy BIOS, because you need to unload it for poweroff to work (will reboot if loaded, instead). And this is the driver that now claims in dmesg that it needs to be loaded before any other hci driver (which can only be done if the other "hardware" hci drivers are modules and udev configured for that).
Posted Dec 1, 2011 11:10 UTC (Thu)
by neilbrown (subscriber, #359)
[Link]
An alternate interpretation is that Linus did, and fixed all the problems that affected him on his hardware. :-)
Posted Dec 1, 2011 14:11 UTC (Thu)
by mpr22 (subscriber, #60784)
[Link] (3 responses)
Is there a bug report, and is it idle, work-in-progress, or closed WONTFIX? Because (regardless of the deficiencies of the BIOS) that driver sounds buggy to me.
Posted Dec 1, 2011 14:51 UTC (Thu)
by nlucas (guest, #33793)
[Link] (2 responses)
I can't know if there is any open/closed bug for this. Kernel bugzila is still down.
Posted Dec 1, 2011 19:22 UTC (Thu)
by mlankhorst (subscriber, #52260)
[Link] (1 responses)
Posted Dec 1, 2011 20:05 UTC (Thu)
by nlucas (guest, #33793)
[Link]
http://www.thinkwiki.org/wiki/Problems_with_ACPI_suspend-...
Note that in all three, one of the advises for fixing rebooting instead of shutting down is a "rmmod ehci-hcd" before the "poweroff" command.
Posted Dec 2, 2011 2:05 UTC (Fri)
by Alan.Stern (subscriber, #12437)
[Link] (1 responses)
Although ehci-hcd claims it should be loaded before ohci-hcd and uhci-hcd, this isn't really necessary. The only reason is to avoid unlikely problems when a high-speed device is first initialized at full speed and then switched over to high speed when ehci-hcd gets going.
Posted Dec 5, 2011 13:49 UTC (Mon)
by nlucas (guest, #33793)
[Link]
Now we only need some kernel hacker to look into this... (my experience with the kernel mailing list is not too famous).
Posted Dec 1, 2011 17:38 UTC (Thu)
by marcH (subscriber, #57642)
[Link] (6 responses)
Posted Dec 1, 2011 18:27 UTC (Thu)
by mlankhorst (subscriber, #52260)
[Link] (4 responses)
Posted Dec 1, 2011 21:08 UTC (Thu)
by gidoca (subscriber, #62438)
[Link] (3 responses)
Posted Dec 2, 2011 19:15 UTC (Fri)
by giraffedata (guest, #1954)
[Link] (2 responses)
I'm sure he didn't mean for it to apply to someone developing the module, though.
Also, it seems like a poor idea to test kernel code on a system important enough to care about security. I always use a separate expendable, impotent, minimal test system for that. In fact, it's about as quick and easy to reboot that test system as to reload a module.
Posted Dec 2, 2011 21:52 UTC (Fri)
by marcH (subscriber, #57642)
[Link] (1 responses)
What makes you sure? Other quotes?
> In fact, it's about as quick and easy to reboot that test system as to reload a module
How long is that?
Posted Dec 2, 2011 22:41 UTC (Fri)
by giraffedata (guest, #1954)
[Link]
Now that you make me think about it, my own experience doesn't make the point. I use loadable modules, and I'm including in the time to reload the module the time it takes to generate it. If I have to reboot, the system is generally insmod-ready by the time I have the next iteration of the module ready. (On my ancient hardware, it's 20 seconds).
On modern hardware, I suspect I could get a kernel test system up in a few seconds. Maybe that changes the equation to where statically binding your test code into the base kernel is as fast and easy as loading it dynamically.
Posted Dec 11, 2011 4:06 UTC (Sun)
by joern (guest, #22392)
[Link]
Mostly you are supposed to write good code. ;)
I personally actually like to reboot every time I want to run a new line of code. With a good setup, it should take on the order of 30s, including compile time, to do so. Reducing this time by using modules may have the drawback of sometimes not working (crashed kernel) and sometimes giving bad results (different performance depending on cache warmth, state from previous tests affecting the current test, etc.).
But if modules work well for you, go for it!
Posted Dec 1, 2011 22:16 UTC (Thu)
by geuder (subscriber, #62854)
[Link] (12 responses)
Of course distro kernels are bloated from each indivual machine's poimt of view. But what's the alternative? Sounds a bit like the old argument that compilers are evil, because good assembler progrmmers can produce slimmer code.
If the kernel community were serios about this they would need to develop some autoconfiguration + automatic build type of "mega JIT" system, so the naive user could get his custom kernel built and even rebuilt later on the fly. Maybe not completely infeasible, but still lightyears from reality. And as I wrote, I don't get the point.
Posted Dec 1, 2011 22:35 UTC (Thu)
by marcH (subscriber, #57642)
[Link] (11 responses)
Then, a full kernel compilation starts in the background. On the next boot a module-less kernel boots again.
All this looks technically feasible but, why the effort? Which problem would this solve?
Posted Dec 2, 2011 8:32 UTC (Fri)
by khim (subscriber, #9252)
[Link] (2 responses)
The problem with modules are the ability to insert arbitrary code in "ring 0" core. This is security risk. They also make debugging harder because code in memory may differ from code in kernel image. You solution throws the child with the bathwater: you have solution which still have all the problems of system with a lot of modules and it suffers from problems of module-less system. Quite an achievement, I'd say...
Posted Dec 2, 2011 8:48 UTC (Fri)
by marcH (subscriber, #57642)
[Link]
Posted Dec 4, 2011 1:38 UTC (Sun)
by mab (guest, #314)
[Link]
Posted Dec 2, 2011 22:01 UTC (Fri)
by jzbiciak (guest, #5246)
[Link] (7 responses)
Posted Dec 2, 2011 22:04 UTC (Fri)
by jzbiciak (guest, #5246)
[Link]
Posted Dec 2, 2011 23:33 UTC (Fri)
by nix (subscriber, #2304)
[Link] (5 responses)
Now, how often do new -stable kernels come out?
Reboots for new gadgetry would be a small proportion of the total number of reboots you have to do anyway.
Posted Dec 3, 2011 15:38 UTC (Sat)
by jzbiciak (guest, #5246)
[Link] (2 responses)
I've plugged at least three new (as in, this computer hadn't seen them before) gadgets since my last reboot 227 days ago. (TASCAM external ADC, a TI DSP EVM and a USB-to-serial cable.) And those are just the three I remember. I don't remember if I plugged my wife's phone in or not, for example. One of these days, I'll be moving the scanner over to my computer, and I know my machine hasn't seen it before.
I try to reboot at most 1 - 2 times a year at most, once my system's stable.
And it doesn't have to be that you bought the gadget new. It has to be a new-to-this-computer gadget that doesn't have the appropriate driver. "Hey Mom, before you leave, can I grab that photo you took of the two of us off your camera?" *plugs it in* "One moment please. Now reboot." If I happen to upgrade before the next time she visits... am I up for another such reboot?
I guess that brings up a second question: Would you retain the list of drivers you've "faulted in" so that the next time a vendor sends you a security patch, or the next time you upgrade your OS, you don't have to re-fault in all your gadgets? And is there an option for a batch mode? "Thank you for installing LatestShinyDistro overtop of LostItsLustre Distro. Find everything you own that you'll want to hot-plug into a USB port, and I'll go build you a proper kernel. Press enter when done." Uh, no.
Posted Dec 4, 2011 0:55 UTC (Sun)
by nix (subscriber, #2304)
[Link] (1 responses)
Posted Dec 4, 2011 2:07 UTC (Sun)
by jzbiciak (guest, #5246)
[Link]
I trust everyone that uses my private network (my wife and a couple friends).
Sure, someone *could* try to hack my WiFi and then try to find a remote root vulnerability that doesn't require an open port, and then try to guess my 8 character randomly generated alphanumeric password, but really, I'm not too worried about this machine.
Posted Dec 3, 2011 18:31 UTC (Sat)
by elanthis (guest, #6227)
[Link] (1 responses)
Those of us with friends and colleagues often have requests to plug in random bits of equipment for some quick something-er-other. Having to wait for a recompile and a reboot certainly would make people "nostalgic" for Windows (which does not require that kind of crap, hasn't for many many years, and only the odd driver with an idiotic installer script even asks the user to consider rebooting these days).
Posted Dec 8, 2011 16:48 UTC (Thu)
by nye (subscriber, #51576)
[Link]
In fact, Windows does rather better than Linux does in this regard in that it's possible to replace the graphics driver for a running system with little more than a quick flicker.
In Linux you *still* need to restart X, which in practical terms is not much different for the desktop user than rebooting.
(I'm hoping dynamic reconfiguration is something that Wayland will improve upon, if it really gets off the ground)
Posted Dec 8, 2011 15:47 UTC (Thu)
by bluss (guest, #47454)
[Link] (2 responses)
Posted Dec 8, 2011 17:01 UTC (Thu)
by nye (subscriber, #51576)
[Link] (1 responses)
A better question would be why it's there at all, given that the ext4 driver is supposed to handle ext3 just as well (unless my understanding is wrong; that's quite possible). But it does make some sense - eg if you're using btrfs / (which I hear is all the rage these days, don'tcherknow) you likely have no need to read ext3 filesystems.
And having just looked at the result of lsmod to find out what ext? modules are loaded, I'm now wondering why I seem to have [at least] the following fs modules *all* loaded:
Not to mention a bajillion other modules for hardware I don't have.
Posted Dec 9, 2011 10:50 UTC (Fri)
by etienne (guest, #25256)
[Link]
There is probably an "automagic partition type detection" (i.e. mount -t auto /dev/... /mnt) which will modprobe all these modules, hopefully one by one, until it finds the right filesystem for that partition. Do you have an unrecognised disk partition?
Posted Dec 9, 2011 4:45 UTC (Fri)
by jd (guest, #26381)
[Link] (1 responses)
Posted Jan 8, 2012 7:11 UTC (Sun)
by dirtyepic (guest, #30178)
[Link]
I've always thought it would be an awesome LinuxNewbies or Gentoo Wiki project to translate things like "Enable system-call auditing support" into "Enable this if you want consolekit to work properly".
As for hardware/drivers, there is always the LKDDb (http://cateee.net/lkddb). There is also an automatic configuration script provided but I couldn't get it to work properly.
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
Heck, the ehci-hcd driver (USB 2.0 hci) must be a module if you have some crappy BIOS, because you need to unload it for poweroff to work (will reboot if loaded, instead).
Quotes of the week
Quotes of the week
Quotes of the week
http://www.thinkwiki.org/wiki/How_to_make_ACPI_work
https://bbs.archlinux.org/viewtopic.php?pid=942749
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
Right. In addition to saying not to compile modules you don't use, he said to statically link the ones that you do compile into the base kernel. With the reduced amount, that is practical and it has the benefit that no hacker can change the code.
loadable kernel modules are evil
loadable kernel modules are evil
loadable kernel modules are evil
Only that I credit Linus with common sense and because Linus, like most people, but more, often makes terse, sweeping generalizations that aren't intended to cover every corner case.
I'm sure he didn't mean for it to apply to someone developing the module, though.
What makes you sure? Other quotes?
In fact, it's about as quick and easy to reboot that test system as to reload a module
How long is that?
Quotes of the week
Quotes of the week
Quotes of the week
Nothing because you've ignored the problems with modules in first place...
Nothing because you've ignored the problems with modules in first place...
Nothing because you've ignored the problems with modules in first place...
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
Quotes of the week
fuse, btrfs, ufs, qnx4, hfsplus, hfs, minix, ntfs, vfat, msdos, fat, jfs, xfs, exportfs, reiserfs, ext3, ext2, isofs, udf, ext4
Quotes of the week
That is the usual problem with automagic things, at some point the system should assume failure, and not try to detect if I have soldered a new temperature controller semiconductor chip on my motherboard since I last powered it...
It is difficult to define the limit, and still work with the widest range of hardware - for instance, is the hard disk moved to another computer a supported scenario?
Kernels may be evil
Kernels may be evil
