[ntp:questions] mlockall() issue (was: FreeBSD refclock error)

David Newman dnewman at networktest.com
Thu Sep 7 18:43:24 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Terje Mathisen wrote:

> 'Use the Source, Luke!'
> 
> I.e. by all means grab the official distribution from
> http://www.ntp.org/ ! FreeBSD is pretty much _the_ preferred platform
> for the reference installation.

Maybe so, but I'm getting an mlockall() error when loading 4.2.2p3.
Debug output and ntp.conf below.

This is on FBSD 6.1 amd64.

I searched and found some mlockall() bug reports, but no workarounds.

Any ideas how to get this running?

thanks

dn

lance# netstat -an | grep 123
lance# /usr/local/bin/ntpd -D2 -g -p /var/run/ntpd.pid
Debug1: 2 -> 2 = 2
ntpd 4.2.2p3 at 1.1577-o Thu Sep  7 14:16:21 UTC 2006 (3)
Debug1: 2 -> 2 = 2
addto_syslog: mlockall(): Resource temporarily unavailable


ntp.conf:
server 127.127.26.0 prefer
#server us.pool.ntp.org
#server us.pool.ntp.org

##
## Undisciplined Local Clock. This is a fake driver intended for backup
## and when no outside source of synchronized time is available.
##
server 127.127.1.0 # local clock (LCL)
fudge  127.127.1.0 stratum 10 # LCL is unsynchronized

##
## Miscellaneous stuff
##

driftfile /var/db/ntp.drift

logfile   /var/log/ntp.log # alternate log file
# logconfig=syncall +clockall
# logconfig =syncstatus + sysevents + clockall
# logconfig =all
<some restrict stuff omitted>


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFFAGhMyPxGVjntI4IRAlNEAJ4x0+YnL9Nkd17MPGWCdQPEBc3NuwCgyIAs
4fK0Bvk5siA1SVPaDO8Dq5Q=
=JsdT
-----END PGP SIGNATURE-----



More information about the questions mailing list