From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jul 9 22:20:01 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63C55106566B for ; Wed, 9 Jul 2008 22:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 367858FC17 for ; Wed, 9 Jul 2008 22:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m69MK1PD081113 for ; Wed, 9 Jul 2008 22:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m69MK1We081112; Wed, 9 Jul 2008 22:20:01 GMT (envelope-from gnats) Resent-Date: Wed, 9 Jul 2008 22:20:01 GMT Resent-Message-Id: <200807092220.m69MK1We081112@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Travis Mikalson Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A7AA106567F for ; Wed, 9 Jul 2008 22:12:24 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 604798FC17 for ; Wed, 9 Jul 2008 22:12:24 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m69MCObF031344 for ; Wed, 9 Jul 2008 22:12:24 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m69MCO7b031343; Wed, 9 Jul 2008 22:12:24 GMT (envelope-from nobody) Message-Id: <200807092212.m69MCO7b031343@www.freebsd.org> Date: Wed, 9 Jul 2008 22:12:24 GMT From: Travis Mikalson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/125453: ntp should no longer use mlockall() X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2008 22:20:01 -0000 >Number: 125453 >Category: ports >Synopsis: ntp should no longer use mlockall() >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Jul 09 22:20:00 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Travis Mikalson >Release: 7.0-RELEASE >Organization: TerraNovaNet, Inc. >Environment: FreeBSD XXXX.terranova.net 7.0-RELEASE FreeBSD 7.0-RELEASE #5: Tue Mar 18 18:20:59 EDT 2008 tog@XXXX.terranova.net:/usr/obj/usr/src/sys/XXXX amd64 >Description: Ntpd 4.2.4p4 from ports should probably not use mlockall() for FreeBSD 5.x or later. mlockall() does not work under amd64 and FreeBSD also now has SO_TIMESTAMP. i386 seems to work with mlockall(), but using amd64, having ntpd compiled with HAVE_MLOCKALL causes the following when you start ntpd: Jul 9 16:22:47 XXXX ntpd[82826]: ntpd 4.2.4p4@1.1520-o Wed Jul 9 20:21:24 UTC 2008 (1) Jul 9 16:22:47 XXXX ntpd[82827]: mlockall(): Resource temporarily unavailable See also: http://support.ntp.org/bin/view/Dev/NtpdProcessResidencyIssues >How-To-Repeat: >Fix: Patch attached (goes in files/ directory of the net/ntp or net/ntp-devel port...) Tested for both ntp and ntp-devel port. Patch attached with submission follows: --- config.h.in 2007-09-10 20:27:45.000000000 -0400 +++ config.h.in.new 2008-07-09 16:42:49.366051556 -0400 @@ -494,7 +494,7 @@ #undef HAVE_MKTIME /* Define to 1 if you have the `mlockall' function. */ -#undef HAVE_MLOCKALL +/* #undef HAVE_MLOCKALL */ /* Define to 1 if you have the `mmap' function. */ #undef HAVE_MMAP >Release-Note: >Audit-Trail: >Unformatted: