Re: [tcpdump-workers] mmap consumes more CPU

2012-11-26 Thread Guy Harris
On Nov 26, 2012, at 12:58 PM, abhinav narain wrote: > @Guy, > Basically, I was adding my own header (instead of radiotap) in kernel and > processing it in userland with my own code. Basically I wrote my own pcap > for that. For your own radio header, what you'd need would be: your own

Re: [tcpdump-workers] mmap consumes more CPU

2012-11-26 Thread abhinav narain
@Guy, Basically, I was adding my own header (instead of radiotap) in kernel and processing it in userland with my own code. Basically I wrote my own pcap for that. Since, I did not get the performance, Now I have added extra fields in radiotap. But I still see high CPU usage. Its interesting that y

Re: [tcpdump-workers] mmap consumes more CPU

2012-11-18 Thread David Laight
> hi, > I just checked the two mechanism : > (1) Using mmap to fetch packets from kernel to userspace > (2) Using recvfrom() call to fetch packets > > I see top reports > (1) 34% memory 20% cpu usage > (2) 21% memory 7% cpu usage ! It is worth remembering that the cpu usage reported by top isn'

Re: [tcpdump-workers] mmap consumes more CPU

2012-11-11 Thread Guy Harris
On Nov 5, 2012, at 11:03 AM, abhinav narain wrote: > I just checked the two mechanism : > (1) Using mmap to fetch packets from kernel to userspace > (2) Using recvfrom() call to fetch packets > > I see top reports > (1) 34% memory 20% cpu usage > (2) 21% memory 7% cpu usage ! > > I wanted a p

[tcpdump-workers] mmap consumes more CPU

2012-11-11 Thread abhinav narain
hi, I just checked the two mechanism : (1) Using mmap to fetch packets from kernel to userspace (2) Using recvfrom() call to fetch packets I see top reports (1) 34% memory 20% cpu usage (2) 21% memory 7% cpu usage ! I wanted a performance improvement using mmap but I am slowing my small router

Re: [tcpdump-workers] mmap

2011-03-03 Thread Guy Harris
On Mar 3, 2011, at 10:21 PM, 吴仁科 wrote: > Does the latest libpcap release use mmap functionality? libpcap 1.1.x supports the memory-mapped capture mechanisms for regular network adapters on both Linux and FreeBSD, as well as the memory-mapped capture mechanism for USB on Linux. - This is the

[tcpdump-workers] mmap

2011-03-03 Thread 吴仁科
Does the latest libpcap release use mmap functionality? - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.

Re: [tcpdump-workers] mmap in libpcap

2009-08-16 Thread Tao Yang
you can use the gcc -E option to check which part of which part of source code is compiled. Tao On Fri, Aug 14, 2009 at 10:02 AM, Sashan Govender < sashan.goven...@exinda.com> wrote: > Hi > > Will libpcap 1.0.0 use mmap packets if the linux kernel has > CONFIG_PACKET_MMAP > enabled? As far as

Re: [tcpdump-workers] mmap in libpcap

2009-08-16 Thread Guy Harris
On Aug 13, 2009, at 7:02 PM, Sashan Govender wrote: Will libpcap 1.0.0 use mmap packets if the linux kernel has CONFIG_PACKET_MMAP enabled? If it was built on the same version of the OS as the one on which it's running, yes; that should be the case, for example, with versions of libpcap

[tcpdump-workers] mmap in libpcap

2009-08-16 Thread Sashan Govender
Hi Will libpcap 1.0.0 use mmap packets if the linux kernel has CONFIG_PACKET_MMAP enabled? As far as I can tell, there's code in libpcap to use the mmaped sockets but it's not used unless HAVE_PACKET_RING is defined? Thanks - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to u

Re: [tcpdump-workers] mmap-ed tcpdump and gigabit ethernet

2007-01-08 Thread Dmitry Rubinstein
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dmitry Rubinstein Sent: Monday, January 08, 2007 11:56 AM To: tcpdump-workers@lists.tcpdump.org Subject: [tcpdump-workers] mmap-ed tcpdump and gigabit ethernet Greetings, all! I would like to have an efficient capturing solution for a gigabit

[tcpdump-workers] mmap-ed tcpdump and gigabit ethernet

2007-01-08 Thread Dmitry Rubinstein
Greetings, all! I would like to have an efficient capturing solution for a gigabit network. It seems as if Phil Wood's libpcap should do the work. However, I am not sure as for its support for the jumbo frames. When in MMAP mode, this version of tcpdump doesn't seem to cope with -s 0 or -s N for