🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #15688

Re: patch for nnrpd 1.5.1 to mmap .overview files

#15688
From: Andrew A. Vasilyev
Date: Sun, 09 Mar 1997 00:00
21 lines
1347 bytes
In news.software.nntp Jan-Pieter Cornet <johnpc@xs4all.nl> wrote:
JC>Below is a patch to mmap() .overview files, and binary search them.
JC>This greatly speeds up the XOVER command (and other commands that
JC>use the .overview database), especially when you have really large
JC>groups.


  There are at least 2 problems with this patch under Solaris (and
  I'm afraid not only under this OS):

  1. 4-th argument of mmap() ('flags') should be MAP_SHARED, not 0
     as in given source, because mmap() failed with EINVAL (there is
     no flag == 0).

  2. We mmap() a region with the size of (f_size + pagesize - 1) & ~pagesize,
     but munmap() only file_size. Not so good.
________
	ANDY

Technical Details
Message-ID: <5fv1s9$8ki$1@news.demos.su>
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
References: <331EE55D.1493@cwix.net> <5fmjjf$qcg$1@news1.xs4all.nl> <5fn38s$3q0$1@news1.xs4all.nl>

Show Full Headers
Complete Article Headers
Message-ID: <5fv1s9$8ki$1@news.demos.su>
Subject: Re: patch for nnrpd 1.5.1 to mmap .overview files
Date: Sun, 09 Mar 1997 00:00:00 +0000
From: Andrew A. Vasilyev <andy@snm.demos.su>
References: <331EE55D.1493@cwix.net> <5fmjjf$qcg$1@news1.xs4all.nl> <5fn38s$3q0$1@news1.xs4all.nl>
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: 224217670
Distribution: world
Organization: Demos Online Service
Newsgroups: news.software.nntp