From owner-freebsd-current Tue Jul 28 15:58:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA10238 for freebsd-current-outgoing; Tue, 28 Jul 1998 15:58:06 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA10097 for ; Tue, 28 Jul 1998 15:57:23 -0700 (PDT) (envelope-from pb@fasterix.frmug.org) Received: (from uucp@localhost) by frmug.org (8.9.1/frmug-2.3/nospam) with UUCP id AAA14902; Wed, 29 Jul 1998 00:56:31 +0200 (CEST) (envelope-from pb@fasterix.frmug.org) Received: (from pb@localhost) by fasterix.frmug.org (8.8.8/8.8.5/pb-19970302) id AAA17147; Wed, 29 Jul 1998 00:55:53 +0200 (CEST) Message-ID: <19980729005552.A16035@fasterix.frmug.fr.net> Date: Wed, 29 Jul 1998 00:55:52 +0200 From: Pierre Beyssac To: Terry Lambert , current@FreeBSD.ORG Subject: Re: Diagnostic for those with MMAP problems... References: <199807280048.RAA16684@usr01.primenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.92.8i In-Reply-To: <199807280048.RAA16684@usr01.primenet.com>; from Terry Lambert on Tue, Jul 28, 1998 at 12:48:24AM +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jul 28, 1998 at 12:48:24AM +0000, Terry Lambert wrote: > the first is probably impractical for those repeating the glitch > using INN, but it's worth mentioning. I don't care: a good news spool is a trashed news spool :-) I haven't yet tried the NO_SWAPPING test you suggest; I'm reporting on the following I just tried: > 2) Rebuild the software using MMAP; add "PROT_WRITE" to > the protection request. Apparently INN 2.0 does this already for the active file (but, interestingly enough, not for the dbz file when it's open read-only). >From innd/icd.c: ICDactpointer = mmap((caddr_t)0, ICDactsize, PROT_READ|PROT_WRITE, MAP__ARG, ICDactfd, (OFFSET_T)0); I'm going to try to define MMAP_SYNC to DO to enable the following code in the same file: if (msync(ICDactpointer, ICDactsize, MS_ASYNC) < 0) { syslog(L_FATAL, "%s msync failed %s %m", LogName, ICDactpath); exit(1); } I'll post the results here if anything interesting comes up. -- Pierre Beyssac pb@fasterix.frmug.org pb@fasterix.freenix.org {Free,Net,Open}BSD, Linux : il y a moins bien, mais c'est plus cher Free domains: http://www.eu.org/ or mail dns-manager@EU.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message