Thread View: news.software.nntp
2 messages
2 total messages
Started by Frank Durda IV
Wed, 30 Jun 2004 04:58
mmap and INN question
Author: Frank Durda IV
Date: Wed, 30 Jun 2004 04:58
Date: Wed, 30 Jun 2004 04:58
43 lines
3117 bytes
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.
Re: mmap and INN question
Author: Rebel Emperor
Date: Tue, 20 Jul 2004 22:50
Date: Tue, 20 Jul 2004 22:50
48 lines
3434 bytes
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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads