🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38359

Re: News server architecture (was: Submitting to Freenix)

#38359
From: T. William Wells
Date: Wed, 30 Jun 1999 00:00
27 lines
1777 bytes
In article <APC&1'0'7b16ece5'ac8@igc.apc.org>,
Scott Weikart  <scott@igc.apc.org> wrote:
: >In article <1rzp1jyzlk.fsf@haey.ifi.uio.no>,
: >Kjetil Torgrim Homme  <kjetilho@haey.ifi.uio.no> wrote:
: >: Exactly why is mmap() the wrong interface to use?
: >
: >Portability.
:
: Has anyone considered using the Memory Pool library in Berkeley DB?  Maybe you
: could let those folks solve the portability problems!

Unless it *permits* the use of mmap while not *requiring* it, it
doesn't address the problem.

Mmap is a nice idea, in that it allows a process access to disk
without having to spend extra CPU cycles on transferring data to
and from kernel space and possibly also saving transfers to and
from stdio buffers.

The problem with mmap is that many systems do not support it and
that many that do support it have broken implementations.

So, portable software which can profit from mmap should use it --
and have a fallback for those situations where mmap is not
desirable or usable.

Technical Details
Message-ID: <7lddu3$12d4$1@twwells.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
References: <ylzp1ns9ds.fsf_-_@windlord.stanf> <APC&1'0'7b16ece5'ac8@igc.apc.org>

Show Full Headers
Complete Article Headers
Message-ID: <7lddu3$12d4$1@twwells.com>
Subject: Re: News server architecture (was: Submitting to Freenix)
Date: Wed, 30 Jun 1999 00:00:00 +0000
From: bill@twwells.com (T. William Wells)
References: <ylzp1ns9ds.fsf_-_@windlord.stanf> <APC&1'0'7b16ece5'ac8@igc.apc.org>
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: 495643040
X-Complaints-To: abuse@twwells.com
X-Trace: twwells.com 930757382 35237 209.118.236.61 (30 Jun 1999 15:43:02 GMT)
Organization: None, Mt. Laurel, NJ
NNTP-Posting-Date: 30 Jun 1999 15:43:02 GMT
Newsgroups: news.software.nntp