[lkml]   [2011]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: RFC v1: sysctl: add sysctl header cookie, share tables between nets
    David Miller <> writes:

    > From: Lucian Adrian Grijincu <>
    > Date: Fri, 25 Feb 2011 20:52:32 +0200
    >> This is a new approach to the "share sysctl tables" RFC series I
    >> posted earlier this month.
    > I do not disagree conceptually with these changes from a networking
    > perspective, but I am not a sysctl layer expert so I don't know if the
    > generic sysctl bits are a good idea or not.

    I may be missing something in these patches. I haven't had time to look
    at this most recent batch carefully. But from a 10,000 foot perspective I
    have a problem with them. With a handful of network devices the size of
    the data structures is negligible.

    Where problems show up is when you have a lot of sysctl entries for
    devices and at that point we have much larger problems using the
    sysctl data structures. Today add/remove are big O(previous entries)
    and I think even readdir suffers from non-scalable data structures.

    There are other related issues that the sysctl data structures are not
    optimized for use in /proc, and that sysctl uses so usable but on off
    locking like mechanisms.

    Changing things to make the sysctl users more dependent on the current
    implement details of the sysctl data structures seems the exact
    opposite of the direction we need to go to make the sysctl data structures

    So until I can see a reason why we should save a few bytes at the cost
    of greater future maintenance costs I'm not in favor of this patch set.


     \ /
      Last update: 2011-03-03 10:37    [W:0.024 / U:5.844 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site