🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
16 messages
16 total messages Started by Brian Thu, 04 Dec 1997 00:00
dbz3.3
#24004
Author: Brian
Date: Thu, 04 Dec 1997 00:00
29 lines
1592 bytes

Is there anyone else out there using dbz3.3?  Brian Young <byoung@oru.edu>
had told me about this, and it has made a vast improvment to our times.
With dbz3.2, which is what comes with INN up to v1.7, I was getting
history lookups of 8-15ms.  I changed dbz.c and dbz.h to dbz3.3, and now I
see hisotry lookups of about .65-2ms, and I'm actually seeing 30-55% idle
time!

Its not even a patch, its a drop in replacement.

I have it at http://www.shreve.net/news if anyone wants to check it out.

Brian


/-------------------------- signal@shreve.net -----------------------------\
| Brian Feeny                | USR TC Hubs | ShreveNet Inc. (318)222-2638  |
| Systems Administrator      | Perl, Linux | Web hosting, online stores,   |
| ShreveNet Inc.             |  USR Pilot  | Dial-Up 14.4-56k, ISDN & LANs |
| 89 CRX DX w/MPFI, lots of  |-=*:Quake:*=-| http://www.shreve.net/        |
| mods/Homepage coming soon  |LordSignal/SN| Quake server: 208.206.76.3    |
\-------------------------- 318-222-2638 x109 -----------------------------/





Re: dbz3.3
#24030
Author: Mark Hittinger
Date: Fri, 05 Dec 1997 00:00
44 lines
2208 bytes
Brian <signal@shreve.net> writes:
>Is there anyone else out there using dbz3.3?  Brian Young <byoung@oru.edu>
>had told me about this, and it has made a vast improvment to our times.
>With dbz3.2, which is what comes with INN up to v1.7, I was getting
>history lookups of 8-15ms.  I changed dbz.c and dbz.h to dbz3.3, and now I
>see hisotry lookups of about .65-2ms, and I'm actually seeing 30-55% idle
>time!

With Clayton's history cache code I was also able to get down into the 8ms
range but I kept fooling around over the past year with my own alternative
history code.  Here are some random sample numbers from tonight:

hishave 13851(85656)  .16ms
hishave 11736(78965)  .15ms
hishave 6925(51245)   .14ms
hishave 9108(68815)   .13ms
hishave 8199(69668)   .12ms
hishave 7472(60803)   .12ms
hishave 7051(47330)   .15ms
hishave 2313(15068)   .15ms

This new history technique plus a precommit cache allowed me to actually
have a tiny tiny backlog for some of the Cyclone sites from time to time in
November.  Imagine...a backlog for howland :-) :-) :-)

I am very pleased to see dbz3.3 making a significant crack at the history
lookup times too.  I had worried that the 8ms range (average seek latency)
might be a floor we could not penetrate.

Does anybody have Greco timer output for 1.8-current with fully tuned up
O'neill new history?

It looks like we've got a good range of solutions that whup the history 
problem that has been dogging us in 1997.  We really need to focus on 
ARTpost() in 1998.

Regards,

Mark Hittinger
Netcom/Dallas
bugs@freebsd.netcom.com

Re: dbz3.3
#24031
Author: Jeremy
Date: Fri, 05 Dec 1997 00:00
26 lines
1513 bytes
If you post-and-mail, could you at least say so?

Brian  <signal@shreve.net> wrote:
>Jeremy wrote:
>> 
>> Um, does it, like, need more memory?  I haven't got much to spare.
> 
> Well, you read the docs right :)?  It increases the size of your history
> files so, yes, you will more.....I think it adds 1/3 to the size of innd
> on average.

Yep, my innd is now 51 megs; it was 43-44 or so before, depending on how
I was abusing the Perl filters.  But.  I was just looking at some
5-minute innd-timer output, and, see, I'm getting 1.4-2.4ms history
lookups.  That's, um, fast.  No, you don't understand, that's like 10x
faster.  This is *cool*.

