Hi,
Why not keep all keys that pass thru a node for a short time? ie have an lru
that keeps say 1000 keys (or n% of the ds). When keys are due to drop off
this lru then the normal probabistic checks happen.
Ed
On May 12, 2003 11:17 pm, Toad wrote:
> On Tue, May 13, 2003 at 04:08:20AM +0100, Toad wrote:
> > On Sun, May 11, 2003 at 12:22:09PM -0400, Greg Wooledge wrote:
> > > Nick Tarleton (nickptar at mindspring.com) wrote:
> > > > Point raised by greycat on #freenet on OPN (btw, which server is
> > > > mirrored by #freenet-opn on IIP?): The error pages (the biggest
> > > > offenders, but all gateway pages really) require 62 connections for
> > > > all the images! Could this not be reduced greatly and save a LOT of
> > > > loopback bandwidth and CPU time?
> > >
> > > That was cut and pasted from a Freenet site that I read, who asked
> > > that I not name the source ("so it doesn't get summarily dismissed").
> > > In full:
> > >
> > > I Protest - Freenet's "Couldn't Retrieve Key" error page is ruining
> > > the use of Freesite Iframes for no good reason . Every time the
> > > "Couldn't Retrieve Key" appears there is 62 browser connections to
> > > Freenet, yes 62. One to bring up the page and 61 for a dazzling
> >
> > 62 is ridiculous. I very much doubt that there are 62 UNIQUE files being
> > fetched. Maybe there is a problem with the headers not being
> > sufficiently cache permissive?
>
> It is nowhere near 62 unique images. Most are just repeats of a few
> things like the spacer images. And our headers are:
>
> HTTP/1.1 200 OK
> Date: Tue, 13 May 2003 04:11:45 GMT
> Expires: Wed, 14 May 2003 04:11:45 GMT
> Last-Modified: Tue, 13 May 2003 02:41:18 GMT
> Connection: close
> Content-type: image/png
> Server: Fred 0.5 (build 593) HTTP Servlets
>
> This should allow all browsers to cache it.
>
> It is probably simply that your browser a) has caching disabled, and b)
> is not smart enough to coalesce requests for the same image i.e. to
> cache it long enough to render it all over the page. Simply enable a
> small (like one megabyte) cache in the browser, regardless of it being
> cached upstream by the node or the proxy or whatever, and it will only
> download the images once each.
>
> > > array of little graphics around tables... and people wonder why
> > > Freenet is so slooow. If a page has 5 empty Iframe NIM slots thats
> > > 5slots x 62connections x 4+retries = over 1000 connections for
>
> As I said, 62 connections is silly.
>
> > > what?. I'm sure whoever came up with the idea of tables with fancy
> > > little graphics on the edges for Freenet error pages had good
> > > intentions but please couldn't this be simplified to make Freenet
> > > more usefull and Freesites better? Below is an example of an error
> > > page that has 3 connections, one for the page, one for the rabbit
> > > and one for a spacer, I think it's pretty good, an error page like
> > > this would look fine and help freenet performance and Freesites
> > > immensly. Thank You and could some kind soul bring this up on the
> > > Developers list or IIP (hint, hint, Grey Cat, who has so tirelessly
> > > and patiently helped out Freenet users lo these many years, don't
> > > mention where it came from so it doesn't get summarily dismissed)
> > >
> > > I think he's correct. It's even more noticeable if you're browsing
> > > Freenet over an ssh tunnel (say, from your browser at work to your
> > > Freenet node at home).
> > >
> > > The IIP-to-OPN mirror is done by a bot named "iip" running on Freenode
> > > (formerly known as OPN). A user named 'mids' runs the bot. The main
> > > round-robin for Freenode is irc.freenode.net.
> > >
> > > --
> > > Greg Wooledge | "Truth belongs to everybody."
> > > greg at wooledge.org | - The Red Hot Chili Peppers
> > > http://wooledge.org/~greg/ |
> >
> > _______________________________________________
> > devl mailing list
> > devl at freenetproject.org
> > http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl
>
> _______________________________________________
> devl mailing list
> devl at freenetproject.org
> http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl
_______________________________________________
devl mailing list
devl at freenetproject.org
http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl