aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/Makefile
diff options
context:
space:
mode:
authorJonathan T. Looney <jtl@FreeBSD.org>2015-12-20 02:05:33 +0000
committerJonathan T. Looney <jtl@FreeBSD.org>2015-12-20 02:05:33 +0000
commit54503a13d8711f183ffedbf6a994ae79108b791b (patch)
tree35edbedbe3247ad76258a68a02cbebe4e0c54cb1 /share/man/man9/Makefile
parent25a2de5e7ec77115381e2637173e9c0b2ed38293 (diff)
downloadsrc-54503a13d8711f183ffedbf6a994ae79108b791b.tar.gz
src-54503a13d8711f183ffedbf6a994ae79108b791b.zip
Add a safety net to reclaim mbufs when one of the mbuf zones become
exhausted. It is possible for a bug in the code (or, theoretically, even unusual network conditions) to exhaust all possible mbufs or mbuf clusters. When this occurs, things can grind to a halt fairly quickly. However, we currently do not call mb_reclaim() unless the entire system is experiencing a low-memory condition. While it is best to try to prevent exhaustion of one of the mbuf zones, it would also be useful to have a mechanism to attempt to recover from these situations by freeing "expendable" mbufs. This patch makes two changes: a) The patch adds a generic API to the UMA zone allocator to set a function that should be called when an allocation fails because the zone limit has been reached. Because of the way this function can be called, it really should do minimal work. b) The patch uses this API to try to free mbufs when an allocation fails from one of the mbuf zones because the zone limit has been reached. The function schedules a callout to run mb_reclaim(). Differential Revision: https://reviews.freebsd.org/D3864 Reviewed by: gnn Comments by: rrs, glebius MFC after: 2 weeks Sponsored by: Juniper Networks
Notes
Notes: svn path=/head/; revision=292484
Diffstat (limited to 'share/man/man9/Makefile')
-rw-r--r--share/man/man9/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile
index 30cb5035efcf..c1399a32b84b 100644
--- a/share/man/man9/Makefile
+++ b/share/man/man9/Makefile
@@ -1911,6 +1911,7 @@ MLINKS+=zone.9 uma.9 \
zone.9 uma_zone_get_cur.9 \
zone.9 uma_zone_get_max.9 \
zone.9 uma_zone_set_max.9 \
- zone.9 uma_zone_set_warning.9
+ zone.9 uma_zone_set_warning.9 \
+ zone.9 uma_zone_set_maxaction.9
.include <bsd.prog.mk>