Now, anyone got a magic drop-in fix for my 160-250ms artwrites? :)

-- 
Jeremy  |  jeremy@exit109.com
Is your ISP providing a *clean* Usenet feed?
http://www.exit109.com/~jeremy/news/antispam.html

Re: dbz3.3
#24037
Author: Brian
Date: Fri, 05 Dec 1997 00:00
34 lines
1522 bytes
Jeremy wrote:
> 
> Um, does it, like, need more memory?  I haven't got much to spare.
> 
> --
> Jeremy  |  jeremy@exit109.com
> "I think I speak for everyone here when I say, 'Huh?'"  --Buffy



Well, you read the docs right :)?  It increases the size of your history
files so, yes, you will more.....I think it adds 1/3 to the size of innd
on average.



-- 
/-------------------------- signal@shreve.net
-----------------------------\
| Brian Feeny                | USR TC Hubs | ShreveNet Inc.
(318)222-2638  |
| Systems Administrator      | Perl, Linux | Web hosting, online
stores,   |
| ShreveNet Inc.             |  USR Pilot  | Dial-Up 14.4-56k, ISDN &
LANs |
| 89 CRX DX w/MPFI, lots of  |-=*:Quake:*=-|
http://www.shreve.net/        |
| mods/Homepage coming soon  |LordSignal/SN| Quake server:
208.206.76.3    |
\-------------------------- 318-222-2638 x109
-----------------------------/

Re: dbz3.3
#24043
Author: Jeff Weisberg
Date: Fri, 05 Dec 1997 00:00
29 lines
1972 bytes

jeremy@exit109.com said:

| Yep, my innd is now 51 megs; it was 43-44 or so before, depending on how
| I was abusing the Perl filters.  But.  I was just looking at some
| 5-minute innd-timer output, and, see, I'm getting 1.4-2.4ms history
| lookups.  That's, um, fast.  No, you don't understand, that's like 10x
| faster.  This is *cool*.
| 
| Now, anyone got a magic drop-in fix for my 160-250ms artwrites? :)


well, using CNFS and dbz6, I'm seeing 24ms artwrites, .2ms hishaves
on a lowly PeeCee (feeder box); and slightly faster writes, slower
hishaves on the sparc (reader box)

now if only I could get innfeed to shove articles out faster...


	--jeff

----------------------------------------------+-------------------------------
OpNet provides high quality, high reliability | Shell, SLIP/PPP, WWW services, 
Internet services in the Philadelphia area    | dedicated connections, custom
                                              | solutions, consulting, etc...
http://www.op.net or call us at 610-520-2880  +-------------------------------

Re: dbz3.3
#24046
Author: Jeremy
Date: Fri, 05 Dec 1997 00:00
34 lines
2081 bytes
CyberPromo Danmark  <ag786@yfn.ysu.edu> wrote:

>> Well, I just installed it, hesitantly... I'd love to speed up my
>> history lookups.
> 
>     Yeah, you better, you laggard...  It's not like I haven't been
> prodding you for, well, for a while, hmmph.

Yeah, I know, I know!  But hey, am I backlogging?  I don't *feel*
backlogged.  That could just be the cold medicine though...

