Article View: news.software.nntp
Article #3446News system performance
From: Scott Hazen Mueller
Date: Thu, 09 Mar 1995 19:14
Date: Thu, 09 Mar 1995 19:14
78 lines
4698 bytes
4698 bytes
war@wetware.com (Andy R.) writes: <..I recently purchased a second processor for my news engine and <found, much to my amazement, that performance actually slowed down by so much ian@pipex.net (Ian Phillipps) writes: >But you need to look elsewhere for the source of slowness. Iostat is the >first port of call. Most of my experience with performance analysis is on busy news servers. Where I work, nothing else gets that loaded... For a news system you need these things in roughly this order: Disk Space Memory Disk Bandwidth Network Bandwidth CPU power With full feeds passing 200MB/day, you aren't in the game with anything less than a gigabyte of disk. I remember the days when big news sites could store news for a month - that would be about 7GB today, what with NOV and the history database. If you are an NNTP site, you'll want to run INN. I have nothing against C News, and run it extensively. However, C News in an NNTP environment hits the disk a whole lot more than INN, and you really want to minimize that. In a UUCP setup INN does not hold that advantage, and C News' lower impact and better batching control puts it ahead. The prime consideration with running INN is that you want lots of memory. INN caches several things in memory, and the process can easily grow to 16MB or larger. Furthermore, the INN feed model involves trying to keep from going back to disk for data. If you've got outbound feeds, you would like to find the data blocks for each article still in buffer cache as you feed it back out. In order to do that, you need a considerable chunk of memory. Consider: if your outbound feeds lag just 5 minutes behind your inbound feeds, you'll need a bit over a half meg to cache that data. Since UNIX doesn't really want to retain blocks in buffer cache that long, you'll need much more memory than that to keep the blocks from being freed and resused. (It would actually be nice if some process could reserve the pages until all feeds had had a chance at them, but talk about a tricky programming problem!) Available disk bandwidth is function of many factors, but besides the IO rates of the drives themselves, the primary two are number of spindles and number of channels. You can completely saturate a SCSI (I, not II) bus with just two drives, and you can completely saturate two drives with just a few incoming and outgoing feeds. The problem becomes especially critical when you consider that fastrm, for example, likes to run at the full disk band- width, and is completely caapable of saturating a drive for a couple of hours each day. You definitely don't want to do this over NFS. A lot has been written recently about network bandwidth. Usenet is approaching saturation of a single 56Kb line, due the the way NNTP operates. I anticipate that someone will release a streaming (possibly compressed) news-over-TCP implementation soon, but that only delays the inevitable. Furthermore, a T1 line is only (!!) 24 times the capacity of a 56Kb line, and saturation of that in turn is only 4-5 Usenet Years away. In all of this, what I have never run out of is CPU power. My main gateway machine is a Sun Sparcstation 1+ (maybe 15 MIPS), with 48MB of RAM, 3 600MB drives (soon to be four on two channels). I run INN 1.4sec and nntplink 3.x, with four inbound and 7 outbound full feeds. My CPU idle time over the last twelve days is 46%, not too shabby. The tools I have grown to know and love for performance analysis are vmstat and iostat. Use vmstat to get an overview of activity on your system, and took look for trouble spots, for example a high 'sr' value indicates lack of memory. Use iostat to focus in on disk activity, and to analyze things like write rates versus read rates. -- Scott Hazen Mueller, guest of UUNET zorch@uunet.uu.net or uunet!zorch Moderator, news.admin.technical; submissions to natech@uunet.uu.net
Technical Details
Message-ID:
<3jnk31$ab6@ftp.UU.NET>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.technical.mbox.zip!bga.com!garcon.unicom.com!unicom.com!cs.utexas.edu!uunet!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <3jnk31$ab6@ftp.UU.NET> Subject: News system performance Date: Thu, 09 Mar 1995 19:14:41 +0000 From: zorch@uunet.uu.net (Scott Hazen Mueller) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.technical.mbox.zip!bga.com!garcon.unicom.com!unicom.com!cs.utexas.edu!uunet!not-for-mail Newsgroups: news.admin.technical,news.software.b,news.software.nntp Organization: UUNET Communications Lines: 77 Sender: zorch@ftp.UU.NET Approved: zorch@uunet.UU.NET Distribution: world NNTP-Posting-Host: ftp.uu.net