Re: ping: sendto: No buffer space available when using bittorrent or another p2p

2008-07-22 Thread Joe Warren-Meeks
On Mon, Jul 21, 2008 at 10:53:23AM -0600, Daniel Melameth wrote:
 On Mon, Jul 21, 2008 at 10:39 AM, Joe Warren-Meeks [EMAIL PROTECTED] wrote:
  The default limit for number of states is quite low. Try adding the
  following to pf.conf and running pfctl -vf /etc/pf.conf
  
  set limit { states 5000, frags 5000, src-nodes 5000 }
  
 
  You can up the values if they are too low.
 
  Use pfctl -s info to view how many entries there are in the state
  table beforehand and compare it to afterwards.
 
 FWIW, the default state and src-nodes limit is twice what you have above.

Oops you are right :-) That was meant to be 5, not 5000. I have mine
set to 500,000, as we have loads of ram and a load of busy sites. 

 -- joe.

It'll cost you many a shilling.



ping: sendto: No buffer space available when using bittorrent or another p2p

2008-07-21 Thread Amaury De Ganseman
Hi all,

I run OpenBSD 4.3 on my gateway. But when a machine behind the
NAT/gateway uses bittoreent (or gtk-gnutella) I loss packets.
For example when I try to do a ping www.google.com I can see ping:
sendto: No buffer space available (on my gateway)
It's the same if I use gtk-gnutella. I think it's related to the huge
number of states  (about 1500 for bittorent)

Any idea to the problem ?

Thanks for help.


Amaury De Ganseman
infos:
-

dmesg in attach

I use user-space pppoe

I use traffic shaping:

#ALTQ CBQ

altq on $ext_if cbq bandwidth 350Kb queue {std}

queue std bandwidth 100% { hprio, lprio}
queue lprio bandwidth 80% priority 0 cbq(default, borrow,red, ecn )
queue hprio bandwidth 20% priority 7 cbq(borrow, red, ecn)



