Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2001
    Location
    Vancouver
    Posts
    746

    All mbuf clusters exhausted, please see tuning(7)

    (Free bsd)

    sysctl kern.ipc.somaxconn
    kern.ipc.somaxconn: 8192

    sysctl kern.ipc.nmbclusters
    kern.ipc.nmbclusters: 65535

    sysctl kern.maxfiles
    kern.maxfiles: 65536

    sysctl kern.maxfilesperproc
    kern.maxfilesperproc: 32768

    How much higher can I go with dual 1.13 Ghz + 2 gigs of ram?

  2. #2
    Join Date
    Sep 2001
    Location
    Vancouver
    Posts
    746
    No freebsd gurus? I need step by step instructions on how to increase mbufs

  3. #3

  4. #4
    Join Date
    Sep 2001
    Location
    Vancouver
    Posts
    746
    http://www.freebsd.org/doc/en_US.ISO...el-limits.html

    Note: As of FreeBSD 4.5, setting MAXUSERS to 0 in your kernel configuration file will choose a reasonable default value based on the amount of RAM present in your system.

    Anyone ever have experience setting it to 0?

  5. #5
    I have had it set to 0 on a development/test server, but the server wasnt in a high bandwidth situation where mbuf's get used. I dont recall what the default mbuf's were with the 0 max user configuration.

    Ben WIlcox

  6. #6
    Join Date
    Sep 2001
    Location
    Vancouver
    Posts
    746
    The server doesn't even boot up when mbuffs are set to 131072

    I was told the Tyan motherboard is too sensitive =/

  7. #7
    Join Date
    Apr 2001
    Location
    Pittsburgh, PA
    Posts
    1,304
    Originally posted by ClusterMania
    The server doesn't even boot up when mbuffs are set to 131072

    I was told the Tyan motherboard is too sensitive =/
    No, you've probably actually reserved all physical RAM for mbufs in the kernel, leaving no RAM with which to actually run user processes.

    65536 mbuf clusters is pathologically high and impractical. Anything beyond that might not even be supported by the code.

    If you really have 65536 for NMBCLUSTERS and are running out of mbufs, may I ask what your traffic patterns are? Huge, huge numbers of small flows? Or perhaps a flooding attack?

    mbuf clusters become a dynamically allocated resource in FreeBSD 5.x, incidentally.

    Kevin

  8. #8
    [
    If you really have 65536 for NMBCLUSTERS and are running out of mbufs, may I ask what your traffic patterns are? Huge, huge numbers of small flows? Or perhaps a flooding attack?
    I would like to know the same, never really had a problem with mbuf's except a couple years ago with a t1 line and too much traffic trying to make its way out.

    Ben

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •