Thread View: news.software.nntp
10 messages
10 total messages
Started by Lyle Scully
Wed, 02 Oct 1996 00:00
Incoming feed acknowledgment speed & Backlog
Author: Lyle Scully
Date: Wed, 02 Oct 1996 00:00
Date: Wed, 02 Oct 1996 00:00
75 lines
4142 bytes
4142 bytes
In trying to track down why I consistently am at least two days behind in my news feed I got my news feed provider to run some stats from their system. The numbers they returned to me where a little scary. Need some help figuring out what is going wrong here. First some background information: OS: Solaris 2.4 Machine: Sparc 20 w/ 128mb of ram FS: Seagate 9gb SCSI drive INND Version: 1.4unoff4 For our clients the NNRP speed is very fast (both locally and over 28.8 connections). But when it comes to the feeding site the speeds are terrible. Here is the statistics they sent back to me: When IHAVE lookup transfer RCPTack #ofr #acpt AvgTime ===== ======== ======== ======== ======== ==== ===== ========= 1:02 177.38 71.81 937.61 475.50 1000 1000 1662.30 1:21 171.76 47.02 398.90 540.96 1000 1000 1158.64 1:39 174.15 13.23 461.57 444.96 1000 1000 1093.91 2:00 167.83 23.28 515.94 509.38 1000 1000 1216.43 2:20 170.99 87.41 464.04 491.15 1000 1000 1213.59 2:39 169.46 52.91 367.55 515.77 1000 1000 1105.69 3:02 168.90 52.67 421.24 753.27 1000 1000 1396.08 3:25 171.08 59.33 411.34 746.44 1000 999 1388.19 3:47 168.32 59.41 409.49 676.70 1000 1000 1313.91 4:10 170.05 55.35 272.53 787.58 1000 1000 1285.51 4:33 179.64 94.86 389.13 726.83 1000 1000 1390.47 4:48 - connection timed out while reading reply 4:48 184.68 86.31 254.48 713.81 451 450 1239.28 5:06 244.69 55.16 225.82 404.39 1000 1000 930.06 5:24 163.45 59.65 400.14 437.39 1000 1000 1060.63 5:42 168.51 75.23 428.46 408.53 1000 1000 1080.73 6:14 255.65 53.19 977.79 610.58 1000 1000 1897.21 7:22 329.67 42.54 2558.55 1127.16 1000 1000 4057.92 9:20 548.80 39.92 4949.90 1587.25 1000 1000 7125.87 10:55 582.95 38.52 2951.71 2098.24 1000 1000 5671.42 11:53 388.83 8.89 1704.16 1316.62 1000 1000 3418.50 13:26 400.58 5.06 3591.01 1592.85 1000 1000 5589.50 According to them the IHAVE should be around 100ms, RCPTack should be around 250ms, AVGtime should be around 900ms, to handle a full news feed. A trace from them to us shows times of around 120-164ms in 6 hops. I had them start up a second feed which brought me current and the primary feed continued to feed the backlog. This seemed to work well. At least from the logs I have of that period it seemed like it was working well. But I am now again at a two day backlog. Could it be that I have my feed on one SCSI drive and not split over multiple partitions/drives/controllers that is causing the poor incoming performance? What are some things I may be able to try to get the speed back up to what it should realistically be? The server has a 10mbit ethernet card in it hooked to a switchable hub so it really doesn't seem like it is a bandwidth problem (and the fact that we are using very little of our full T1 at this point). I can see it being a file system problem but I would like to explore other avenues before I had to ask for a new drive and controller. Again any help would be greatly appreciated. Thank you Lyle -- Lyle Scully VP/System Administrator AZLink Internet Services, Inc. lyle@azlink.com
Re: Incoming feed acknowledgment speed & Backlog
Author: Jesper Skriver
Date: Wed, 02 Oct 1996 00:00
Date: Wed, 02 Oct 1996 00:00
26 lines
1498 bytes
1498 bytes
lyle@azlink.com (Lyle Scully) wrote: [cut] >Could it be that I have my feed on one SCSI drive and not split over >multiple partitions/drives/controllers that is causing the poor incoming >performance? What are some things I may be able to try to get the speed >back up to what it should realistically be? The server has a 10mbit >ethernet card in it hooked to a switchable hub so it really doesn't seem >like it is a bandwidth problem (and the fact that we are using very little >of our full T1 at this point). I can see it being a file system problem but >I would like to explore other avenues before I had to ask for a new drive >and controller. It is most likely the fact that you only have one disk, I have a multistriped filesystem over 16 disks. At least you should put the history files on a seperat disk, and use more disks for the spool. regards Jesper Skriver Tele Danmark Internet
Re: Incoming feed acknowledgment speed & Backlog
Author: Jerry Aguirre
Date: Wed, 02 Oct 1996 00:00
Date: Wed, 02 Oct 1996 00:00
67 lines
3911 bytes
3911 bytes
In article <lyle-ya023180000210961146000001@news.azlink.com> lyle@azlink.com (Lyle Scully) writes: >OS: Solaris 2.4 >Machine: Sparc 20 w/ 128mb of ram >FS: Seagate 9gb SCSI drive >INND Version: 1.4unoff4 ... > 11:53 388.83 8.89 1704.16 1316.62 1000 1000 3418.50 > 13:26 400.58 5.06 3591.01 1592.85 1000 1000 5589.50 > >According to them the IHAVE should be around 100ms, RCPTack should be >around 250ms, AVGtime should be around 900ms, to handle a full news feed. A >trace from them to us shows times of around 120-164ms in 6 hops. Your probably seeing several effects here. One is the 2*RTT limit of conventional NNTP. In this case the "RTT" includes not only the transit time of the network connection but also the response time of the server, and to a lesser extent, the client. A single NNTP feed only sends one article at a time and waits for each to be processed before sending the next. You might think that the RTT of the link was the critcial factor but consider the disk issues. The "ihave" part of the transaction requires your server to check the history file. Ideally this is all done in RAM and should be fast. But as the history file grows the performance decreases and more and more it has to go to the text file. (Due to the reduction in size, or elination of, the "tag" bits.) So those disk reads also add to the response time of your server. DBZ was designed back with history files were less than 16 MB. The article transmission requires your server to "create" a new disk file. By default file creations are synchronous. That means that the file system actually goes out to update the directory and inode on disk. If the article is cross posted then links have to be made for each group. These are also synchronous so INND is blocked until they complete. Add to that INND may be competing with other accesses. If several user's are reading then INND's request may queue behind them requiring several times the delay to process. Outgoing feeds also compete for disk bandwidth. That is why your response goes down during the "peak" times. Aggrivating this is your disk configuration. News disk load is dominated by seeks due to the way it stores and accesses articles. You only have one drive to do the seeks. With multiple drives it is possible to spread the load and increase thruput. While INND is creating an article on one drive readers can be browsing another. Many people feel that 2GB drives are optimal for news. Bigger drives seem to have trouble getting the quantity of data they store in and out thru the bandwidth they provide. See if you can find someone to swap you some smaller drives for the 9G. Multiple drives will reduce your delays somewhat. Try to use "streaming NNTP" if your server and feed can support it. This extension to regular NNTP avoids the 2*RTT limit. If not see if they can split your feed. Using the size so large articles are sent via one feed while small are sent via another is a good way to do that. The -L flag and "crosspost" daemon will also reduce your delays somewhat. This moves the overhead of creating the symbolic links out of INND so more processing can be done in parallel. Jerry Aguirre
Re: Incoming feed acknowledgment speed & Backlog
Author: Larry Vaden
Date: Thu, 03 Oct 1996 00:00
Date: Thu, 03 Oct 1996 00:00
35 lines
1749 bytes
1749 bytes
In article <lyle-ya023180000210961146000001@news.azlink.com>, lyle@azlink.com says... > > >In trying to track down why I consistently am at least two days behind in >my news feed I got my news feed provider to run some stats from their >system. The numbers they returned to me where a little scary. Need some >help figuring out what is going wrong here. > >First some background information: > >OS: Solaris 2.4 >Machine: Sparc 20 w/ 128mb of ram >FS: Seagate 9gb SCSI drive >INND Version: 1.4unoff4 We have the same problem, but it was also coincident with installation of inn-1.5b1. We'll let you know what happens tomorrow when we replace a similar Seagate "Elite" 9gb drive; a drive "expert" told us today that the Elite had a 10 ms access time for reads, but 30 ms access time for writes and was designed for audio visual applications. We going with 3X 8.5 msec 7200 RPM FW drives to get more parallelism. In our case, the 9GB is used only for /news/spool. Other hot spots are on individual drives. RGDS, Larry Vaden Internet Texoma, Inc.
Re: Incoming feed acknowledgment speed & Backlog
Author: Peter Peters,AtHisHome,053-48923...
Date: Thu, 03 Oct 1996 00:00
Date: Thu, 03 Oct 1996 00:00
39 lines
2644 bytes
2644 bytes
Lyle Scully (lyle@azlink.com) wrote:
> According to them the IHAVE should be around 100ms, RCPTack should be
> around 250ms, AVGtime should be around 900ms, to handle a full news feed. A
> trace from them to us shows times of around 120-164ms in 6 hops.
When a trace gives these figures you won't be able to get the IHAVE
under that time. The only solution could be to start using streaming.
In that case you could have a number of outstanding IHAVE's which could
give you an average IAHVE time that is low enough.
> I had them start up a second feed which brought me current and the primary
> feed continued to feed the backlog. This seemed to work well. At least from
> the logs I have of that period it seemed like it was working well. But I am
> now again at a two day backlog.
> Could it be that I have my feed on one SCSI drive and not split over
> multiple partitions/drives/controllers that is causing the poor incoming
> performance? What are some things I may be able to try to get the speed
> back up to what it should realistically be? The server has a 10mbit
> ethernet card in it hooked to a switchable hub so it really doesn't seem
> like it is a bandwidth problem (and the fact that we are using very little
> of our full T1 at this point). I can see it being a file system problem but
> I would like to explore other avenues before I had to ask for a new drive
> and controller.
When a second feed will help you get rid of the backlog the bottleneck
is usually not the computer (processor or harddisk).
--
Met vriendelijke groet,
Peter Peters
+------------------------------+-----------------------------------------+
| Peter Peters | email : peters@polyware.iaf.nl |
| Boterkorfhoek 34 | voorzitter@iaf.nl |
| 7546 JA Enschede, Holland | voice : (+31) 053 478 00 22 |
+------------------------------+-----------------------------------------+
Re: Incoming feed acknowledgment speed & Backlog
Author: J. Porter Clark
Date: Tue, 08 Oct 1996 00:00
Date: Tue, 08 Oct 1996 00:00
14 lines
1046 bytes
1046 bytes
alan@papaioea.manawatu.gen.nz (Alan Brown) writes: >Additionally, if the OS supports it, removing atime updates on the spool >partitions makes a BIG difference to performance. It's not needed for the >spool at all. Did anybody find a way to do this with Solaris 2.x? -- J. Porter Clark jpc@drum.msfc.nasa.gov NASA/MSFC Flight Data Systems Branch
Re: Incoming feed acknowledgment speed & Backlog
Author: Jesper Skriver
Date: Tue, 08 Oct 1996 00:00
Date: Tue, 08 Oct 1996 00:00
17 lines
1065 bytes
1065 bytes
jpc@drum.msfc.nasa.gov (J. Porter Clark) wrote: >alan@papaioea.manawatu.gen.nz (Alan Brown) writes: > >>Additionally, if the OS supports it, removing atime updates on the spool >>partitions makes a BIG difference to performance. It's not needed for the >>spool at all. > >Did anybody find a way to do this with Solaris 2.x? Or AIX 4.1.4 ? regards Jesper Skriver
Re: Incoming feed acknowledgment speed & Backlog
Author: Alan Brown
Date: Tue, 08 Oct 1996 00:00
Date: Tue, 08 Oct 1996 00:00
37 lines
2220 bytes
2220 bytes
In article <52ur1t$879@olivea.atc.olivetti.com>, Jerry Aguirre <jerry@ATC.Olivetti.Com> wrote: >decreases and more and more it has to go to the text file. (Due to >the reduction in size, or elination of, the "tag" bits.) So those >disk reads also add to the response time of your server. DBZ was >designed back with history files were less than 16 MB. Doesn't rebuilding the .dir/.pag files with makehistory -r -s (wc -l history + padding) take care of this? >NNTP avoids the 2*RTT limit. If not see if they can split your feed. >Using the size so large articles are sent via one feed while small are >sent via another is a good way to do that. Even if streaming is supported, split feeds are a good idea anyway, as that way normal article propagation isn't impeded by being behind binaries in the outbound queue. I found that splitting things reduced disk activity by allowing nntplink to grab the articles while they were still in disk buffers. >The -L flag and "crosspost" daemon will also reduce your delays somewhat. >This moves the overhead of creating the symbolic links out of INND so >more processing can be done in parallel. Additionally, if the OS supports it, removing atime updates on the spool partitions makes a BIG difference to performance. It's not needed for the spool at all. AB -- One net to rule them all, one net to find them, one net to bring them all, using Unix to bind them.
Re: Incoming feed acknowledgment speed & Backlog
Author: Alan Brown
Date: Sun, 13 Oct 1996 00:00
Date: Sun, 13 Oct 1996 00:00
149 lines
7271 bytes
7271 bytes
In article <325ac78d.2480336@193.162.159.210>,
Jesper Skriver <jsr@teledk.net> wrote:
>jpc@drum.msfc.nasa.gov (J. Porter Clark) wrote:
>
>>Did anybody find a way to do this with Solaris 2.x?
>Or AIX 4.1.4 ?
Here's the original Linux patch to do it. It hasn't been rolled into
production kernels (yet), so Linuxers wanting to take advantage of it
will have to patch -l -p0.
Anyone else is going to have to try hacking their kernel to do the job.
I've been running this since mid June with no ill effects so far.
Date: Sun, 2 Jun 1996 09:00:59 -0500
From: coneill@PREMIER.NET
Reply-To: Linux Servers mailing list <SERVER-LINUX@NETSPACE.ORG>
To: Multiple recipients of list SERVER-LINUX <SERVER-LINUX@NETSPACE.ORG>
Subject: Ext2 speedup (No atime update)
This is an implementation of an idea that I believe was originally
mentioned on the FreeBSD hackers mailing list.
The basic idea behind this is that for some applications, there is litle
or no point in updating the access time on the file. My primary use for
this is on our news server's spool and history disks. These drives are
primarily read-intensive, with most of the files being 2-3k. As you can
understand, updating a 1k inode every time you read a 2k file isn't
really very nice if you don't have to. My tests and examination of the
news programs I'm using indicate that it isn't used for anything.
This patch adds two mount-time options, "no_atime" and "update_atime".
update_atime is the default and will update atime's normally. no_atime
will never update atime's on files, directories, and symlinks.
update_atime primarily exists for remounting the filesystem.
This patch has been in production here for almost a week now with no
problems. It's very straightforward, and should have little or no
side-effects. However, I am wondering, would this be more
useful/appropriate as an inheritable ext2 attribute?
Anyway, please send any feedback you have to me, I'd like to hear from
anyone that tries it, whether or works or doesn't :)
diff -u -r linux.orig/fs/ext2/dir.c linux/fs/ext2/dir.c
--- linux.orig/fs/ext2/dir.c Fri Dec 22 05:00:19 1995
+++ linux/fs/ext2/dir.c Thu May 30 03:04:18 1996
@@ -206,7 +206,7 @@
offset = 0;
brelse (bh);
}
- if (!IS_RDONLY(inode)) {
+ if (!IS_RDONLY(inode) && !test_opt(sb,NO_ATIME)) {
inode->i_atime = CURRENT_TIME;
inode->i_dirt = 1;
}
diff -u -r linux.orig/fs/ext2/file.c linux/fs/ext2/file.c
diff -u -r linux.orig/fs/ext2/super.c linux/fs/ext2/super.c
--- linux.orig/fs/ext2/super.c Sat May 4 02:07:07 1996
+++ linux/fs/ext2/super.c Thu May 30 15:39:58 1996
@@ -252,6 +252,11 @@
value);
return 0;
}
+ } else if (!strcmp (this_char, "no_atime")) {
+ set_opt (*mount_options, NO_ATIME);
+ }
+ else if (!strcmp (this_char, "update_atime")) {
+ clear_opt (*mount_options, NO_ATIME);
}
/* Silently ignore the quota options */
else if (!strcmp (this_char, "grpquota")
diff -u -r linux.orig/fs/ext2/symlink.c linux/fs/ext2/symlink.c
--- linux.orig/fs/ext2/symlink.c Fri Apr 12 02:33:26 1996
+++ linux/fs/ext2/symlink.c Thu May 30 15:42:14 1996
@@ -86,7 +86,7 @@
link = bh->b_data;
} else
link = (char *) inode->u.ext2_i.i_data;
- if (!IS_RDONLY(inode)) {
+ if (!IS_RDONLY(inode) && !test_opt(inode->i_sb,NO_ATIME)) {
inode->i_atime = CURRENT_TIME;
inode->i_dirt = 1;
}
@@ -127,7 +127,7 @@
i++;
put_user (c, buffer++);
}
- if (!IS_RDONLY(inode)) {
+ if (!IS_RDONLY(inode) && !test_opt(inode->i_sb,NO_ATIME)) {
inode->i_atime = CURRENT_TIME;
inode->i_dirt = 1;
}
diff -u -r linux.orig/include/linux/ext2_fs.h linux/include/linux/ext2_fs.h
--- linux.orig/include/linux/ext2_fs.h Mon May 20 12:33:56 1996
+++ linux/include/linux/ext2_fs.h Thu May 30 03:01:55 1996
@@ -296,6 +296,7 @@
#define EXT2_MOUNT_ERRORS_RO 0x0020 /* Remount fs ro on errors */
#define EXT2_MOUNT_ERRORS_PANIC 0x0040 /* Panic on errors */
#define EXT2_MOUNT_MINIX_DF 0x0080 /* Mimics the Minix statfs */
+#define EXT2_MOUNT_NO_ATIME 0x0100 /* Don't update the atime */
#define clear_opt(o, opt) o &= ~EXT2_MOUNT_##opt
#define set_opt(o, opt) o |= EXT2_MOUNT_##opt
diff -u -r linux.orig/mm/filemap.c linux/mm/filemap.c
--- linux.orig/mm/filemap.c Sun May 19 15:37:07 1996
+++ linux/mm/filemap.c Thu May 30 21:35:58 1996
@@ -719,7 +719,12 @@
filp->f_reada = 1;
if (page_cache)
free_page(page_cache);
- if (!IS_RDONLY(inode)) {
+ if (inode->i_sb->s_magic==EXT2_SUPER_MAGIC) {
+ if (!IS_RDONLY(inode) && !test_opt(inode->i_sb, NO_ATIME)) {
+ inode->i_atime = CURRENT_TIME;
+ inode->i_dirt = 1;
+ }
+ } else if (!IS_RDONLY(inode)) {
inode->i_atime = CURRENT_TIME;
inode->i_dirt = 1;
}
@@ -1097,7 +1102,12 @@
return -EACCES;
if (!inode->i_op || !inode->i_op->readpage)
return -ENOEXEC;
- if (!IS_RDONLY(inode)) {
+ if (inode->i_sb->s_magic==EXT2_SUPER_MAGIC) {
+ if (!IS_RDONLY(inode) && !test_opt(inode->i_sb, NO_ATIME)) {
+ inode->i_atime = CURRENT_TIME;
+ inode->i_dirt = 1;
+ }
+ } else if (!IS_RDONLY(inode)) {
inode->i_atime = CURRENT_TIME;
inode->i_dirt = 1;
}
-------------------------------------------------------------------------
Clayton O'Neill Business--> Premier One Inc
whatever@oneill.net clayton@premier.net
http://www.oneill.net <--Personal http://www.premier.net
--
One net to rule them all, one net to find them, one net to bring them all,
using Unix to bind them.
Re: Incoming feed acknowledgment speed & Backlog
Author: Clayton O'Neill
Date: Sun, 13 Oct 1996 00:00
Date: Sun, 13 Oct 1996 00:00
25 lines
1902 bytes
1902 bytes
On 13 Oct 1996 17:44:28 +1300, Alan Brown <alan@papaioea.manawatu.gen.nz> wrote: >Here's the original Linux patch to do it. It hasn't been rolled into >production kernels (yet), so Linuxers wanting to take advantage of it >will have to patch -l -p0. > >Anyone else is going to have to try hacking their kernel to do the job. > >I've been running this since mid June with no ill effects so far. I've been running it in production on several news servers for a while now also. Those interested may also want to take a look at my latest gross file system hack on http://www.news.erols.com/patches. Basically it's a small kernel patch and innd patch that will allow you to open files directly by inode number instead of having to open them by path/name. This basically eliminates Bill Well's observation that more i/o was being done to find the article than to read it. After implementing this innfeed went from spending 40% of it's time in open(2) to only 5-10% and my outgoing news volume almost doubled. I've been running this in production for about two weeks so there definitely is the potential for some problems.
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