[parisc-linux] ntpd fails on mlockall()

Richard Hirst rhirst@linuxcare.com
Tue, 10 Oct 2000 12:08:41 +0100


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.

Richard