Thread View: news.software.nntp
29 messages
29 total messages
Started by ManChul Park
Thu, 01 May 1997 00:00
Inn Performance Questions...
Author: ManChul Park
Date: Thu, 01 May 1997 00:00
Date: Thu, 01 May 1997 00:00
37 lines
1934 bytes
1934 bytes
Hello, Since, I'm always looking to improve our INND's performance. I just had some quick questions... Using innreport and innd timer patch, the following is being reported to me. (This stat looks similar to this everyday) Code region Time Pct Invoked Each idle 00:28:51.605 2.0% 227792 7.602 article write 04:28:05.707 18.6% 274938 58.507 article control 00:43:22.031 3.0% 37509 69.371 article cancel 00:00:22.112 0.0% 1319 16.764 crosslink 00:00:12.160 0.0% 171167 0.071 site send 00:02:48.513 0.2% 3024254 0.056 history write 00:09:41.751 0.7% 467254 1.245 history sync 00:00:38.060 0.0% 61746 0.616 history lookup 09:43:28.525 40.5% 4343348 8.060 history grep 00:00:09.093 0.0% 32104 0.283 I was wondering if there is any way to improve on the history lookup time. Since, it is being invoked so many times, if I improve on it a little it will make a significant difference. Also, I had compiled ACT_STYLE with the option of READ. Should I recompile this with MMAP? How much will this improve my Innd's performance? By the way, this is just a feeder machine. (Inn1.5.1, Innfeed, Solaris 2.5.1) Finally, I get a really high spike on disk usage every 30 or 45 seconds... I've been playing with autoup and fs_flush to get rid of this problem. What would be the best setting for this? (Last adjusting took 20ms off my average article write time). ManChul Park
Re: Inn Performance Questions...
Author: Clayton O'Neill
Date: Thu, 01 May 1997 00:00
Date: Thu, 01 May 1997 00:00
177 lines
5849 bytes
5849 bytes
On 1 May 1997 15:09:39 GMT, ManChul Park <mpark@hurl.ns.gatech.edu> wrote:
>
>Hello,
> Since, I'm always looking to improve our INND's performance. I just
>had some quick questions...
>
>Using innreport and innd timer patch, the following is being reported
>to me. (This stat looks similar to this everyday)
>
>Code region Time Pct Invoked Each
>
>idle 00:28:51.605 2.0% 227792 7.602
>article write 04:28:05.707 18.6% 274938 58.507
>article control 00:43:22.031 3.0% 37509 69.371
>article cancel 00:00:22.112 0.0% 1319 16.764
>crosslink 00:00:12.160 0.0% 171167 0.071
>site send 00:02:48.513 0.2% 3024254 0.056
>history write 00:09:41.751 0.7% 467254 1.245
>history sync 00:00:38.060 0.0% 61746 0.616
>history lookup 09:43:28.525 40.5% 4343348 8.060
>history grep 00:00:09.093 0.0% 32104 0.283
>
>I was wondering if there is any way to improve on the history lookup time.
>Since, it is being invoked so many times, if I improve on it a little
>it will make a significant difference.
Try the attached patch. It adds a history lookup cache. Very simple
implementation, but I get about 80-85% hit rates w/ about 100-150 incoming
connections. You may want to tune down the number of cached lookups at the
top of this patch. I have it set for 64k lookups, but you may not want that
many because of memory usage.
>Also, I had compiled ACT_STYLE with the option of READ. Should I recompile
>this with MMAP? How much will this improve my Innd's performance? By the way,
>this is just a feeder machine. (Inn1.5.1, Innfeed, Solaris 2.5.1)
I see almost no difference between MMAP and READ, but I've also got
ICD_SYNC_COUNT tuned up really high. If you don't feel comfortable w/that
then you will probably get better performance from MMAP.
Index: his.c
===================================================================
RCS file: /usr/local/cvsroot/isc/inn/innd/his.c,v
retrieving revision 1.1.1.2
retrieving revision 1.2
diff -u -r1.1.1.2 -r1.2
--- his.c 1997/04/13 05:12:31 1.1.1.2
+++ his.c 1997/04/29 17:32:53 1.2
@@ -1,4 +1,4 @@
-/* $Revision: 1.1.1.2 $
+/* $Revision: 1.2 $
**
** History file routines.
*/
@@ -9,13 +9,19 @@
#include "innd.h"
#include "dbz.h"
+#define HISCACHESIZE (64*1024)
-STATIC char HIShistpath[] = _PATH_HISTORY;
-STATIC FILE *HISwritefp;
-STATIC int HISreadfd;
-STATIC int HISdirty;
-STATIC int HISincore = INND_DBZINCORE;
+typedef struct {
+ char *MessageID;
+ BOOL Found;
+} _HIScache;
+STATIC char HIShistpath[] = _PATH_HISTORY;
+STATIC FILE *HISwritefp;
+STATIC int HISreadfd;
+STATIC int HISdirty;
+STATIC int HISincore = INND_DBZINCORE;
+STATIC _HIScache HIScache[HISCACHESIZE];
/*
** Set up the history files.
@@ -46,6 +52,7 @@
exit(1);
}
}
+ memset((void *)&HIScache, '\0', sizeof(HIScache));
}
@@ -198,9 +205,18 @@
{
datum key;
datum val;
+ long hash;
+ hash = dbzhash(MessageID, strlen(MessageID)) % HISCACHESIZE;
+ if (HIScache[hash].MessageID && !strcmp(MessageID, HIScache[hash].MessageID)) {
+ return HIScache[hash].Found;
+ }
HISsetkey(MessageID, &key);
val = dbzfetch(key);
+ if (HIScache[hash].MessageID != NULL)
+ DISPOSE(HIScache[hash].MessageID);
+ HIScache[hash].MessageID = strdup(MessageID);
+ HIScache[hash].Found = (char)(val.dptr != NULL);
return val.dptr != NULL;
}
@@ -278,7 +294,16 @@
IOError("history database", i);
return FALSE;
}
-
+ i = dbzhash(Data->MessageID, Data->MessageIDLength) % HISCACHESIZE;
+ if (HIScache[i].MessageID && !strcmp(Data->MessageID, HIScache[i].MessageID)) {
+ HIScache[i].Found = TRUE;
+ } else {
+ if (HIScache[i].MessageID)
+ DISPOSE(HIScache[i].MessageID);
+ HIScache[i].MessageID = strdup(Data->MessageID);
+ HIScache[i].Found = TRUE;
+ }
+
if (++HISdirty >= ICD_SYNC_COUNT)
HISsync();
return TRUE;
Index: dbz/dbz.h
===================================================================
RCS file: /usr/local/cvsroot/isc/inn/dbz/dbz.h,v
retrieving revision 1.1.1.2
retrieving revision 1.2
diff -u -r1.1.1.2 -r1.2
--- dbz.h 1997/04/13 05:12:27 1.1.1.2
+++ dbz.h 1997/04/22 02:20:36 1.2
@@ -24,6 +24,7 @@
extern int dbzcancel();
extern int dbzdebug();
extern int dbzwritethrough();
+extern long dbzhash();
/*
* In principle we could handle unlimited-length keys by operating a chunk
--- /usr/local/news/src/inn/lib/dbz.c Wed Apr 30 18:08:50 1997
+++ dbz.c Mon Apr 21 22:15:59 1997
@@ -355,7 +355,6 @@
extern void CloseOnExec();
/* misc. forwards */
-static long hash();
static void crcinit();
static char *cipoint();
static char *mapcase();
@@ -1426,7 +1425,7 @@
{
register long h;
- h = hash(kp->dptr, kp->dsize);
+ h = dbzhash(kp->dptr, kp->dsize);
if (osp != FRESH && osp->hash == h) {
if (sp != osp)
*sp = *osp;
@@ -1716,10 +1715,10 @@
}
/*
- - hash - Honeyman's nice hashing function
+ - dbzhash - Honeyman's nice hashing function
*/
-static long
-hash(name, size)
+long
+dbzhash(name, size)
register char *name;
register int size;
{
Re: Inn Performance Questions...
Author: Marcus Needham
Date: Thu, 01 May 1997 00:00
Date: Thu, 01 May 1997 00:00
33 lines
1992 bytes
1992 bytes
In article <5kb28m$hsu$1@stargate.stdio.com>, risner@stdio.com wrote: >ManChul Park <mpark@hurl.ns.gatech.edu> wrote: >> idle 00:28:51.605 2.0% 227792 7.602 >> article write 04:28:05.707 18.6% 274938 58.507 >> history write 00:09:41.751 0.7% 467254 1.245 >> history lookup 09:43:28.525 40.5% 4343348 8.060 > >idle 09:28:34.413 39.7% 2949247 11.567 >article write 06:22:47.013 26.7% 216368 106.148 >history write 00:51:13.596 3.6% 219112 14.028 >history lookup 02:36:37.532 10.9% 2240190 4.195 > >I use FreeBSD with 128 meg ram and ACT_STYLE to READ. > >The lookup this last time is the highest it has ever been (usually >hovers around 2 to 2.5ms) > >Your problem is due to idle being 2.0% >Either increase your buffers NBUF's or something... Um, with all due respect, isn't that circular logic? If ManChul had your 10.9% history lookup time instead of his 40.5%, his idle time would be a healthy ~33% (which considering he spooled ~274938 articles while you took ~216368 is pretty good) and he would not be asking the question, which remains: how can he take it from 40.5 to 10.9. Buffers may be the answer of course... ;-) /// Marcus Needham /// marcus@theriver.com \\\ VP & Webmaster \\\ The River, Tucson AZ USA, http://www.theriver.com/
Re: Inn Performance Questions...
Author: Marcus Needham
Date: Thu, 01 May 1997 00:00
Date: Thu, 01 May 1997 00:00
33 lines
2214 bytes
2214 bytes
In article <5kb28m$hsu$1@stargate.stdio.com>, risner@stdio.com wrote: >ManChul Park <mpark@hurl.ns.gatech.edu> wrote: >> idle 00:28:51.605 2.0% 227792 7.602 >> article write 04:28:05.707 18.6% 274938 58.507 >> history write 00:09:41.751 0.7% 467254 1.245 >> history lookup 09:43:28.525 40.5% 4343348 8.060 > >idle 09:28:34.413 39.7% 2949247 11.567 >article write 06:22:47.013 26.7% 216368 106.148 >history write 00:51:13.596 3.6% 219112 14.028 >history lookup 02:36:37.532 10.9% 2240190 4.195 > >I use FreeBSD with 128 meg ram and ACT_STYLE to READ. > >The lookup this last time is the highest it has ever been (usually >hovers around 2 to 2.5ms) > >Your problem is due to idle being 2.0% >Either increase your buffers NBUF's or something... Um, with all due respect, isn't that circular logic? If ManChul had your 10.9% history lookup time instead of his 40.5%, his idle time would be a healthy ~33% (which considering he spooled ~274938 articles while you took ~216368 is pretty good) and he would not be asking the question, which remains: how can he take it from 40.5 to 10.9. Buffers may be the answer of course... ;-) /// Marcus Needham /// marcus@theriver.com \\\ VP & Webmaster \\\ The River, Tucson AZ USA, http://www.theriver.com/
Re: Inn Performance Questions...
Author: risner
Date: Thu, 01 May 1997 00:00
Date: Thu, 01 May 1997 00:00
48 lines
2506 bytes
2506 bytes
ManChul Park <mpark@hurl.ns.gatech.edu> wrote: > Code region Time Pct Invoked Each > idle 00:28:51.605 2.0% 227792 7.602 > article write 04:28:05.707 18.6% 274938 58.507 > article control 00:43:22.031 3.0% 37509 69.371 > article cancel 00:00:22.112 0.0% 1319 16.764 > crosslink 00:00:12.160 0.0% 171167 0.071 > site send 00:02:48.513 0.2% 3024254 0.056 > history write 00:09:41.751 0.7% 467254 1.245 > history sync 00:00:38.060 0.0% 61746 0.616 > history lookup 09:43:28.525 40.5% 4343348 8.060 > history grep 00:00:09.093 0.0% 32104 0.283 > I was wondering if there is any way to improve on the history lookup time. > Since, it is being invoked so many times, if I improve on it a little > it will make a significant difference. > Also, I had compiled ACT_STYLE with the option of READ. Should I recompile > this with MMAP? How much will this improve my Innd's performance? By the way, > this is just a feeder machine. (Inn1.5.1, Innfeed, Solaris 2.5.1) Code region Time Pct Invoked Each idle 09:28:34.413 39.7% 2949247 11.567 article write 06:22:47.013 26.7% 216368 106.148 article control 00:45:52.688 3.2% 28086 98.009 article cancel 00:00:11.926 0.0% 428 27.864 crosslink 02:26:39.016 10.2% 162306 54.213 site send 00:00:25.664 0.0% 598912 0.043 history write 00:51:13.596 3.6% 219112 14.028 history sync 00:00:13.907 0.0% 43314 0.321 history lookup 02:36:37.532 10.9% 2240190 4.195 history grep 00:00:13.513 0.0% 25697 0.526 I use FreeBSD with 128 meg ram and ACT_STYLE to READ. The lookup this last time is the highest it has ever been (usually hovers around 2 to 2.5ms) Your problem is due to idle being 2.0% Either increase your buffers NBUF's or something... Risner
Re: Inn Performance Questions...
Author: Marcus Needham
Date: Thu, 01 May 1997 00:00
Date: Thu, 01 May 1997 00:00
36 lines
2295 bytes
2295 bytes
In article <5kabnj$hn8@smash.gatech.edu>, ManChul Park <mpark@hurl.ns.gatech.edu> wrote: >Code region Time Pct Invoked Each > >idle 00:28:51.605 2.0% 227792 7.602 >article write 04:28:05.707 18.6% 274938 58.507 >article control 00:43:22.031 3.0% 37509 69.371 >article cancel 00:00:22.112 0.0% 1319 16.764 >crosslink 00:00:12.160 0.0% 171167 0.071 >site send 00:02:48.513 0.2% 3024254 0.056 >history write 00:09:41.751 0.7% 467254 1.245 >history sync 00:00:38.060 0.0% 61746 0.616 >history lookup 09:43:28.525 40.5% 4343348 8.060 >history grep 00:00:09.093 0.0% 32104 0.283 > >I was wondering if there is any way to improve on the history lookup time. >Since, it is being invoked so many times, if I improve on it a little >it will make a significant difference. I have observed that reducing the /remember/ value in expire to keep the history database smaller helps, but I am not sure how low one can take this down (on a shared feeder/reader machine). man expire.ctl indicates that history entries are not expired while the article itself remains on the spool, but from a practical standpoint this is not helpful. My question though is how are your "history write" times so good? I never get anywhere near 1.2ms/ write, despite having /var/news/etc on a seperate 7200 rpm spindle on a seperate SCSI channel from the spool. What are other people seeing as their typical history write times? /// Marcus Needham /// marcus@theriver.com \\\ VP & Webmaster \\\ The River, Tucson AZ USA, http://www.theriver.com/
Re: Inn Performance Questions...
Author: Jerry Aguirre
Date: Thu, 01 May 1997 00:00
Date: Thu, 01 May 1997 00:00
42 lines
2706 bytes
2706 bytes
In article <5kadtn$e6b$1@news.theriver.com>, Marcus Needham <marcus@theriver.com> wrote: >In article <5kabnj$hn8@smash.gatech.edu>, ManChul Park <mpark@hurl.ns.gatech.edu> wrote: >>I was wondering if there is any way to improve on the history lookup time. >>Since, it is being invoked so many times, if I improve on it a little >>it will make a significant difference. > >I have observed that reducing the /remember/ value in expire to keep >the history database smaller helps, but I am not sure how low one can >take this down (on a shared feeder/reader machine). man expire.ctl >indicates that history entries are not expired while the article itself >remains on the spool, but from a practical standpoint this is not >helpful. The /remember/ value is related to the "cutoff" value. Make the cutoff too small and slowly propigated articles will be dropped as too old. Make the /remember/ value too large and your history file gets bigger using disk space and reducing performance. As the history file crosses each power of 2 in size the performance takes a hit. Make the /remember/ value less than the cutoff value and you introduce the risk of geting duplicates. If an article is expired, removed from the history file, and then you get a duplicate copy from a slow (or misconfigured) feed then your system will gladly accept it. If the cutoff value is >= to the /remember/ value then articles that have been removed from the history file will be "too old". Thus no window for duplicates. If you don't think that late duplicates can happen then would you be interested in buying a bridge? :-) It also helps to occasionally rebuild your DBZ. Not the entire history! Just the history.pag file. Expire does not recalculate the appropriate tag size but makehistory will. The man page for makehistory has the proceedure for rebuilding the DBZ. It typically takes 10 minutes or so. I have it done in rc.news on every news restart. Without the correct tag size there are extra reads of the history.txt file. Having enough RAM to hold the history file will also help.
Re: Inn Performance Questions...
Author: ManChul Park
Date: Thu, 01 May 1997 00:00
Date: Thu, 01 May 1997 00:00
11 lines
1075 bytes
1075 bytes
Jerry Aguirre <jerry@rigel.whowhere.com> wrote: : Having enough RAM to hold the history file will also help. Assuming that I have enough memory, how do I let my RAM hold the whole history file - what would be the best way? ManChuL Park
Re: Inn Performance Questions...
Author: Darrell Fuhriman
Date: Thu, 01 May 1997 00:00
Date: Thu, 01 May 1997 00:00
22 lines
1320 bytes
1320 bytes
ManChul Park <mpark@hurl.ns.gatech.edu> writes: > Jerry Aguirre <jerry@rigel.whowhere.com> wrote: > > : Having enough RAM to hold the history file will also help. > > Assuming that I have enough memory, how do I let my RAM hold the whole > history file - what would be the best way? Depends on your operating system. You can do it with a ram disk under some, or tmpfs on others. You just have to be sure that you copy the history file to disk on a regular basis, or you'll have problems if/when you crash. I'm going to be doing this when I get some more ram, and I do know other people that do it also. Darrell
Re: Inn Performance Questions...
Author: Darrell Fuhriman
Date: Thu, 01 May 1997 00:00
Date: Thu, 01 May 1997 00:00
22 lines
1560 bytes
1560 bytes
ManChul Park <mpark@hurl.ns.gatech.edu> writes: > Jerry Aguirre <jerry@rigel.whowhere.com> wrote: > > : Having enough RAM to hold the history file will also help. > > Assuming that I have enough memory, how do I let my RAM hold the whole > history file - what would be the best way? Depends on your operating system. You can do it with a ram disk under some, or tmpfs on others. You just have to be sure that you copy the history file to disk on a regular basis, or you'll have problems if/when you crash. I'm going to be doing this when I get some more ram, and I do know other people that do it also. Darrell
Re: Inn Performance Questions...
Author: ManChul Park
Date: Thu, 01 May 1997 00:00
Date: Thu, 01 May 1997 00:00
24 lines
1562 bytes
1562 bytes
Marcus Needham <marcus@theriver.com> wrote: : I have observed that reducing the /remember/ value in expire to keep : the history database smaller helps, but I am not sure how low one can : take this down (on a shared feeder/reader machine). man expire.ctl : indicates that history entries are not expired while the article itself : remains on the spool, but from a practical standpoint this is not : helpful. : My question though is how are your "history write" times so good? : I never get anywhere near 1.2ms/ write, despite having /var/news/etc : on a seperate 7200 rpm spindle on a seperate SCSI channel from the : spool. What are other people seeing as their typical history write : times? Hmmm... Since this machine is a dedicated feeder, I have my /remember/ value down to 10 and reject any articles older than 10 days old. So, my history file is quite small. Also, my /usr/local/news/ is on a its own separate spindle too. ManChul Park
Re: Inn Performance Questions...
Author: risner
Date: Thu, 01 May 1997 00:00
Date: Thu, 01 May 1997 00:00
48 lines
2286 bytes
2286 bytes
ManChul Park <mpark@hurl.ns.gatech.edu> wrote: > Code region Time Pct Invoked Each > idle 00:28:51.605 2.0% 227792 7.602 > article write 04:28:05.707 18.6% 274938 58.507 > article control 00:43:22.031 3.0% 37509 69.371 > article cancel 00:00:22.112 0.0% 1319 16.764 > crosslink 00:00:12.160 0.0% 171167 0.071 > site send 00:02:48.513 0.2% 3024254 0.056 > history write 00:09:41.751 0.7% 467254 1.245 > history sync 00:00:38.060 0.0% 61746 0.616 > history lookup 09:43:28.525 40.5% 4343348 8.060 > history grep 00:00:09.093 0.0% 32104 0.283 > I was wondering if there is any way to improve on the history lookup time. > Since, it is being invoked so many times, if I improve on it a little > it will make a significant difference. > Also, I had compiled ACT_STYLE with the option of READ. Should I recompile > this with MMAP? How much will this improve my Innd's performance? By the way, > this is just a feeder machine. (Inn1.5.1, Innfeed, Solaris 2.5.1) Code region Time Pct Invoked Each idle 09:28:34.413 39.7% 2949247 11.567 article write 06:22:47.013 26.7% 216368 106.148 article control 00:45:52.688 3.2% 28086 98.009 article cancel 00:00:11.926 0.0% 428 27.864 crosslink 02:26:39.016 10.2% 162306 54.213 site send 00:00:25.664 0.0% 598912 0.043 history write 00:51:13.596 3.6% 219112 14.028 history sync 00:00:13.907 0.0% 43314 0.321 history lookup 02:36:37.532 10.9% 2240190 4.195 history grep 00:00:13.513 0.0% 25697 0.526 I use FreeBSD with 128 meg ram and ACT_STYLE to READ. The lookup this last time is the highest it has ever been (usually hovers around 2 to 2.5ms) Your problem is due to idle being 2.0% Either increase your buffers NBUF's or something... Risner
Re: Inn Performance Questions...
Author: ManChul Park
Date: Thu, 01 May 1997 00:00
Date: Thu, 01 May 1997 00:00
11 lines
869 bytes
869 bytes
Jerry Aguirre <jerry@rigel.whowhere.com> wrote: : Having enough RAM to hold the history file will also help. Assuming that I have enough memory, how do I let my RAM hold the whole history file - what would be the best way? ManChuL Park
Re: Inn Performance Questions...
Author: Per Hedeland
Date: Fri, 02 May 1997 00:00
Date: Fri, 02 May 1997 00:00
18 lines
1320 bytes
1320 bytes
In article <5kabnj$hn8@smash.gatech.edu> ManChul Park <mpark@hurl.ns.gatech.edu> writes: >I was wondering if there is any way to improve on the history lookup time. >Since, it is being invoked so many times, if I improve on it a little >it will make a significant difference. Are you using -DMMAP in DBZCFLAGS? Not sure if it would make your numbers any better though, I use it and have about the same ratio of time per article write vs history lookup (only mine are about three times worse than yours:-). The other option is of course to reduce the number of lookups, i.e. drop some of your incoming feeds - being offered each article 16 times on average is perhaps overkill... --Per Hedeland per@erix.ericsson.se
Re: Inn Performance Questions...
Author: Jeff Garzik
Date: Fri, 02 May 1997 00:00
Date: Fri, 02 May 1997 00:00
18 lines
1195 bytes
1195 bytes
ManChul Park wrote: > Jerry Aguirre <jerry@rigel.whowhere.com> wrote: > > : Having enough RAM to hold the history file will also help. > > Assuming that I have enough memory, how do I let my RAM hold the whole > history file - what would be the best way? Put it on a RAM disk and point _PATH_HISTORY in config.data to it. Also, make sure you compiled with DBZCFLAGS set to -DMMAP. You should definitely be using MMAP for DBZ operations, as that directly affects history operations. Jeff
Re: Inn Performance Questions...
Author: Per Hedeland
Date: Fri, 02 May 1997 00:00
Date: Fri, 02 May 1997 00:00
17 lines
1605 bytes
1605 bytes
In article <5kapv3$a69$1@fes.whowhere.com> jerry@rigel.whowhere.com (Jerry Aguirre) writes: >It also helps to occasionally rebuild your DBZ. Not the entire history! >Just the history.pag file. Expire does not recalculate the appropriate >tag size but makehistory will. Actually I do believe that expire will cause a recalculation - seems to happen down in dbzagain(), contrary to the claims of dbz(3). Apparently this was part of the dbz.pch patch that was included separately and applied at build time pre-inn-1.5, nowadays pre-applied; it just didn't include a patch for the man page.:-) --Per Hedeland per@erix.ericsson.se
Re: Inn Performance Questions...
Author: Per Hedeland
Date: Fri, 02 May 1997 00:00
Date: Fri, 02 May 1997 00:00
17 lines
1297 bytes
1297 bytes
In article <5kapv3$a69$1@fes.whowhere.com> jerry@rigel.whowhere.com (Jerry Aguirre) writes: >It also helps to occasionally rebuild your DBZ. Not the entire history! >Just the history.pag file. Expire does not recalculate the appropriate >tag size but makehistory will. Actually I do believe that expire will cause a recalculation - seems to happen down in dbzagain(), contrary to the claims of dbz(3). Apparently this was part of the dbz.pch patch that was included separately and applied at build time pre-inn-1.5, nowadays pre-applied; it just didn't include a patch for the man page.:-) --Per Hedeland per@erix.ericsson.se
Re: Inn Performance Questions...
Author: Per Hedeland
Date: Fri, 02 May 1997 00:00
Date: Fri, 02 May 1997 00:00
18 lines
1663 bytes
1663 bytes
In article <5kabnj$hn8@smash.gatech.edu> ManChul Park <mpark@hurl.ns.gatech.edu> writes: >I was wondering if there is any way to improve on the history lookup time. >Since, it is being invoked so many times, if I improve on it a little >it will make a significant difference. Are you using -DMMAP in DBZCFLAGS? Not sure if it would make your numbers any better though, I use it and have about the same ratio of time per article write vs history lookup (only mine are about three times worse than yours:-). The other option is of course to reduce the number of lookups, i.e. drop some of your incoming feeds - being offered each article 16 times on average is perhaps overkill... --Per Hedeland per@erix.ericsson.se
Re: Inn Performance Questions...
Author: Jeff Garzik
Date: Fri, 02 May 1997 00:00
Date: Fri, 02 May 1997 00:00
18 lines
1504 bytes
1504 bytes
ManChul Park wrote: > Jerry Aguirre <jerry@rigel.whowhere.com> wrote: > > : Having enough RAM to hold the history file will also help. > > Assuming that I have enough memory, how do I let my RAM hold the whole > history file - what would be the best way? Put it on a RAM disk and point _PATH_HISTORY in config.data to it. Also, make sure you compiled with DBZCFLAGS set to -DMMAP. You should definitely be using MMAP for DBZ operations, as that directly affects history operations. Jeff
Re: Inn Performance Questions...
Author: Jerry Aguirre
Date: Fri, 02 May 1997 00:00
Date: Fri, 02 May 1997 00:00
15 lines
1226 bytes
1226 bytes
In article <5kb3l2$b82@smash.gatech.edu>, ManChul Park <mpark@hurl.ns.gatech.edu> wrote: >Assuming that I have enough memory, how do I let my RAM hold the whole >history file - what would be the best way? The best way is to have your OS just cache it as part of its normal operation. On some OS this would mean reconfiguring the kernal to increase the amount of RAM allocated for the disk cache. On others the RAM is dynamically assiged to the cache. Keeping the history file on a ram disk or tmpfs would be risky in the sense that a crash could loose data.
Re: Inn Performance Questions...
Author: Jerry Aguirre
Date: Fri, 02 May 1997 00:00
Date: Fri, 02 May 1997 00:00
16 lines
1536 bytes
1536 bytes
In article <5kb3l2$b82@smash.gatech.edu>, ManChul Park <mpark@hurl.ns.gatech.edu> wrote: >Assuming that I have enough memory, how do I let my RAM hold the whole >history file - what would be the best way? The best way is to have your OS just cache it as part of its normal operation. On some OS this would mean reconfiguring the kernal to increase the amount of RAM allocated for the disk cache. On others the RAM is dynamically assiged to the cache. Keeping the history file on a ram disk or tmpfs would be risky in the sense that a crash could loose data.
Re: Inn Performance Questions...
Author: Michael Hucka
Date: Sat, 03 May 1997 00:00
Date: Sat, 03 May 1997 00:00
15 lines
1319 bytes
1319 bytes
>>>>> On 02 May 1997, Jeff Garzik <admin@news.iarc.com> wrote: admin> Put it on a RAM disk and point _PATH_HISTORY in config.data to it. I think this would be too dangerous. What will happen when the server crashes? (Or are there implementations of ram disks that somehow copy-through every write to a disk file?) -- Mike Hucka hucka@umich.edu http://www.eecs.umich.edu/~hucka University PhD to be, computational models of human visual processing (AI Lab) of UNIX systems administrator & programmer/analyst (EECS DCO) Michigan
Re: Inn Performance Questions...
Author: Evan Champion
Date: Sat, 03 May 1997 00:00
Date: Sat, 03 May 1997 00:00
12 lines
1039 bytes
1039 bytes
Michael Hucka wrote: > I think this would be too dangerous. What will happen when the server > crashes? (Or are there implementations of ram disks that somehow copy-through > every write to a disk file?) Or you could get a solid state disk. I know Quantum sells them, and I'm sure there are others. Evan
Re: Inn Performance Questions...
Author: Jeff Garzik
Date: Sat, 03 May 1997 00:00
Date: Sat, 03 May 1997 00:00
24 lines
1741 bytes
1741 bytes
Michael Hucka wrote: > >>>>> On 02 May 1997, Jeff Garzik <admin@news.iarc.com> wrote: > admin> Put it on a RAM disk and point _PATH_HISTORY in config.data to it. > I think this would be too dangerous. What will happen when the server > crashes? (Or are there implementations of ram disks that somehow copy-through > every write to a disk file?) Well, silly, you're supposed to copy history onto hard storage at periodic intervals. For example, each night after you run expire, have rc.news NOT unlink the expdir history, but instead move it into your "history backup directory". Then do something like a tail -f /var/ramdisk/history > /var/news/history/history.tail Then simply cat the expire version and the history.tail together to form the whole, and rebuild the DBZ file, in the event of an OS crash. Better solutions would figure out some way to avoid rebuilding the DBZ, like simply copying it to the backup directory at certain intervals. Jeff
Re: Inn Performance Questions...
Author: Lukas Wunner
Date: Sat, 03 May 1997 00:00
Date: Sat, 03 May 1997 00:00
16 lines
1474 bytes
1474 bytes
Evan Champion <evanc@synapse.net> writes: >Or you could get a solid state disk. I know Quantum sells them, and I'm >sure there are others. Yes, there was a test of the Altec Athena II in the German c't magazine. There are options available to buffer the data with a battery on crashes. I'm not sure though if keeping the history on such a beast would be worthwhile. The SCSI bus seems to be a bottleneck in such a configuration (slower than transfers between the CPU and normal RAM), and those Athenas seem to be extremely expensive. Installing 128MB (or more like 256MB these days) in your server may be cheaper. Lukas.
Re: Inn Performance Questions...
Author: Matt Dillon
Date: Sun, 04 May 1997 00:00
Date: Sun, 04 May 1997 00:00
21 lines
1316 bytes
1316 bytes
:In article <336B3BB0.446B9B3D@synapse.net>,
:Evan Champion <evanc@synapse.net> wrote:
:>Michael Hucka wrote:
:>> I think this would be too dangerous. What will happen when the server
:>> crashes? (Or are there implementations of ram disks that somehow copy-through
:>> every write to a disk file?)
:>
:>Or you could get a solid state disk. I know Quantum sells them, and I'm
:>sure there are others.
:>
:>Evan
Memory is a LOT cheaper then a solid state disk. Just get a bunch of
ram and let the OS cache the history file. The minimum these days
to run innd efficiently is 128MB of ram. The more, the better.
-Matt
Re: Inn Performance Questions...
Author: Matt Dillon
Date: Sun, 04 May 1997 00:00
Date: Sun, 04 May 1997 00:00
32 lines
1985 bytes
1985 bytes
:In article <R5kb2vc$fh8$1@news.theriver.com>,
:Marcus Needham <marcus@theriver.com> wrote:
:>In article <5kb28m$hsu$1@stargate.stdio.com>, risner@stdio.com wrote:
:>>ManChul Park <mpark@hurl.ns.gatech.edu> wrote:
:...
:>>
:>>Your problem is due to idle being 2.0%
:>>Either increase your buffers NBUF's or something...
:>
:>Um, with all due respect, isn't that circular logic? If ManChul had your
I would like to interject that increasing NBUF's can be dangerous...
the problem is that the buffer cache will lock invalid & cached pages.
If too many get locked, the VM system goes to pot when it tries
to page (you can tell because the SR field in vmstat, indicating the
number of pages scanned, goes crazy).
Generally speaking, I leave NBUFs alone but increase the vnode/namei
cache to 32768 entries. If you want to experiment with NBUF's, my
suggestion is to not set them greater then 4096 on a 128MB-ram machine,
and not greater then 2048 if you have less ram.
History file lookups should be nearly instantanious. If you are trying
to figure out where inn is messing up, I suggest using 'ktrace'.. it's
a kernel configuration option so you may have to recompile the kernel
to get the capability. I've found ktrace to be invaluable in tracking
down problems.
-Matt
Re: Inn Performance Questions...
Author: Alan Brown
Date: Sun, 04 May 1997 00:00
Date: Sun, 04 May 1997 00:00
26 lines
1624 bytes
1624 bytes
In article <m2pvvan8vr.fsf@xian.grumblesmurf.net>,
Darrell Fuhriman <darrell@grumblesmurf.net> wrote:
>Depends on your operating system. You can do it with a ram disk
>under some, or tmpfs on others. You just have to be sure that
>you copy the history file to disk on a regular basis, or you'll
>have problems if/when you crash.
>
>I'm going to be doing this when I get some more ram, and I do
>know other people that do it also.
If you're concerned about ramdisk performance _and_ reliability, check
out the solid state disks made by Quantum and others.
Be warned: Quantum produce models with and without integral hard
drive backup. Make sure you get the appropriate one for the job.
AB
--
o Stamp out unauthorised relay-hosting. This SMTP "feature" shouldn't default
"on" - See http://www.vix.com/spam/ and http://www.sendmail.org/antispam.html
There's a hole in the sky the size of America.
Re: Inn Performance Questions...
Author: bill davidsen
Date: Mon, 05 May 1997 00:00
Date: Mon, 05 May 1997 00:00
20 lines
1424 bytes
1424 bytes
In article <5kapv3$a69$1@fes.whowhere.com>, Jerry Aguirre <jerry@rigel.whowhere.com> wrote: | Having enough RAM to hold the history file will also help. People who can do this have either small feeds, fast expire, or BIG budgets. With a reasonable feed (say 22-28k groups) and reasonable expire (say 30 days) you get a 700MB history file, and I would suspect that the entries frequently used are already in disk cache. I've worked with a few ISPs, but only one uses servers that large, and they use the memory for users, not history. The total dynamic disk cache usually runs only 200-400MB on a 2GB server (AIX 4.2). -- -bill davidsen (davidsen@tmr.com) "As a software development model, Anarchy does not scale well." -Dave Welch
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