🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #69376

mmap and INN question

#69376
From: Frank Durda IV
Date: Wed, 30 Jun 2004 04:58
43 lines
3117 bytes
I've got an old INN (1.7.x) system whose history .pag file has reached
a size where INN can't MMAP the desired amount of space, so it runs on
disk (slowly).  The mmap() call in dbz is returning ENOMEM(12).

This is a FreeBSD 4.10 system, but 4.6 does the same thing.
The .pag file in question is about 960M now (flat file 5.9GB) that it
won't work, and does work around 880M.

The system has 4GB of RAM and datasize is "unlimited" for root and news
users, according to a "ulimit" command issued in the rc start up script
right before inndstart runs.

The FreeBSD man page doesn't mention datasize as a possible cause of a
ENOMEM response from a mmap() call, but it does say that vm.max_proc_mmap
would cause this and that it should be set higher in sysctl.  I've tried
numerous settings as much as 15X higher (and even lower), and it doesn't
solve the problem.  (FreeBSD docs neglect to explain much about what this
knob is actually doing and what a sane number range would be, or if the
value can actually be set once the system is booted.)

On the off chance that the number of holes in the .pag file had something
to do with the inability to mmap - the FreeBSD docs suggest that
vm.max_proc_mmap limits the number of mmap regions a given process can
have - I used cp to build a .pag file that had no holes.  This didn't
help either.

The very curious bit is that the expire program has no trouble mmaping a
new .pag file of the same size as the one that innd won't mmap.
I've confirmed that both executables were built from the same
source tree, using the same dbz routines.

So, it appears that something that inndstart/innd does sabotages
its ability to mmap the .pag file (expire has no issues).  
Does anyone have any suggestions on what to look for, other than trimming
the history database content?


Frank Durda IV - only this address works:|"I used to take unwanted Microsoft
<uhclemLOSE.jul04%nemesis.lonestar.org>  | Compact Discs and use them as
You must remove the "LOSE" to mail me.   | drink coasters, but their CDs, like
        http://nemesis.lonestar.org      | their software, have holes in them."
Copr. 2004, ask before reprinting.
Technical Details
Message-ID: <cbtha0$dpf@library1.airnews.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!gnilink.net!news.glorb.com!news.airnews.net!cabal12.airnews.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <cbtha0$dpf@library1.airnews.net>
Subject: mmap and INN question
Date: Wed, 30 Jun 2004 04:58:40 +0000
From: Frank Durda IV <uhclemLOSE.jul04@nemesis.lonestar.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!gnilink.net!news.glorb.com!news.airnews.net!cabal12.airnews.net!not-for-mail
Newsgroups: news.software.nntp
Organization: The Big Blue Box
Lines: 43
Abuse-Reports-To: abuse at airmail.net to report improper postings
NNTP-Proxy-Relay: library1-aux.airnews.net
NNTP-Posting-Time: Tue, 29 Jun 2004 23:58:40 -0500 (CDT)
NNTP-Posting-Host: !]Mb_0d*U</[d\? (Encoded at Airnews!)