Add calls to uma_zone_set_max() to restore previously enforced limits.

This commit is contained in:
Jeff Roberson 2002-03-20 05:30:58 +00:00
parent 736ee5907f
commit 586c8b6b29
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92759
2 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,7 @@ domaininit(void *dummy)
socket_zone = uma_zcreate("socket", sizeof(struct socket), NULL, NULL,
NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
uma_zone_set_max(socket_zone, maxsockets);
if (max_linkhdr < 16) /* XXX */
max_linkhdr = 16;

View File

@ -1074,6 +1074,7 @@ unp_init(void)
{
unp_zone = uma_zcreate("unpcb", sizeof(struct unpcb), NULL, NULL,
NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
uma_zone_set_max(unp_zone, nmbclusters);
if (unp_zone == 0)
panic("unp_init");
LIST_INIT(&unp_dhead);