[Winpcap-users] pcap_sendqueue_transmit() has 128MB limit?
gianluca.varenni at cacetech.com
Tue Apr 28 12:35:38 PDT 2009
----- Original Message -----
From: "Adagio Grazioso" <adagiograzioso at gmail.com>
To: <winpcap-users at winpcap.org>
Sent: Monday, April 27, 2009 8:34 PM
Subject: Re: [Winpcap-users] pcap_sendqueue_transmit() has 128MB limit?
> Sorry to jump in - but I'm curious. Why even 2-3 queues? Why not just
> 1 queue in a loop? (Assuming of course that we are transferring the
> same packet and not transferring different types of packet which would
> require 2-3 MB and hence 2-3 queues)
One queue should be enough, actually. It depends a lot on how you build your
application. For example you can have a multithreaded app in which one
thread fills the queue and another one sends it. In that case you would need
more than 1 queue.
> On Tue, Apr 28, 2009 at 4:32 AM, Gianluca Varenni
> <gianluca.varenni at cacetech.com> wrote:
>> I would just use a 2-3 queues and not much more than that.
>> ----- Original Message -----
>> From: "Janne Heikkinen" <janne.m.heikkinen at helsinki.fi>
>> To: <winpcap-users at winpcap.org>
>> Sent: Saturday, April 25, 2009 5:31 AM
>> Subject: Re: [Winpcap-users] pcap_sendqueue_transmit() has 128MB limit?
>>> Lainaus "Gianluca Varenni" <gianluca.varenni at cacetech.com>:
>>>> Even if you need to transmit at gigabit rates, I wouldn't use a queue
>>>> more than 1-2 MB. Using large sendqueue reduces the number of system
>>>> but it gives a hard time to the I/O manager because that large chunk of
>>>> virtual address space needs to be paged in and locked into memory when
>>>> driver needs to access it. This is extremely time consuming when you
>>>> large buffers.
>>> So if I would use 1000 1MB send queues there wouldn't be much delay
>>> between different queues?
>>> - Janne
>>> Winpcap-users mailing list
>>> Winpcap-users at winpcap.org
>> Winpcap-users mailing list
>> Winpcap-users at winpcap.org
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
More information about the Winpcap-users