Article View: news.software.nntp
Article #15689Re: patch for nnrpd 1.5.1 to mmap .overview files
From: Clayton O'Neill
Date: Mon, 10 Mar 1997 00:00
Date: Mon, 10 Mar 1997 00:00
15 lines
1416 bytes
1416 bytes
On 9 Mar 1997 19:08:57 GMT, Andrew A. Vasilyev <andy@snm.demos.su> wrote: > 2. We mmap() a region with the size of (f_size + pagesize - 1) & ~pagesize, > but munmap() only file_size. Not so good. Am I missing something? Why would we even bother to try to page align the end? I don't know of any OS's that require that, and I know that Linux and Solaris don't. BTW, I've also written code to mmap the overview, but my code also has changes to overchan and expireover to generate flat indexes of of the overviews in a separate file. This way there is no linear search of the overview files, just the (simple) indexes. If anyone is interested I can generate a diff, but unfortunately it's against 1.4unoff4 since we haven't upgraded yet.
Technical Details
Message-ID:
<slrn5i7kg8.4gs.coneill@blah.erols.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:
<331EE55D.1493@cwix.net> <5fmjjf$qcg$1@news1.xs4all.nl> <5fn38s$3q0$1@news1.xs4all.nl> <5fv1s9$8ki$1@news.demos.su>Show Full Headers
Complete Article Headers
Message-ID: <slrn5i7kg8.4gs.coneill@blah.erols.com> Subject: Re: patch for nnrpd 1.5.1 to mmap .overview files Date: Mon, 10 Mar 1997 00:00:00 +0000 From: coneill@oneill.net (Clayton O'Neill) References: <331EE55D.1493@cwix.net> <5fmjjf$qcg$1@news1.xs4all.nl> <5fn38s$3q0$1@news1.xs4all.nl> <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 X-Deja-AN: 224355174 Organization: Erol's Internet Services Newsgroups: news.software.nntp