Article View: news.software.nntp
Article #33587Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
From: Ragnar Lonn
Date: Mon, 07 Dec 1998 00:00
Date: Mon, 07 Dec 1998 00:00
120 lines
6799 bytes
6799 bytes
On Mon, 7 Dec 1998, Elena Samsonova wrote: > Ragnar Lonn wrote: > > With INN 1.7x our 170Mhz single-CPU Ultrasparc 1 machines > > had a > > load average of about 0.5 with 100-150 or so readers on them > > We saw the same performance when Origins had just one CPU (each :) > And we did not use actived... Since the hardware is equivalent, there > must be something in the software setup that makes all the difference, I > guess. But what? Or is it perhaps kernel tricks? Did you tune > Solaris' kernel? We tuned IRIX kernel, and that made a very big > difference. From the other Sun machines that we deploy for other > purposes, I know that Solaris kernel has some default settings that are > wrong for news environments. Tuning those improves performance > ten-fold. Hmm, wait a minute :-) How did you figure out your machines were doing better than ours? You said your load average during peak hours was somewhere between 2.5 and 3.5 with, what was it, 350 users on? Let's say it's 3.5 - that means that each user generate 0.01 load on your machine. When I look at one of our reader servers now, the load is hovering around 0.30 (the past 15 minutes average load) with 85 users on so on my machine, it appears that every user generates 0.004 or so load. Granted, load average ususally doesn't go up linearly with the number of users but in a exponential curve, but still. You have twin-CPU machines too, which should make your figures even lower. As for tuning Solaris kernel parameters I'd of course be very grateful if you found me one that would improve performance tenfold, but I don't think there are any such parameters :-) For certain applications you can tune kernel params and get huge performance gains but in most cases, there's not much to win by fiddling with them. The only thing I've changed now is the default and max number of file descriptors for processes (rlim_fd_max and rlim_fd_cur). > > I bet you could speed > > things up quite a bit and get lightning performance from your system > > by using actived! > > Sounds very tempting. :) I think I shall try it. > You should! I just noticed that actived had died on one of the reader servers and the load there was much higher than on the other machine. I wrote above that one server had 85 readers and 0.3 load average. Well, the other machine had 77 users and 1.80 load average. Just because it wasn't running actived. The only real problem with actived is that it dies now and then, at least on Solaris, so we usually setup a script that checks every minute or so to see that actived is still alive and restart it if it isn't. > The thing I'm worried about is whether actived can correctly react on > the frequent changes to the active file made by some other machine. > Have you had any problems with that? And how often do you update your > active file? (I.E. do you use MMAP_SYNC, and if so with what > frequency?) > Aha! Good that you mentioned it :-) We did indeed have problems with that. I was too stupid to try MMAP_SYNC - that would probably have solved it. I did consider defining "HAVE_MMAP 0" in config.h but I didn't do that because people keep telling me how fast memory mapping is compared to regular file I/O (have to test it sometime so I'll get convinced too). Anyhow, the problem was of course (for those who don't know about our setups) that the reader servers that were NFS-mounting ~news/db from the writer host didn't see the changes made to the active file by innd on the writer host as innd used mmap to do it. As I didn't want to disable memory mapping completely and didn't think about MMAP_SYNC I solved it by letting cron do "touch ~news/db/active" every minute on the writer host :-) Perhaps not the most elegant solution in the world but it works. > It cheats... :-o When the GROUP command is issued, INN normally goes > into the group directory and builds an overview on the spot. The patch > has it read the active file instead and return the counters found there > without ever going to the spool. The active file needs to be updated > frequently enough for this to work though. Hmm, I think my nnrpd (INN 2.2) does this already. Otherwise I wouldn't have experienced any trouble with the active file updates not reaching the reader servers that I wrote about above. > > The Netapp > > caches write operations too, and very efficiently. I really don't know if > > there is any actual performance to gain from this approach. > > I talked to several large ISPs who run their news the way you and I do, > and some of them said that they found perform better with the history db > on a local disk (like yours, I guess), and others said that it worked > better with the history db on the filer. I decided to try for the filer > and if it did not work to move it to the local disk, but since it worked > fine, I never did compare the two in my setup. That's probably a good approach. If it works, don't fix it ;) If you at some point in the future have to redesign the system anyhow you could try putting history locally on the writer host and see if it changes anything. If the OS is any good at caching writes it ought to be somewhat faster I think. > > One thing that > > is nice about it, though, is the fact that we only need to update one set > > of config files no matter how many reader servers we install. > > How is that different from having the readers mount ~news/etc and > ~news/db from the filer? That's what I do so that all the readers have > the same setup. Eh, not at all different ;) Somehow my brain decided to bring up an old reason for using NFS-mounts as opposed to local disks only and that wasn't really valid in this discussion. Sorry about that, I must have been more confused than usual when I wrote it :-) /Ragnar
Technical Details
Message-ID:
<Pine.SOL.4.00.9812071732460.17238-100000@themis>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:
<366BD658.7E91DCD9@wxs.nl>Show Full Headers
Complete Article Headers
Message-ID: <Pine.SOL.4.00.9812071732460.17238-100000@themis> Subject: Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?) Date: Mon, 07 Dec 1998 00:00:00 +0000 From: Ragnar Lonn <prl@algo.net> References: <366BD658.7E91DCD9@wxs.nl> 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: 419700122 To: Elena Samsonova <E.Samsonova@wxs.nl> X-Sender: prl@themis Content-Type: TEXT/PLAIN; charset=US-ASCII X-Complaints-To: abuse@algo.net X-Trace: cubacola.tninet.se 913052949 13026 194.213.74.36 (7 Dec 1998 17:49:09 GMT) Organization: Telenordia Mime-Version: 1.0 NNTP-Posting-Date: 7 Dec 1998 17:49:09 GMT Newsgroups: news.software.nntp