>     Hope you replaced makehistory and expire.  Of course, you can do a
> test if you want, with makehistory -r -s (# history entries) and see if
> the resulting history.n.dir and .n.pag files look right, without actually
> taking the plunge, if the water looks a bit shark-infested...

Well, I did a whole make update, so presumably it all got replaced.  If
you see my server go dark several hours from now, that probably means "it
didn't work".  I'll be in bed, though, when that happens.

>     A bit.  Your .pag database, which ideally should fit within your
> memory, will be somewhat larger (instead of 150% of the number of lines,
> it's 200%), but otherwise, it's not a killer.

Hmm, that sounds like it'll end up some 7 megs bigger.  I don't have 7
megs to spare.  Perhaps I shall have to crank BUFMEM back down a bit.
Sigh.  Anyone got a real news server looking for a (remote) admin?

-- 
Jeremy  |  jeremy@exit109.com
Here's a nickel, kid.  Go buy yourself a real computer.

Re: dbz3.3
#24047
Author: coneill
Date: Fri, 05 Dec 1997 00:00
20 lines
1501 bytes
Marc Newman <mknewman@blkbox.com> writes:

> coneill@blah.erols.com wrote:
> 
> > The reason that my artwrite time is so low is that I'm using the
> > timehash spool.
> 
> Ok, I'll bite, what's the timehash spool?

It's fairly similar to diablo's early spool format, and the idea was
shamelessly stolen from there.  Basically the idea is that you have a
two level directory structure and (for example) you change second
level directories every 10 minutes and top level directories (for
example) every 6 hours.  You use the current time, or hashed
messageid, or some unique value for the article filename.  This way
articles end up spread pretty evenly across the spool.  Fairly big
performance win for feed machines.

Re: dbz3.3
#24058
Author: coneill
Date: Fri, 05 Dec 1997 00:00
27 lines
1736 bytes
jaw@op.net (Jeff Weisberg) writes:

> jeremy@exit109.com said:
> 
> | Yep, my innd is now 51 megs; it was 43-44 or so before, depending on how
> | I was abusing the Perl filters.  But.  I was just looking at some
> | 5-minute innd-timer output, and, see, I'm getting 1.4-2.4ms history
> | lookups.  That's, um, fast.  No, you don't understand, that's like 10x
> | faster.  This is *cool*.
> | 
> | Now, anyone got a magic drop-in fix for my 160-250ms artwrites? :)
> 
> 
> well, using CNFS and dbz6, I'm seeing 24ms artwrites, .2ms hishaves
> on a lowly PeeCee (feeder box); and slightly faster writes, slower
> hishaves on the sparc (reader box)

I'm getting about 3.5ms artwrites with 9 4gb barracudas in my spool
and timehash storage.

> now if only I could get innfeed to shove articles out faster...

This turns out to be my biggest problem.  I should spend some time
profiling innfeed this weekend.

Re: dbz3.3
#24065
Author: CyberPromo Danmark
Date: Fri, 05 Dec 1997 00:00
44 lines
2310 bytes
On 5 Dec 1997, Jeremy wrote:

> > Is there anyone else out there using dbz3.3?
> 
> Well, I just installed it, hesitantly... I'd love to speed up my history
> lookups.

    Yeah, you better, you laggard...  It's not like I haven't been
prodding you for, well, for a while, hmmph.


> It's running again, so I guess I'll see what happens after expire runs.

    Hope you replaced makehistory and expire.  Of course, you can do a
test if you want, with makehistory -r -s (# history entries) and see if
the resulting history.n.dir and .n.pag files look right, without actually
taking the plunge, if the water looks a bit shark-infested...


> Um, does it, like, need more memory?  I haven't got much to spare.

    A bit.  Your .pag database, which ideally should fit within your
memory, will be somewhat larger (instead of 150% of the number of lines,
it's 200%), but otherwise, it's not a killer.

    It works by removing some of the less significant bits that point to
the position in the text file, meaning that any match will be approximate
rather than exact, and you'll have to search around a bit.  What you get
is more bits to use for the hash of the message ID, meaning that if your
history text file is, say, 800M like here, you'll see performance
comparable to a history text file less than 100M in size (sort of, I won't
go into all the factors like cache).

    Now to increase my article retention times, and up that /remember/
value to a month or two, to see whether it starts to do as poorly as it
should when our history text file reaches the 4 Gig mark...


Barry Bouwsma
Overkill'R'Us


Re: dbz3.3
#24066
Author: Marc Slemko
Date: Fri, 05 Dec 1997 00:00
14 lines
985 bytes
In <Pine.LNX.3.96.971204210807.32094B-100000@mercury.shreve.net> Brian <signal@shreve.net> writes:


>Is there anyone else out there using dbz3.3?  Brian Young <byoung@oru.edu>

Yes.  Have been for two months or so.  No problems and much improved
over stock dbz.

Clayton's code will probably work better on machines with enough
of memory, but we don't so it really falls over, especially during
expire.

Re: dbz3.3
#24072
Author: coneill
Date: Fri, 05 Dec 1997 00:00
66 lines
3436 bytes
bugs@freebsd.netcom.com (Mark Hittinger) writes:
> With Clayton's history cache code I was also able to get down into the 8ms
> range but I kept fooling around over the past year with my own alternative
> history code.  Here are some random sample numbers from tonight:
> 
> hishave 13851(85656)  .16ms
> hishave 11736(78965)  .15ms
> hishave 6925(51245)   .14ms
> hishave 9108(68815)   .13ms
> hishave 8199(69668)   .12ms
> hishave 7472(60803)   .12ms
> hishave 7051(47330)   .15ms
> hishave 2313(15068)   .15ms
> 
> This new history technique plus a precommit cache allowed me to actually
> have a tiny tiny backlog for some of the Cyclone sites from time to time in
> November.  Imagine...a backlog for howland :-) :-) :-)
> 
> I am very pleased to see dbz3.3 making a significant crack at the history
> lookup times too.  I had worried that the 8ms range (average seek latency)
> might be a floor we could not penetrate.
> 
> Does anybody have Greco timer output for 1.8-current with fully tuned up
> O'neill new history?

