Re: [RFC] [PATCH] sysctl for the latecomers



On Tue, 1 Aug 2006, Amit Gud wrote:

Chase Venters wrote:
On Tue, 1 Aug 2006, Chase Venters wrote:
Btw, wanted to add some comments on the specific approach:

1. A ring hard-coded to 32 elements is IMO unuseable. While it may not be
a real limit for what use case you have in mind, if it's in the kernel
sooner or later someone else is going to use it and get bitten. Imagine if
they wrote in 33 entries, and the first one was some critical security
setting that ended up getting silently ignored...

2. On the other hand, allowing it to grow unbounded is equally
unacceptable without a mechanism to list and clear the current "pending"
sysctl values. Unfortunately, at this point, you're starting to violate
"KISS".


You figured it right, theres no "correct" number of elements that I could adhere to.

Are the modules you refer to inserted during init at all? Because it seems
like it would be a lot more appropriate to just move sysctl until after
loading the modules, or perhaps running it again once they are loaded.


I have a case where sunrpc module gets inserted and sunrpc.tcp_slot_table_entries parameter is to be set _before_ nfs module is inserted. I agree that for this particular case user-space works (either udev rule, or modprobe.conf or sysctl after modprobe in initscripts), but am on a lookout for a more generic way for handling such cases - be it user-space or otherwise.

It just seems like something that belongs in user-space -- whether that be better init scripts, changes to modprobe, both, or something else entirely.

To make a kernel implementation of this concept that isn't fundamentally flawed from a usability and "least-surprise" perspective would mean enough code and behavior that the resulting implementation wouldn't be considered correct for the kernel anyway.

The kernel has, fundamentally, three kinds of configuration - CONFIG_*, the bootloader command-line, and 'live' configuration that gets set by user-space whenever appropriate.


AG


Thanks,
Chase
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Reverting to 6.2-RELEASE
    ... I came with a method of obtaining a configuration of a running kernel ... via sysctl and via configform the kernel file. ...
    (freebsd-stable)
  • Re: Reverting to 6.2-RELEASE
    ... I came with a method of obtaining a configuration of a running kernel ... via sysctl and via configform the kernel file. ...
    (freebsd-stable)
  • PROBLEM: Dell Inspiron 1501 fails to boot in 2.6.21+
    ... My new laptop won't boot with kernel versions 2.6.21 or 2.6.22. ... I've also included my kernel configuration and ver_linux output. ... Enabling unmasked SIMD FPU exception support... ... usbcore: ...
    (Linux-Kernel)
  • 2.6.16-rtXYZ hangs at boot on quad Opteron
    ... Debian etch and used the 2.6.14-rt9 kernel. ... NULL ptr deref on boot ... HyperTransport Technology Configuration ... # ACPI Support ...
    (Linux-Kernel)
  • Re: Oops in megaraid_mbox_dpc(), kernel 2.6.23.9-85.fc8.i686
    ... Controller name, FW version, RAID configuration, host system info, how ... Also do you see the issue on other kernel ... # Process debugging support ... # AX.25 network device drivers ...
    (Linux-Kernel)