[parisc-linux] ntpd fails on mlockall()
Richard Hirst
rhirst@linuxcare.com
Tue, 10 Oct 2000 21:53:15 +0100
On Tue, Oct 10, 2000 at 12:08:41PM +0100, Richard Hirst wrote:
> On Mon, Oct 09, 2000 at 08:57:00PM -0600, Bdale Garbee wrote:
> > I built a package of ntp, and it installed ok, but when ntpd goes to launch,
> > I get the following in daemon.log:
> >
> > Oct 9 20:51:27 j5k ntpd[19416]: ntpd 4.0.99g Mon Oct 9 20:44:40 MDT 2000 (1)
> > Oct 9 20:51:27 j5k ntpd[19416]: mlockall(): Cannot allocate memory
>
> A simple prog that just calls mlockall() fails as well. It is because
> we currently allocate a massive stack (256MB?) for every process, and
> mlockall() tries to actually claim the memory for that stack. I tried
> allocating just a 1MB stack in fs/exec.c, and my simple mlockall()
> prog then worked.
I've changed the kernel to grow the user stack dynamically, so
hopefully your ntpd will work now.
Richard