Here is mine from the 5 minute interval I had it turned on (Yes, you
can turn the timer on/off w/ctlinnd in 1.8).

Dec  5 10:33:39 feed1 innd: ME time 300011 idle 161749(56481) artwrite 
9154(2947) artlink 85(3992) hiswrite 60588(3679) hissync 54(6)
sitesend 965(8943) artctrl 38127(858) artcncl 39079(872) hishave
806(91942) hisgrep 17890(783)
Dec  5 10:38:39 feed1 innd: ME time 300005 idle 135908(59291) artwrite 
11393(3550) artlink 99(4651) hiswrite 58031(4018) hissync 22(7)
sitesend 1235(10782) artctrl 63846(1430) artcncl 64040(1432) hishave
991(106637) hisgrep 20135(1364)

That's about 0.009ms per lookup.  The machine in question is a pro200
w/256mb of ram.  Given that figure, I can do about 100-120k
lookups/sec if I don't have anything else to do.  My history cache
size is 1mb, and here are my hit stats from that.

Dec  5 03:42:32 feed1 innd: ME HISstats 278886 hitpos 65257 hitneg
83451 missed 20162 dne
Dec  5 04:42:33 feed1 innd: ME HISstats 642584 hitpos 158989 hitneg
46125 missed 38874 dne
Dec  5 05:42:33 feed1 innd: ME HISstats 648231 hitpos 168268 hitneg
50309 missed 38231 dne
Dec  5 06:42:35 feed1 innd: ME HISstats 567283 hitpos 159793 hitneg
38677 missed 34641 dne
Dec  5 07:42:36 feed1 innd: ME HISstats 576105 hitpos 141831 hitneg
30664 missed 37952 dne
Dec  5 08:42:36 feed1 innd: ME HISstats 658332 hitpos 120171 hitneg
26195 missed 42200 dne
Dec  5 09:42:38 feed1 innd: ME HISstats 592432 hitpos 139776 hitneg
21719 missed 33124 dne
Dec  5 10:42:39 feed1 innd: ME HISstats 759814 hitpos 182734 hitneg
37655 missed 40253 dne


The reason that my artwrite time is so low is that I'm using the
timehash spool.


Re: dbz3.3
#24076
Author: Requests for Further Spamming
Date: Fri, 05 Dec 1997 00:00
54 lines
3179 bytes
On Fri, 5 Dec 1997, Brian wrote: 

> >     Hope you replaced makehistory and expire.
> 
> Replace makehistory and expire? With what?  I run 1.7 makehistory and
> expire, would I have to replace these?  I have been running dbz3.3 for a
> week on my 1.7 system and never replaced anything except what was in the
> dbz tarball.

