Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2007 15:52:39 +0400
From:      rihad <rihad@mail.ru>
To:        freebsd-net@freebsd.org
Subject:   pipe buckets/hash_size
Message-ID:  <475E7A07.2070300@mail.ru>

next in thread | raw e-mail | index | archive | help
Hi,

In FreeBSD 7.0 the defaults are:

net.inet.ip.dummynet.hash_size: Default hash table size
net.inet.ip.dummynet.hash_size: 64

net.inet.ip.dummynet.max_chain_len: Max ratio between dynamic queues and 
buckets
net.inet.ip.dummynet.max_chain_len: 16

 From man ipfw: "Target value for the maximum number of pipes/queues in 
a hash bucket. The product max_chain_len*hash_size is used to determine 
the threshold over which empty pipes/queues will be expired even when 
net.inet.ip.dummynet.expire=0."

Does hash_size=64 and max_chain_len=16 mean there can only be 64*16 
pipes? hash_size can be as large as 65536. Should I change their values 
so that the product is as large as the expected number of concurrent pipes?


What happens when a pipe expires? Will it get deleted? What if more 
traffic appears triggering the pipe from its original ipfw rule?



Thank you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?475E7A07.2070300>