Article View: news.software.nntp
Article #13222Re: Problem with INN 1.5 msync() on BSD/OS 2.1
From: The Caretaker
Date: Thu, 12 Dec 1996 00:00
Date: Thu, 12 Dec 1996 00:00
51 lines
1975 bytes
1975 bytes
Mike Pelletier (mikep@comshare.com) chatted away...
: I was encouraged to see the addition of msync() to INN 1.5, but when
: I enabled it using the two-argument version on my BSD/OS 2.1 news
: server, I got the following fatal error:
: Dec 11 16:30:07 inet-prime innd: SERVER msync failed
: /usr/news/etc/active Invalid argument
: Any idea why this might be happening, what's invalid about the arguments?
: Do I need to put in a cast for the "0" or something like that?
: Thanks for any suggestions you can offer...
: -Mike Pelletier.
For BSD/OS, someone earlier suggested that in config.data set:
MSYNC_3_ARG DO
...which I guess would work, but what I did instead in innd/icd.c change:
if (msync(ICDactpointer, 0) < 0) {
to:
if (msync(ICDactpointer, ICDactsize) < 0) {
And of course in config.data set:
ACT_STYLE MMAP
MMAP_PTR caddr_t
MMAP_SYNC DO
MSYNC_3_ARG DONT
Using MMAP for active will dramatically speedup INND over not using it. Almost
astounding, actually. This one code change will do the trick.
g'luck!
//del//
=============================================================================
Flex Information Network 808.539.3790 HAWAII Email: postmaster@aloha.com
>>> Hawaii's Very First Public Access Internet Provider, July 19, 1994 <<<
Technical Details
Message-ID:
<58ovt2$m4d$1@opihi.aloha.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<58ncoc$ph@valhalla.comshare.com>Show Full Headers
Complete Article Headers
Message-ID: <58ovt2$m4d$1@opihi.aloha.com> Subject: Re: Problem with INN 1.5 msync() on BSD/OS 2.1 Date: Thu, 12 Dec 1996 00:00:00 +0000 From: del@aloha.com (The Caretaker) References: <58ncoc$ph@valhalla.comshare.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 203696729 Distribution: inet Organization: Aloha.Com News Server Newsgroups: news.software.nntp