(Ha.  Good thing I checked news before responding to this posted&mailed-
but-not-announced-as-such missive by e-mail, but of course, my news is
more trustworthy than my mail)

    How did you install it?  Or, if you want the Ultimate Truth, how does
your history.dir file look?  How many lines are in it, and do the numbers
correspond to what you'd see in v3.2 or v3.3 dbz?

    Expire, or more specifically, makehistory, is what does the conversion
for you from the default v3.2 to v3.3, unless you're starting with a fresh
install.  The v3.3 dbz code is backwards compatible and will happily read
and write from v3.2 format files.  A v3.2 dbz history.dir file should look
something like this:

dbz 3 12582917 9 C 536870912 536870911 34 8 7 6 5 4 3 2 1 0
7265559 7391952 6481552 7535795 7846483 8319904 8142187 0 0 0 0

Whereas a v3.3 dbz history file has an additional line, the third field in
the first line (the number of hash table entries) should be twice the
largest number from the second line, and if you raise 2 to the power
of the eighth field in the first line, the number you get should be
significantly smaller than the byte size of your history text file.

dbz 3 14567537 9 C 32 31 26 4 0 1 2 3 4
7170296 7071220 7200266 7283756 7242959 7281042 6919293 7111466 6885829 6829950 6547007
499047302 501494117 507644147 508792137 502479451 500272217 482124188 499260111 481641032 0 0

2^26 (67 megabytes) is significantly smaller than the half gigabyte
history file on this machine.

