/kernel: ipf_nattable_max reduced to 33596
Pozdrawiam
Siedar
z /usr/src/sys/contrib/ipfilter/netinet/ip_nat.c:
[--tasakiem potraktowane--]
/* Give me a new nat */
KMALLOC(nat, nat_t *);
if (nat == NULL) {
nat_stats.ns_memfail++;
/*
* Try to automatically tune the max # of entries in the
* table allowed to be less than what will cause
kmem_alloc()
* to fail and try to eliminate panics due to out of memory
* conditions arising.
*/
if (ipf_nattable_max > ipf_nattable_sz) {
ipf_nattable_max = nat_stats.ns_inuse - 100;
printf("ipf_nattable_max reduced to %d\n",
ipf_nattable_max);
}
return NULL;
}
--
Jakub Wartak
vnull