Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Increase UDP receive buffer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
d82k
n00b
n00b


Joined: 01 Nov 2007
Posts: 27

PostPosted: Fri Mar 07, 2008 8:29 am    Post subject: Increase UDP receive buffer Reply with quote

Hi everybody!

I have some problems with netfilter and snort inline.
The traffic I need to monitor with snort is putted in queue with iptables rules, everything works perfectly.

I must make some test in order to calculate performances, so I have tried to attack my machine with a floodtool (which it sends udp packets) but almost immediately I receive this error "IpqLoop: : Failed to receive netlink message: No buffer space available".

The result is: floding with 1800pkt/s in 1 second only 1400 are analyzed ( 10 sec only 13600)!
[I need to make snort analyze all the packets that are received by the network interface and evaluate the maximum speed, i have both a fast link and a fast cpu]

Searching on the net I discovered that is probably a buffer problem...
I have tried to solve it using sysctl to edit rmem_default/max, wmem_default/max and ip_queue values, but I'm not sure i did the right thing: the problem still remains.
by the way increasing too much these values, performances .

Code:

cat /proc/net/ip_queue
Peer PID          : 0
Copy mode         : 0
Copy range        : 0
Queue length      : 0
[b]Queue max. length : 1024[/b]
Queue dropped     : 0
[b]Netlink dropped   : 195422[/b]


I have also read that maybe has to be modified the SO_RCVBUF, but I dunno how to do it..
any ideas?


thankyou for your time and help!
dk
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum