RE: 5.2.1 + snort, dropping packets

From: Don Bowman <don_at_sandvine.com>
Date: Tue, 25 May 2004 09:12:04 -0400
From: Sergey Lyubka [mailto:devnull_at_uptsoft.com]
> hackers,
> I am running snort on 5.2.1-RELEASE, and I am getting high
> dropped packets rate. traffic is quiet, about 1kpps, the box 
> runs on xeon
> processor, intel gigabit NICs (em driver), system load is low:
> 
> CPU states:  1.9% user,  5.1% nice,  1.6% system,  4.7% 
> interrupt, 86.8% idle
> Mem: 121M Active, 97M Inact, 75M Wired, 736K Cache, 60M Buf, 201M Free
> Swap: 512M Total, 512M Free
> 
> 
> I have tried:
> 	o both SMP and UP kernels
> 	o both SCHED_ULE and SCHED_4BSD options
> 	o libpcap libs versions 0.7 and 0.8.3
> 	o 5.2.1-RELEASE and -current kernels
> 	o DEVICE_POLLING option
> 	o sysctl debug.bpf_bufsize set to maximum of 524288
> 
> and still having dropped packets.
> I am having a much lower spec box, running obsd 3.2, same 
> snort configuration,
> capturing the same traffic. obsd shows constant 0 dropped packets.
> 
> How would I fix that problem?

This might be old information, but on stable branch, libpcap
overrode the 'debug.bpf_bufsize' and always made it 4K. I made
a local change and it fixed it for me. Not sure if that is
corrected on current.

On the system you indicate you should be able to get ~300Kpps
into user space via bpf, or at least, you can with stable.
Received on Tue May 25 2004 - 04:12:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:54 UTC