[ntp:questions] ntpd 4.2.4 crash on NetBSD/i386

Hal Murray hal-usenet at ip-64-139-1-69.sjc.megapath.net
Sat Feb 24 22:24:04 UTC 2007


>I just got a new NetBSD box running. It's an old 486 with 16MB RAM and
>515MB hard drive. The NetBSD 3.1 GENERIC kernel takes up more than half
>the RAM, and launching the stock ntpd (4.2.0) that's part of the
>distribution failed with a message saying "mlockall(): Cannot allocate
>memory". There is a 64MB swap partition on the machine.

I don't think swap space helps.  You are trying to lock things
in main memory so it will respond without the delays of swapping
things in.


>I ran ./configure --disable-all-clocks --disable-debug
>                   --enable-local-clock --disable-ipv6

I think "local-clock" refers to a special last-resort
refclock.  Your conf file doesn't include one so you
don't need it.


>I'm open to suggestions at this point. I also question whether there are
>specific kernel options that must be turned on in order for ntpd to work
>(other than basic networking, I mean).

I don't have much experience at running things it boxes without
much memory.

How much memory do you have left and/or how much does it need?

ntpd.html says there is a -N option to run at high priority.
I think that includes locking things in memory.  You might
try turning that switch off (or commenting out that line in
the source code).

-- 
These are my opinions, not necessarily my employer's.  I hate spam.




More information about the questions mailing list