🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #69553

Re: mmap and INN question

#69553
From: Rebel Emperor
Date: Tue, 20 Jul 2004 22:50
48 lines
3434 bytes
In article <cbtha0$dpf@library1.airnews.net>, Frank Durda IV
<uhclemLOSE.jul04@nemesis.lonestar.org> wrote:
>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.

Did you ever get an answer to this?

Your sig is broken, btw.
Technical Details
Message-ID: <Iwp0x.22164$4CR.25559@once.more>
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.sjc.giganews.com!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!post01.iad01.newshosting.com!news.shared-secrets.com!not-for-mail
References: <cbtha0$dpf@library1.airnews.net>

Show Full Headers
Complete Article Headers
Message-ID: <Iwp0x.22164$4CR.25559@once.more>
Subject: Re: mmap and INN question
Date: Wed, 21 Jul 2004 08:50:13 +1000
From: new.socks@once.more (Rebel Emperor)
References: <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.sjc.giganews.com!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!post01.iad01.newshosting.com!news.shared-secrets.com!not-for-mail
Newsgroups: news.software.nntp
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2739.300
Organization: Young Miss Ellie's Geriatric Care Home For Retired Meowers
Lines: 48
X-Complaints-To: abuse@shared-secrets.com