| To: | hadi@xxxxxxxxxx |
|---|---|
| Subject: | Re: _High_ CPU usage while routing (mostly) small UDP packets |
| From: | P@xxxxxxxxxxxxxx |
| Date: | Tue, 07 Dec 2004 13:39:14 +0000 |
| Cc: | Karsten Desler <kdesler@xxxxxxxxxx>, Robert Olsson <Robert.Olsson@xxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx |
| In-reply-to: | <1102424673.1093.124.camel@xxxxxxxxxxxxxxxx> |
| References: | <20041206205305.GA11970@xxxxxxxxxx> <20041206134849.498bfc93.davem@xxxxxxxxxxxxx> <20041206224107.GA8529@xxxxxxxxxx> <41B58A58.8010007@xxxxxxxxxxxxxx> <20041207112139.GA3610@xxxxxxxxxx> <16821.42080.932184.167780@xxxxxxxxxxxx> <20041207125001.GA26644@xxxxxxxxxx> <1102424673.1093.124.camel@xxxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124 |
jamal wrote: On Tue, 2004-12-07 at 07:50, Karsten Desler wrote:Currently I'm having problems capturing packets with tcpdump (lots of "packets dropped by kernel") which indicates to me that there's genuinely not much (enough) idle time sitting around.Ah, more hints. So you are not trying to forward - rather just packet capturing? Are you using a tcpdump patched with mmaped packet socket? The 230-240Kpps you are reporting as a capture dont seem as unreasonable as i thought then. Neither would the CPU use. Yes this is vital Karsten, otherwise tcpdump will do 2 syscalls per packet, which is the bottleneck in my experience. You may want to try a simpler capture program that uses the kernel PACKET_MMAP feature directly: http://www.scaramanga.co.uk/code-fu/lincap.c -- Pádraig Brady - http://www.pixelbeat.org -- |
| Previous by Date: | Re: [PATCH] rtnetlink & address family problem, jamal |
|---|---|
| Next by Date: | Re: [PATCH] rtnetlink & address family problem, Thomas Graf |
| Previous by Thread: | Re: _High_ CPU usage while routing (mostly) small UDP packets, Karsten Desler |
| Next by Thread: | Re: _High_ CPU usage while routing (mostly) small UDP packets, Karsten Desler |
| Indexes: | [Date] [Thread] [Top] [All Lists] |