Skip to contentSkip to conversation

Q: multiple task queues performance ?

DISCUSSION Stelian Pop 1 participant 1 message Mar 16, 2001

lore
Share & tools
lore
#0 lore raw

Hi folks,

I'm writing a driver for a ISDN card which needs to be able to send data to several channels, each channel having its own flow control flag.

Actually, I use one send queue (sk_buff_head) and one task queue (tq_struct) for each channel, the task being controled by the flow flag and queued on tq_immediate.

The problem is that some versions of the same ISDN card are able to manage up to 256 ISDN channels, so the driver could end up having 256 task queues queued on tq_immediate...

Is this The Good Way(tm) to do the job or 256 task queues implies too much overhead and I should reimplement the access to the channels using only one task queue and do some polling policy on the channels myself ?

Thanks.

Stelian.

Signature · 4 lines
Stelian Pop <[email protected]>
|------------- Ingénieur Informatique Libre --------------|
| Alcôve - http://www.alcove.com - Tel: +33 1 49 22 68 00 |
|----------- Alcôve, l'informatique est libre ------------|