Suggestion: higher default MBUF values
At our main location we recently hit 100% MBUF usage of the default 26584, on our firewall master. The backup firewall was at 60%.
I increased the value to 1,000,000 based on advice from the tuning page for 64bit multi-GB systems:
- Even for 32 bit systems seems to make sense to have a higher default value shipped out-of-the-box
- If installer detects a 64-bit system with decent RAM, installer should set a higher value for this tunable
#1 Updated by Eduard Rozenberg over 3 years ago
Suggestion is especially important for Intel igb/em cards (as we have on our firewalls) based on the advice further down that same tuning link.
Recently we had some interfaces go down for no obvious reason and restarted by apinger on the firewall that was at 100% MBUF's used. Maybe exhaustion of MBUF's was involved, who knows.
"Intel igb(4) and em(4) Cards
Certain intel igb cards, especially multi-port cards, can very easily exhaust mbufs and cause kernel panics, especially on amd64. The following tweak will prevent this from being an issue:
In /boot/loader.conf.local - Add the following (or create the file if it does not exist):
That will increase the amount of network memory buffers, allowing the driver enough headroom for its optimal operation."