MBUF - Do not limit an objcache common pool to 10 magazines.
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 9 Sep 2009 16:17:57 +0000 (09:17 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 9 Sep 2009 16:17:57 +0000 (09:17 -0700)
commit58a264c4a67f08bde7423fce75e26eaaa1f91363
tree5e49dadcfd5868a0cabe35574834073f77f40e72
parenta5955b155c368797cbe324ae83a9fd5c82f58501
MBUF - Do not limit an objcache common pool to 10 magazines.

* An objcache's common magazine pool was limited to 10 in order to return
  memory to the system sooner rather then later.

  This created a situation with the mbuf allocator where high-rate
  mbuf producers (GigE, 10GigE) would sometimes not be able to allocate
  a large enough batch of mbufs and drop packets.  10 magazines x 64 is
  only 640 mbufs.

* Increase the limit from 10 to 1000.

Tested-with: 10GigE setup from Aggelos Economopoulos <aoiko@cc.ece.ntua.gr>
sys/kern/kern_objcache.c