]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move the mbuf memory limit calculations from init_param2() to
authorAndre Oppermann <andre@FreeBSD.org>
Thu, 17 Jan 2013 21:28:31 +0000 (21:28 +0000)
committerAndre Oppermann <andre@FreeBSD.org>
Thu, 17 Jan 2013 21:28:31 +0000 (21:28 +0000)
commit371407162b7d79fbacf66ab83cd079d233bdb81e
tree4ea33b1ea256eb1cad9fb08de3e6343f9199b000
parent14bc51359cae9c5476ff3e745f499fac1746f3aa
Move the mbuf memory limit calculations from init_param2() to
tunable_mbinit() where it is next to where it is used later.

Change the sysinit level of tunable_mbinit() from SI_SUB_TUNABLES
to SI_SUB_KMEM after the VM is running.  This allows to use better
methods to determine the effectively available physical and virtual
memory available to the kernel.

Update comments.

In a second step it can be merged into mbuf_init().
sys/kern/kern_mbuf.c
sys/kern/subr_param.c
sys/sys/mbuf.h