The performance I am seeing here, with the history on the same partition
as the spool (and striping optimized not for history but for article
storage, hey, don't blame me) obviously varies wildly, but during a recent
burst of spam, with 5000+ entries added to the history database in 300
seconds (more than 9000 searches, most of them misses, with two searches
for every normal article received), one search was just under 5ms.
Obviously that's not very good, but it's adequate for a single incoming
feed on a reader machine.


Barry Bouwsma


Re: dbz3.3
#24078
Author: Jeremy
Date: Fri, 05 Dec 1997 00:00
22 lines
1347 bytes
Brian  <signal@shreve.net> wrote:

> Is there anyone else out there using dbz3.3?  Brian Young <byoung@oru.edu>
> had told me about this, and it has made a vast improvment to our times.
> With dbz3.2, which is what comes with INN up to v1.7, I was getting
> history lookups of 8-15ms.  I changed dbz.c and dbz.h to dbz3.3, and now I
> see hisotry lookups of about .65-2ms, and I'm actually seeing 30-55% idle
> time!

Well, I just installed it, hesitantly... I'd love to speed up my history
lookups.

It's running again, so I guess I'll see what happens after expire runs.

Um, does it, like, need more memory?  I haven't got much to spare.

-- 
Jeremy  |  jeremy@exit109.com
"I think I speak for everyone here when I say, 'Huh?'"  --Buffy

Re: dbz3.3
#24086
Author: Brian
Date: Fri, 05 Dec 1997 00:00
39 lines
1861 bytes
CyberPromo Danmark wrote:
> 
> On 5 Dec 1997, Jeremy wrote:
> 
> > > Is there anyone else out there using dbz3.3?


> 
>     Hope you replaced makehistory and expire.  Of course, you can do a
> test if you want, with makehistory -r -s (# history entries) and see if
> the resulting history.n.dir and .n.pag files look right, without actually
> taking the plunge, if the water looks a bit shark-infested...


Replace makehistory and expire? With what?  I run 1.7 makehistory and
expire, would I have to replace these?  I have been running dbz3.3 for a
week on my 1.7 system and never replaced anything except what was in the
dbz tarball.



-- 
/-------------------------- signal@shreve.net
-----------------------------\
| Brian Feeny                | USR TC Hubs | ShreveNet Inc.
(318)222-2638  |
| Systems Administrator      | Perl, Linux | Web hosting, online
stores,   |
| ShreveNet Inc.             |  USR Pilot  | Dial-Up 14.4-56k, ISDN &
LANs |
| 89 CRX DX w/MPFI, lots of  |-=*:Quake:*=-|
http://www.shreve.net/        |
| mods/Homepage coming soon  |LordSignal/SN| Quake server:
208.206.76.3    |
\-------------------------- 318-222-2638 x109
-----------------------------/

Re: dbz3.3
#24089
Author: Sang-yong Suh
Date: Sat, 06 Dec 1997 00:00
55 lines
3143 bytes
In article <6689c1$f24@dfw-ixnews3.ix.netcom.com>,
Mark Hittinger <bugs@freebsd.netcom.com> wrote:
>I am very pleased to see dbz3.3 making a significant crack at the history
>lookup times too.  I had worried that the 8ms range (average seek latency)
>might be a floor we could not penetrate.

Thanks for the applaude. :-)

>Does anybody have Greco timer output for 1.8-current with fully tuned up
>O'neill new history?

I'd love to see that one.  BTW, here's a timer report for 7 hours period.
It's a PP-200 Linux with 256M ram running "CNFS + dbz3.3 + hacked-Cyalton's-
history-cache" feedonly box.

    Code region                    Time    Pct    Invoked       Each
    idle                   05:43:56.453  80.9%    2432972      8.482
    article write          00:25:58.916   6.1%     173409      8.990
    article control        00:04:16.480   1.0%      83378      3.076
    article cancel         00:00:08.229   0.0%        388     21.209
    crosslink              00:00:00.000   0.0%          0      0.000
    site send              00:05:43.913   1.3%     423899      0.811
    history write          00:02:21.896   0.6%     304334      0.466
    history sync           00:00:03.454   0.0%      12807      0.270
    history lookup         00:06:38.698   1.6%    2000096      0.199
    history grep           00:01:54.099   0.4%      57207      1.994
    spam filter            00:14:16.062   3.4%     266879      3.208
    Total innd time        07:05:02.770 100.0%

Note that the +80% of innd idle time.  FYI, I am including the
"ctlinnd mode" output just after the timer report was summuarized.

    red:~/site$ ctlinnd mode
    Server running
    Allowing remote connections
    Parameters c 6 i 80 (62) l 1000000 o 243 t 300 H 2 T 60 X 0 normal...
    Not reserved
    Readers separate disabled 502 reader service on xxx.xx.x.xx
    Perl filtering enabled
    Hiscache: 2029441 looks 1088154 pos 634722 neg 6375 dpos 300190 dneg
    WIPstat: wipsize 256 active 69

I guess the biggest difference between dbz3.3 and Clayton's dbz6.0 is
that dbz3.3 uses less memory, and providing more free memories for other
tasks.  Hislookup is the most severe bottle neck of the top100 in.boxes.
Dbz6.0 is the best if they have +512MB rams.

However, the rest servers around the world should spend more memories
for other tasks such as hiswrite, artwrite, spam filtering, and innfeed.
And dbzv3.3 is definitely a good choice for reader boxes.
--
sysuh

Re: dbz3.3
#24098
Author: Marc Newman
Date: Sat, 06 Dec 1997 00:00
18 lines
1270 bytes
coneill@blah.erols.com wrote:

> The reason that my artwrite time is so low is that I'm using the
> timehash spool.

Ok, I'll bite, what's the timehash spool?


-- 
Marc K. Newman (N5SLG)    |Is UNIX pronounced "UNIQUES" or "EUNUCHS"?
mknewman@blkbox.com       |281-480-2684 voice, 800-BLKBOX-1 toll free
PO BOX 591822             |Serving the Houston Internet community since 1992
Houston, Texas 77259-1822 |Email info@blkbox.com for 713/281/409 Internet!
GB/CM/CS d H s+:+ g- p#2+ au+ a39 w+ v--- C++++ UBISC++++ P+ L- 3- E- N++ K W M
V po++ Y++ t++ 5+ jx R- G? tv+++ b+++ D- B--- e- u+ h---- f- r+++ n--- x++++

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