Skip to Content.
Sympa Menu

perfsonar-dev - passive monitoring performance of Linux using conventional cards

Subject: perfsonar development work

List archive

passive monitoring performance of Linux using conventional cards


Chronological Thread 
  • From: ulisses <>
  • To:
  • Subject: passive monitoring performance of Linux using conventional cards
  • Date: Fri, 12 Jan 2007 10:58:37 +0100
  • Resent-date: Fri, 12 Jan 2007 17:04:36 +0100
  • Resent-date: Fri, 12 Jan 2007 17:04:36 +0100
  • Resent-from:
  • Resent-message-id: <>
  • Resent-to:

Hi all

yesterday Sven at JRA1 meeting said that he obtained ~300 Mbps with
a regular NIC.

~3 years ago I obtained similar results ~240 Mbps (without any packet loss)
with conventional and a Pentium-III @800 Mhz.

To obtain similar performance as Sven with much older hardware the key
differenc is to use PACKET_MMAP:

- Without PACKET_MMAP enabled libpcap has to issue two system calls for
each packet,
one for receiving the packet and another for getting the timestamp.

- With a PACKET_MMAP enabled libpcap, usually no systems calls are issued
at all,
packets are already mapped at process memory.

PACKET_MMAP is a kernel feature, and requires to be enabled in the kernel
(usually is)
but also requires a PACKET_MMAP enabled libpcap, I have never seen a Linux
distro
that provided support for it!

For the applications, it's a matter of replacing one libpcap by another one
that supports PACKET_MMAP.

For more information on it you can read:

http://pusa.uv.es/~ulisses/packet_mmap/packet_mmap.txt

in that document, there are links to libpcap versions that support
PACKET_MMAP, try the one from the .gov site.

I hope this helps

Ulisses
_______________________________ __ ___________________________________
/_/
Network Operation Center __ __ Email:

RedIRIS/Red.es /_/ RedIRIS /_/
Edificio Bronce __ Tel: + 34 912127625
Pza. Manuel Gómez Moreno, s/n /_/ Urgencias: + 34 629148201
E-28020 Madrid Fax: + 34 915568864

_________________ Spanish Academic & Research Network _______________________


  • passive monitoring performance of Linux using conventional cards, ulisses, 01/12/2007

Archive powered by MHonArc 2.6.16.

Top of Page