On Wed, 29 May 2002, Gary Stanley wrote:
> Hi. > > We have a webserver setup with 1 Intel Pro/1000 Gigabit Ethernet card. The > old server was using around 95mbit/s of traffic or so (sustained rate). We > decided to replace that card/machine with something that could handle the > high network load. The question would be, What's a good size for > NMBCLUSTERS? I want to be -sure- the box does not run out of mbufs during > the production phase. The old machine was on a fxp0 driver, mbufs set to > 65k due to network overhead. Are there limits to mbufs, as in a size limit? > > > Thanks. There is no good answer to your question, unfortunately. mbuf usage is not related to bandwidth, but rather to the number of simultaneous connections being handled. If you want to run some rough numbers, consider the following: net.inet.tcp.sendspace: 32768 (bytes) Each mbuf cluster is 2048 bytes. >From those numbers, and knowledge of how many simultaneous connections you will be sustaining, you should be able to make a rough guess at the correct number of mbuf clusters to use. Beware about setting too high a number of mbuf clusters - there are DoS programs out there aimed at using all mbuf clusters available. If such a program is run, and you have mbuf clusters * 2048 > amount of ram, there could be big problems. Mike "Silby" Silbersack To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

