🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62457

Re: xBin (Power-Post 2003 - requesting input from authorities..)

#62457
From: Kjetil Torgrim Homme
Date: Fri, 27 Dec 2002 19:00
32 lines
2813 bytes
[Curt Welch]:
>
>   Here are three runs of my code calculating the tree hash of a 50MB
>   file (where the file is all in the memory cache of the server so
>   no disk IO happened):

if you access the file linearly, you shouldn't be able to measure any
difference.  if you process blocks in a random fashion, you may.  the
decode tool _should_ download and process the articles in server
arrival order (== by article number), in case the articles are
expiring while it's still running.  this means that blocks will be
written to the file in a non-sequential fashion.

the OS operates on memory pages the size of which is dependent on the
CPU.  UltraSPARC uses 8 KiB, x86 uses 4 KiB.  so, what happens when
you write a non-aligned 4500 byte block on an Intel machine?  worst
case, that block spans three memory pages.  if it's not in memory, the
OS will need to read 12 KiB, modify the 4500 bytes in the middle, and
write the 12 KiB out to disk.

of course, since the normal article actually contains on the order of
100 blocks, the _real_ overhead is only 2% (2 pages, one at each end).

>   I know a block size which is not a power of two seems "wrong".
>   But I think it's more than justified for this application.

I'm still not convinced that supporting uuencode is a good thing.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Technical Details
Message-ID: <1r7kdvz3q7.fsf@sjau.ifi.uio.no>
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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!deine.net!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <cfka0vsbjdlbdmtv2gg8qnehok033qh5f1@4ax.com> <20021223041127.986$6M_-_@newsreader.com> <1rfzsoaacf.fsf@vingodur.ifi.uio.no> <20021223180543.105$Wn@newsreader.com> <20021223185652.700$BS@newsreader.com> <20021223203608.351$Qp@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <1r7kdvz3q7.fsf@sjau.ifi.uio.no>
Subject: Re: xBin (Power-Post 2003 - requesting input from authorities..)
Date: Fri, 27 Dec 2002 19:00:48 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <cfka0vsbjdlbdmtv2gg8qnehok033qh5f1@4ax.com> <20021223041127.986$6M_-_@newsreader.com> <1rfzsoaacf.fsf@vingodur.ifi.uio.no> <20021223180543.105$Wn@newsreader.com> <20021223185652.700$BS@newsreader.com> <20021223203608.351$Qp@newsreader.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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!deine.net!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
Newsgroups: news.software.nntp
Organization: Dept. of Informatics, Univ. of Oslo, Norway
Lines: 31
NNTP-Posting-Host: sjau.ifi.uio.no
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: maud.ifi.uio.no 1041015648 8707 129.240.65.207 (27 Dec 2002 19:00:48 GMT)
X-Complaints-To: abuse@ifi.uio.no
NNTP-Posting-Date: 27 Dec 2002 19:00:48 GMT
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7