🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64618

Re: Newsreader programming - sorting one million lines ?

#64618
From: DS
Date: Mon, 31 Mar 2003 18:51
70 lines
4023 bytes
> DS wrote in <Xns934F6A37F2940idispcom@216.65.98.9>:
> 
>> I have also heard about concern's using Jet in a high traffic
>> environment with problems of database corruption. 
> 
> I would be interested to hear how long your application needs to e.g.
> do an XOver for 10.000 articles from a local server (e.g. Hamster), so
> that connection speed is not an issue.
> 
> Marcus

I would be interested in that too since I believe that 1 MBit/sec is 
about the limit of Jet. I know this because when d/l'g directly into 
files on the hard-disk, not into a database, I have typically seen 
speed's in excess of 2 MBits/sec, even 3 when the servers are working 
good.

But since you peaked my interest in actual numbers I'm running, I did 
some benchmarking.

First of all, Jeurgen replied to one of my posts saying it was 'great 
that you can process 2-3000 headers' a second. When I read that, I just 
continued on reading. I think the 2-3000 number came to be from my saying 
I process about 1mBit/sec when doing XOVER's. Couple/few hundred bytes 
per header comes out to that ballpark. But I was processing that speed in 
total bytes rx'd from the server's including IP overhead. That's how my 
IP meter works. So take off 20ish%.

So some number's:

    	Group: alt.binaries.multimedia
    	Server's: 4
    	Simultaneous threads: 4

    	Total Number of unique headers d/l'd: 108,450
    	Total Number Processed: 176,205

    	Total time: 10:00, 176,205/600 seconds = 293 headers/sec.
    	    	4 Threads- first 3min 50sec @108 kBYTES/sec.
    	    	Remaining 3 (running average)- @97 kBYTES/sec.

Joining & Expiring: 17 seconds (a little longer than I thought, but I 
don't usually work with this large a group, usually ~50k msg's group)

    	Text Only posts: 315
    	Detected as Multi-part: 108,135
    	
    	Displayed: 315 Text Only, 1424 COMPLETE binaries multi-part (across 
4 servers)


The way I am doing it is only working with the messages to be displayed. 
Even tho there is 108+K unique messages, I'm selecting 1739 of them to 
display. I first select them on a boolean field (display), then sort the 
subset of the entire group. Because of this displaying them and resorting 
them only takes a very small amount of time.

Does any of this sound reasonable, I mean, are these number's way off, 
good, bad ?


Regards,

DS





Technical Details
Message-ID: <Xns934F8EB67D9C6idispcom@216.65.98.9>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-out.newsfeeds.com!l2!corp-news.newsgroups.com!not-for-mail
References: <4540d.o33203@archiver.winews.net> <Xns93498CE88447Aidispcom@24.48.107.54> <Xns934B428C69A95JanC@213.118.75.56> <2605b.v33202@archiver.winews.net> <Xns934F6A37F2940idispcom@216.65.98.9> <1nuiyq8f4gl3k.dlg@40tude.com>

Show Full Headers
Complete Article Headers
Message-ID: <Xns934F8EB67D9C6idispcom@216.65.98.9>
Subject: Re: Newsreader programming - sorting one million lines ?
Date: Mon, 31 Mar 2003 18:51:35 +0000
From: DS <t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t>
References: <4540d.o33203@archiver.winews.net> <Xns93498CE88447Aidispcom@24.48.107.54> <Xns934B428C69A95JanC@213.118.75.56> <2605b.v33202@archiver.winews.net> <Xns934F6A37F2940idispcom@216.65.98.9> <1nuiyq8f4gl3k.dlg@40tude.com>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-out.newsfeeds.com!l2!corp-news.newsgroups.com!not-for-mail
Newsgroups: news.software.nntp
User-Agent: Xnews/5.04.25
NNTP-Posting-Host: corp-news
Lines: 69
X-Authenticated-User: $$35brch-
X-Comments: This message was posted through Newsfeeds.com
X-Comments2: IMPORTANT: Newsfeeds.com does not condone, nor support, spam or any illegal or copyrighted postings.
X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!!
X-Report: Please report illegal or inappropriate use to <abuse@newsfeeds.com> You may also use our online abuse reporting from: http://www.newsfeeds.com/abuseform.htm
X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS)
Organization: Newsfeeds.com http://www.newsfeeds.com 100,000+ UNCENSORED Newsgroups.