gateway# netstat -m
37 mbufs in use:
32 mbufs allocated to data
1 mbuf allocated to packet headers
4 mbufs allocated to socket names and addresses
32/306/6144 mbuf clusters in use (current/peak/max)
708 Kbytes allocated to network (10% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

I use user-space pppoe

[demime 1.01d removed an attachment of type application/octet-stream which had 
a name of obsd.dmesg]



Re: ping: sendto: No buffer space available when using bittorrent or another p2p

2008-07-21 Thread Daniel Melameth
Does the issue go away when you make ping part of the high priority queue?

On Mon, Jul 21, 2008 at 7:55 AM, Amaury De Ganseman
[EMAIL PROTECTED] wrote:
 Hi all,

 I run OpenBSD 4.3 on my gateway. But when a machine behind the
 NAT/gateway uses bittoreent (or gtk-gnutella) I loss packets.
 For example when I try to do a ping www.google.com I can see ping:
 sendto: No buffer space available (on my gateway)
 It's the same if I use gtk-gnutella. I think it's related to the huge
 number of states  (about 1500 for bittorent)

 Any idea to the problem ?

 Thanks for help.


 Amaury De Ganseman
 infos:
 -

 dmesg in attach

 I use user-space pppoe

 I use traffic shaping:

 #ALTQ CBQ

 altq on $ext_if cbq bandwidth 350Kb queue {std}

 queue std bandwidth 100% { hprio, lprio}
 queue lprio bandwidth 80% priority 0 cbq(default, borrow,red, ecn )
 queue hprio bandwidth 20% priority 7 cbq(borrow, red, ecn)



 gateway# netstat -m
 37 mbufs in use:
32 mbufs allocated to data
1 mbuf allocated to packet headers
4 mbufs allocated to socket names and addresses
 32/306/6144 mbuf clusters in use (current/peak/max)
 708 Kbytes allocated to network (10% in use)
 0 requests for memory denied
 0 requests for memory delayed
 0 calls to protocol drain routines

 I use user-space pppoe



Re: ping: sendto: No buffer space available when using bittorrent or another p2p

2008-07-21 Thread Giancarlo Razzolini
Daniel Melameth escreveu:
 Does the issue go away when you make ping part of the high priority queue?

 On Mon, Jul 21, 2008 at 7:55 AM, Amaury De Ganseman
 [EMAIL PROTECTED] wrote:
   
 Hi all,

 I run OpenBSD 4.3 on my gateway. But when a machine behind the
 NAT/gateway uses bittoreent (or gtk-gnutella) I loss packets.
 For example when I try to do a ping www.google.com I can see ping:
 sendto: No buffer space available (on my gateway)
 It's the same if I use gtk-gnutella. I think it's related to the huge
 number of states  (about 1500 for bittorent)

 Any idea to the problem ?

 Thanks for help.


 Amaury De Ganseman
 infos:
 -

 dmesg in attach

 I use user-space pppoe

 I use traffic shaping:

 #ALTQ CBQ

 altq on $ext_if cbq bandwidth 350Kb queue {std}

 queue std bandwidth 100% { hprio, lprio}
 queue lprio bandwidth 80% priority 0 cbq(default, borrow,red, ecn )
 queue hprio bandwidth 20% priority 7 cbq(borrow, red, ecn)



 gateway# netstat -m
 37 mbufs in use:
32 mbufs allocated to data
1 mbuf allocated to packet headers
4 mbufs allocated to socket names and addresses
 32/306/6144 mbuf clusters in use (current/peak/max)
 708 Kbytes allocated to network (10% in use)
 0 requests for memory denied
 0 requests for memory delayed
 0 calls to protocol drain routines

 I use user-space pppoe
 


   
Take a look at the list archives. I recall someone having the same
issue, and it was something to do with the network card. It was a
hardware problem. I already had this sometimes, and only rebooting the
machine solved the problem.

My regards,

-- 
Giancarlo Razzolini
http://lock.razzolini.adm.br
Linux User 172199
Red Hat Certified Engineer no:804006389722501
Verify:https://www.redhat.com/certification/rhce/current/
Moleque Sem Conteudo Numero #002
OpenBSD Stable
Ubuntu 8.04 Hardy Heron
4386 2A6F FFD4 4D5F 5842  6EA0 7ABE BBAB 9C0E 6B85



Re: ping: sendto: No buffer space available when using bittorrent or another p2p

2008-07-21 Thread Joe Warren-Meeks
On Mon, Jul 21, 2008 at 03:55:41PM +0200, Amaury De Ganseman wrote:

Hey there,
 
 I run OpenBSD 4.3 on my gateway. But when a machine behind the
 NAT/gateway uses bittoreent (or gtk-gnutella) I loss packets.
 For example when I try to do a ping www.google.com I can see ping:
 sendto: No buffer space available (on my gateway)
 It's the same if I use gtk-gnutella. I think it's related to the huge
 number of states  (about 1500 for bittorent)

The default limit for number of states is quite low. Try adding the
following to pf.conf and running pfctl -vf /etc/pf.conf

set limit { states 5000, frags 5000, src-nodes 5000 } 


You can up the values if they are too low. 

Use pfctl -s info to view how many entries there are in the state
table beforehand and compare it to afterwards.

HTH.

 -- joe.

Denim is old news. Who wants to look like a member of B*witched?



Re: ping: sendto: No buffer space available when using bittorrent or another p2p

2008-07-21 Thread Daniel Melameth
On Mon, Jul 21, 2008 at 10:39 AM, Joe Warren-Meeks [EMAIL PROTECTED] wrote:
 The default limit for number of states is quite low. Try adding the
 following to pf.conf and running pfctl -vf /etc/pf.conf
 
 set limit { states 5000, frags 5000, src-nodes 5000 }
 

 You can up the values if they are too low.

 Use pfctl -s info to view how many entries there are in the state
 table beforehand and compare it to afterwards.

FWIW, the default state and src-nodes limit is twice what you have above.