Article View: news.software.nntp
Article #15628Re: patch for nnrpd 1.5.1 to mmap .overview files
From: Jeff Garzik
Date: Fri, 07 Mar 1997 00:00
Date: Fri, 07 Mar 1997 00:00
39 lines
2128 bytes
2128 bytes
Chris Bellomy wrote: > Jan-Pieter Cornet (johnpc@xs4all.nl) wrote: > : Below is a patch to mmap() .overview files, and binary search them. > I tried this on a high-traffic leaf node server running Solaris > 2.5.1 (and therefore with a good mmap()). I setup the patched > nnrpd to be called by inetd on port 120, and did some informal > testing myself. The unpatched version (on 119) consistently > out-performed the patched one (on 120), sometimes dramatically. > Is there something I'm missing here? It seems to me that you are not quantitatively comparing the two. In order for this patch to be of benefit, multiple users need to be MMAPing the same large .overview file(s). You said you were on a high-traffic leaf server. Installed the MMAP patch for a couple of days, and record memory consumption, disk I/O, and load avg every 5 minutes. Then replace the unpatched version and record system stats again. Post the results and impress everyone here :) Also, if MMAP is a win only on large .overview files, would it make sense to change the patch so that an intelligent decision is made to MMAP or not based on .overview size? If you don't want to stat the .overview each time, you could just check the active file entry and guess based on the number of articles. Jeff -- Galbraith's Law of Human Nature: Faced with the choice between changing one's mind and proving that there is no need to do so, almost everybody gets busy on the proof.
Technical Details
Message-ID:
<331FD3B5.77FD185D@spinne.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:
<5fmjjf$qcg$1@news1.xs4all.nl> <5fn38s$3q0$1@news1.xs4all.nl> <5fnhmt$88h@excalibur.flash.net>Show Full Headers
Complete Article Headers
Message-ID: <331FD3B5.77FD185D@spinne.com> Subject: Re: patch for nnrpd 1.5.1 to mmap .overview files Date: Fri, 07 Mar 1997 00:00:00 +0000 From: Jeff Garzik <jeff.garzik@spinne.com> References: <5fmjjf$qcg$1@news1.xs4all.nl> <5fn38s$3q0$1@news1.xs4all.nl> <5fnhmt$88h@excalibur.flash.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.mbox.zip!not-for-mail X-Deja-AN: 223737183 Organization: Spinne http://spinne.com Newsgroups: news.software.nntp