[Click] Large argument lists
Eddie Kohler
kohler at cs.ucla.edu
Sat Oct 18 03:12:37 EDT 2008
Thanks very much for your clear explanations, Marko, and thanks Harald for the
bug report. I've checked in a version of DirectIPLookup whose internal data
structures can grow dynamically. Please let the list know if you experience
any problems.
Eddie
Marko Zec wrote:
> On Friday 17 October 2008 16:40:43 Eddie Kohler wrote:
>> I agree with the warning.
>>
>> I don't really see cache benefits to preventing these structures from
>> growing dynamically, though. Can't we just do that?
>
> I think the major issue at the time I wrote this (3.5 years ago) was
> with dynamically (re)allocating large contiguous chunks of _kernel_
> memory, and that's why I opted for the hardcoded size limits. Dynamic
> growing of the structures shouldn't be a problem in userland of course.
>
> Marko
>
>
>> E
>>
>> Marko Zec wrote:
>>> On Friday 17 October 2008 15:33:16 Harald Schiöberg wrote:
>>>> Marko Zec wrote:
>>>>> On Friday 17 October 2008 02:26:01 Eddie Kohler wrote:
>>>>>> Hi Harald,
>>>>>>
>>>>>> We have a problem. It looks like this is a bug in
>>>>>> DirectIPLookup. If I use RadixIPLookup instead of Direct,
>>>>>> everything works fine. I did not write DirectIPLookup; I have
>>>>>> ccd Marko Zec, who did. Maybe he can help.
>>>>> Hmm it's both a bug and a feature, depending on how you look at
>>>>> it...
>>>> Since its both, reverting to plan B: Issue a warning. Patch is
>>>> attached.
>>> Sounds reasonable. IMO warning messages should be printed in
>>> add_route() handler, not in configure() which is run only at
>>> element instantiation time, because it's possible to modify routing
>>> table contents on the fly at any time while click runs...
>>>
>>> Cheers,
>>>
>>> Marko
>
>
More information about the click
mailing list