tcpdump mailing list archives
mmap consumes more CPU
From: abhinav narain <abhinavnarain10 () gmail com>
Date: Mon, 5 Nov 2012 14:03:57 -0500
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 for packet capture( I can't use pcap for that; I have modified skbuff ) and its worst than twice ! Memory increase is fine. Can anyone suggest what going on ? Or how to improve -Abhinav Narain _______________________________________________ tcpdump-workers mailing list tcpdump-workers () lists tcpdump org https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers
Current thread:
- mmap consumes more CPU abhinav narain (Nov 11)
- Re: [Wireshark-dev] mmap consumes more CPU Guy Harris (Nov 08)
- Re: mmap consumes more CPU Guy Harris (Nov 11)
- Re: mmap consumes more CPU David Laight (Nov 18)
- Re: mmap consumes more CPU abhinav narain (Nov 26)
- Re: mmap consumes more CPU Guy Harris (Nov 26)
- Re: mmap consumes more CPU abhinav narain (Nov 26)