Article View: news.software.nntp
Article #40380Re: INN maxed? Time to add a Diablo router?
From: Russ Allbery
Date: Sat, 02 Oct 1999 00:00
Date: Sat, 02 Oct 1999 00:00
107 lines
6816 bytes
6816 bytes
Jon Mansey <foo@blah.com> writes: > INND timer: > Code region Time Pct Invoked Min(ms) Avg(ms) Max(ms) > article cancel 00:40:43.475 2.8% 64142 10.264 38.095 95.060 > article control 00:39:58.340 2.8% 62750 10.291 38.221 96.357 > article link 00:00:02.422 0.0% 196791 0.000 0.012 0.039 > article write 09:30:23.838 39.7% 748448 29.396 45.726 72.454 > history grep 00:04:41.712 0.3% 37983 0.000 7.417 17.075 > history lookup 01:08:42.681 4.8% 13672409 0.104 0.302 1.850 > history sync 00:00:28.536 0.0% 93569 0.046 0.305 3.489 > history write 03:08:59.200 13.2% 933987 7.011 12.141 17.878 > idle 01:49:34.946 7.6% 8045117 0.116 0.817 2.118 > perl filter 04:37:14.726 19.3% 906176 9.777 18.357 34.797 > site send 00:22:03.499 1.5% 2245344 0.305 0.589 1.220 > TOTAL: 23:56:58 22:02:53.375 92.1% - - - - > How do I interpret this? I see it spends most of the time writing, but > that would be normal, no? Yes and no. It's normal, but the time is high. For comparison, here are the statistics for nntp.stanford.edu, my reader system (INN 1.7.2). INND timer : Code region Time Pct Invoked Each idle 18:07:32.297 75.7% 8132785 8.023 article write 03:48:53.861 15.9% 255830 53.684 article control 00:07:02.085 0.5% 20650 20.440 article cancel 00:00:42.520 0.0% 1130 37.628 crosslink 00:00:00.772 0.0% 34144 0.023 site send 00:03:45.067 0.3% 494247 0.455 history write 00:01:31.144 0.1% 266795 0.342 history sync 00:00:12.346 0.0% 51248 0.241 history lookup 00:37:06.038 2.6% 269527 8.259 history grep 00:00:52.619 0.1% 10441 5.040 Here are the statistics for newsfeed.stanford.edu, my primary feed machine, running INN 2.2.1 (roughly): INND timer: Code region Time Pct Invoked Min(ms) Avg(ms) Max(ms) article cancel 00:01:28.393 0.1% 21492 0.204 4.113 17.278 article control 00:01:22.948 0.1% 20727 0.208 4.002 16.966 article link 00:00:00.000 0.0% 0 0.000 0.000 0.000 article write 00:12:32.090 0.9% 256299 0.762 2.934 9.001 history grep 00:00:18.188 0.0% 15686 0.019 1.160 6.651 history lookup 00:22:50.941 1.6% 7643865 0.005 0.179 1.281 history sync 00:00:08.292 0.0% 78281 0.066 0.106 0.316 history write 00:20:34.648 1.4% 781144 0.189 1.581 7.762 idle 19:33:22.395 81.5% 23857884 1.945 2.951 4.957 perl filter 00:39:30.217 2.7% 773005 1.879 3.066 6.690 site send 00:11:55.754 0.8% 488190 1.110 1.466 2.369 TOTAL: 24:00:01.491 21:24:03.866 89.2% - - - - There are a few things to notice from this. First, I'm taking about a third the number of articles as you are, which is about what I'd expect given that you're trying to take a completely full feed. If nntp were taking three times as many articles as it is, it would be pushing the performance bottlenecks too. However, note that even if newsfeed were taking three times as many articles as it's taking now, it wouldn't even be breathing hard. There are a few reasons for that. The primary one is that nntp is using traditional spool, whereas newsfeed is using CNFS. CNFS is *way* faster for writing. Judging from your article write times, I'd be very surprised if you're using CNFS. Given that you're using 2.2.1, the difficulty with CNFS is that unified overview performance is rather slow. However, with your reader load, that may not actually be a problem. I don't know if DNEWS readers even care about overview, for example; I can think of several different ways of implementing a suck model of feed, several of which wouldn't use overview at all. CNFS would be an immediate performance win for you. The real long term solution for your difficulties if you didn't want to take the full plunge to CNFS, were you to stay with INN (and note that I'm not necessarily advocating that -- I've only ever used INN, so I'm not the person to ask for comparisons between servers), would be to switch to a mixed storage model, which is possible under the current unstable development version of INN (which is what we all call INN 2.3). INN 2.3 also has a much faster overview system. Of course, the drawback is that it's unstable development code and is currently somewhat underdocumented (although Kondou's done a bunch of work to try to fix that). Under INN 2.3, if you wanted to keep traditional spool for non-binary newsgroups, you could still put all the binary newsgroups in CNFS. I think that at this point you really don't ever want to put binary groups in anything other than CNFS or the like; they're just too slow to write otherwise and you run too much of a danger of running out of disk space. The other thing that you can look at is your I/O subsystem and see about increasing its speed. The other reason why newsfeed is so much faster is because it has a *much* faster I/O subsystem than my current reader machine, including a very large write-back disk cache. Write-back cache, in my experience, helps dramatically in lowering write times for a news server. But that's somewhat harder to fix and potentially more expensive. I would expect Diablo to be faster for you since (although I haven't used Diablo) I think it's doing something CNFS-like for article storage. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<yl3dvtnjuv.fsf@windlord.stanford.edu>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:
<foo-0210991412200001@192.168.2.3> <yl3dvtp0xb.fsf@windlord.stanford.edu> <foo-0210992103530001@192.168.2.3>Show Full Headers
Complete Article Headers
Message-ID: <yl3dvtnjuv.fsf@windlord.stanford.edu> Subject: Re: INN maxed? Time to add a Diablo router? Date: Sat, 02 Oct 1999 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <foo-0210991412200001@192.168.2.3> <yl3dvtp0xb.fsf@windlord.stanford.edu> <foo-0210992103530001@192.168.2.3> 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: 532206142 Organization: The Eyrie Newsgroups: news.software.nntp