Article View: news.software.nntp
Article #9763Re: MMAP and HP-UX
From: Heath Kehoe
Date: Tue, 30 Jul 1996 00:00
Date: Tue, 30 Jul 1996 00:00
52 lines
1581 bytes
1581 bytes
Matthew Ward <mward@gte.net> writes:
>Now ... does anyone have any experience/suggestions/whatever
>on the plausibility of using MMAP in this environment?
>Environment:
> HP9000G
> HP-UX
> INN1.4unoff3, sharedactive patch
It should work ok. If you are running HP/UX 10.10, you may need this patch:
(This file is in the innd subdirectory of your inn source)
*** icd.c.orig Wed Jun 7 14:04:05 1995
--- icd.c Tue Jul 30 17:00:12 1996
***************
*** 53,58 ****
--- 53,60 ----
{
if (ICDactpointer) {
#if defined(ACT_MMAP)
+ msync(ICDactpointer, ICDactsize, MS_SYNC);
+
if (munmap(ICDactpointer, ICDactsize) < 0)
syslog(L_ERROR, "%s cant munmap %m", LogName, ICDactpath);
#else
***************
*** 369,375 ****
ICDwriteactive()
{
#if defined(ACT_MMAP)
! /* No-op. */
#else
--- 371,378 ----
ICDwriteactive()
{
#if defined(ACT_MMAP)
!
! msync(ICDactpointer, ICDactsize, MS_ASYNC);
#else
--
This only looks like a signature.
Technical Details
Message-ID:
<4tm1mf$78m@darkside.norand.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:
<31F7AADF.3901@gte.net>Show Full Headers
Complete Article Headers
Message-ID: <4tm1mf$78m@darkside.norand.com> Subject: Re: MMAP and HP-UX Date: Tue, 30 Jul 1996 00:00:00 +0000 From: hakehoe@norand.com (Heath Kehoe) References: <31F7AADF.3901@gte.net> 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: 171161872 Distribution: inet Organization: Norand Corporation Newsgroups: news.software.nntp