Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Apr 2001 17:54:16 +0200
From:      "John Andersson" <yottaman@writeme.com>
To:        "'Alfred Perlstein'" <bright@wintelcom.net>
Cc:        <freebsd-stable@FreeBSD.ORG>
Subject:   RE: Delayed effects of sysctl.conf
Message-ID:  <000b01c0d18d$cf5ee2f0$0fad2fc2@te31002>
In-Reply-To: <20010430084341.E18676@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
The ircd is started by a startup script in /usr/local/etc/rc.d/. I
looked at the /etc/rc script and noticed (as you said) that sysctl.conf
is read long before the ircd startup script.

Still, ircd does not notice the changes in maxfiles. Similar effects can
be found by executing the "limit" built-in command in tcsh, that reports
the number of descriptors. It does not see the changes directly after
"sysctl -w kern.maxfiles", but it does so later, after a login.


> -----Original Message-----
> From: owner-freebsd-stable@FreeBSD.ORG [mailto:owner-freebsd-
> stable@FreeBSD.ORG] On Behalf Of Alfred Perlstein
> Sent: den 30 april 2001 17:44
> To: John Andersson
> Cc: freebsd-stable@FreeBSD.ORG
> Subject: Re: Delayed effects of sysctl.conf
>=20
> * John Andersson <yottaman@writeme.com> [010430 08:39] wrote:
> > I have added "kern.maxfiles=3D16384" and
> "kern.maxfilesperproc=3D16384" in
> > my FreeBSD 4.3 server to raise the number of file descriptors.
> The
> > problem is that the ircd daemon does not see these changes at
> startup,
> > it reports that there is too few file descriptos. If I
> manually start
> > ircd after startup has completed, it starts without
> complaining.
> >
> > It seems like the changes in sysctl.conf at startup does not
> take effect
> > until the startup process has completed, perhaps it is after
> the
> > securelevel has been raised or something.
> >
> > What can I do to solve this? Can I modify the number of file
> descriptors
> > in some other way, or start the ircd daemon in some other way?
>=20
> How are you starting ircd?  From the looks of it sysctl.conf is
> read _very early_ during startup and if you're starting ircd
> before
> it via startup scripts you're most likely doing something
> terribly
> wrong.
>=20
> --
> -Alfred Perlstein - [alfred@freebsd.org]
> http://www.egr.unlv.edu/~slumos/on-netbsd.html
>=20
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000b01c0d18d$cf5ee2f0$0fad2fc2>