Thread View: news.software.nntp
3 messages
3 total messages
Started by Matthew Ward
Thu, 25 Jul 1996 00:00
MMAP and HP-UX
Author: Matthew Ward
Date: Thu, 25 Jul 1996 00:00
Date: Thu, 25 Jul 1996 00:00
15 lines
869 bytes
869 bytes
I finally got my sharedactive patch to run (after a weird kernel rebuild). 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 AD(thanks)VANCE
Re: MMAP and HP-UX
Author: Evan Champion
Date: Thu, 25 Jul 1996 00:00
Date: Thu, 25 Jul 1996 00:00
28 lines
1323 bytes
1323 bytes
Matthew Ward wrote: > > I finally got my sharedactive patch to run (after a weird > kernel rebuild). > > 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 > > AD(thanks)VANCE You should be OK if you're using HPUX 10. I believe HPUX 9's mmap() worked but it was very slow, but that could depend on what version of 9 you're running. Evan -- Evan Champion * Director, Network Operations mailto:evanc@synapse.net * Directeur, Exploitation du reseau http://www.synapse.net/ * Synapse Internet
Re: MMAP and HP-UX
Author: 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads