Advertisement
devinteske

in-kernel nmbcluster bump

May 12th, 2013
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.63 KB | None | 0 0
  1. --- kern/kern_mbuf.c.orig       2010-06-13 19:09:06.000000000 -0700
  2. +++ kern/kern_mbuf.c    2013-05-11 19:26:26.000000000 -0700
  3. @@ -114,7 +114,13 @@ tunable_mbinit(void *dummy)
  4.  
  5.         /* This has to be done before VM init. */
  6.         if (nmbclusters == 0)
  7. +#if 0
  8. +               /* XXX Quite frankly, this formula sucks if you have igb(4),
  9. +                * ix(4), ti(4), or any other mbuf-hungry driver XXX */
  10.                 nmbclusters = 1024 + maxusers * 64;
  11. +#else
  12. +               nmbclusters = 242144;
  13. +#endif
  14.         nmbjumbop = nmbclusters / 2;
  15.         nmbjumbo9 = nmbjumbop / 2;
  16.         nmbjumbo16 = nmbjumbo9 / 2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement