[Click] background processing?

Eddie Kohler kohler at cs.ucla.edu
Sun Jan 28 02:27:15 EST 2007


Hi Nick,

Yeah, pthreads would work pretty well for this -- just make sure you don't 
access any important Click data from the secondary thread!  We've had better 
experiences, I'd say, with entirely isolated secondary threads (i.e., a single 
element "owns" the thread and communicates with it at task time) than 
secondary threads that are more integrated (i.e., that pass packets from one 
element to another).

Eddie


Nicholas Murphy wrote:
> Managed to get pthreads working, which does roughly what I want to do.
> 
> Thanks for the suggestions!
> 
> Nick
> 
> On Jan 25, 2007, at 11:26 PM, Bart Braem wrote:
> 
>> On Thursday 25 January 2007 21:48, Roman Chertov wrote:
>>> Nicholas Murphy wrote:
>>>> Thanks for the reply.  In a nutshell, here's what I want to do: I'm
>>>> including cryptographic signatures in every packet.  I want those
>>>> signatures to be verified _eventually_, but I don't want  
>>>> verification
>>>> to happen synchronously with packet reception.  I just want it to be
>>>> a background process that grabs spare cpu cycles.  Unfortunately, I
>>>> don't think co-operative multitasking is quite what I want here as I
>>>> don't want the verification code, which is potentially long-running,
>>>> to interfere with packet processing.
>>> Store the packets on disk, in a circular/linear type buffer and then
>>> analyze them at your own leisure time.  I've made a post a while ago
>>> with the code for device drivers which allow you to do just that.
>> Or pass them to a second, separate Click instance that runs on a  
>> dedicated
>> tun/tap device. Then you can buffer packets in Queue elements there  
>> like in
>> any other Click configuration...
>>
>> Bart
>> -- 
>> Bart Braem
>> PATS research group
>> Dept. of Mathematics and Computer Sciences
>> University of Antwerp
>> Campus Middelheim, G2.36
>> Middelheimlaan 1
>> B-2020 Antwerpen, Belgium
>> Phone: +32 (0)3 265.35.19
>> Fax: +32 (0)3 265.37.77
>> Web: www.pats.ua.ac.be
>> _______________________________________________
>> click mailing list
>> click at amsterdam.lcs.mit.edu
>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> 
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list