Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Nov 2002 03:56:10 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Maxime Henrion <mux@freebsd.org>
Cc:        "M. Warner Losh" <imp@bsdimp.com>, chuck_tuffli@agilent.com, freebsd-hackers@FreeBSD.ORG
Subject:   Re: load time module parameters?
Message-ID:  <3DC9035A.3DFCF3BB@mindspring.com>
References:  <20021105222958.GH17013@cre85086tuf.rose.agilent.com> <20021105.222147.10576668.imp@bsdimp.com> <20021106104421.GK26605@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Maxime Henrion wrote:
> With kenv(1) you can modify kernel environment variables, which hold the
> tunables.  Previously, you could only set those at boot time.

Note that there are some values which are used to determine the
size of KVA space allocations, and changing them after boot,
even if it's permitted, will have no real effect.

For example, you can change the value of "maxfiles" with a sysctl,
but doing so will not increase the number of simultaneous network
connections your system will support, since the reserved space for
tcpcb's and sockets is not increased.

The kernel environment is most useful for diagnostic porposes, and
for use in the way descrived in this thread -- to provide a means
of passing parameters that should not be parameters to modules that
should not need parameters in the first place.  Many times, hacking
the values post-boot will have little or no effect.  It's too bad
the things that will have no effect were exported as writeable,
instead of resulting in an error.

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DC9035A.3DFCF3BB>