Re: Cache and Store

Matthew Toseland <toad-EI5O+8PHWbJeeLb3ft/[email protected]>
Newsgroups gmane.network.freenet.technical
Message-ID <[email protected]>
On Wednesday 09 May 2007 12:03, Michael Rogers wrote:
> Juiceman wrote:
> >>> the 50:50
> >>> split seems pretty arbitrary; it should be configurable.
> >>
> >> Why, so each user can choose a different arbitrary value instead of
> >> everyone using the same arbitrary value?
> >
> > Well, I for one, would like to be a "deep cache" for long term
> > storage, others like Bob would like to cache as much as possible
> > immediately.  I think Freenet could benefit from this.
>
> Would it be possible to dynamically balance the amount of space
> allocated to the cache and store? Here's what I have in mind: when the
> cache is below its quota and a key is cached, remove the least recently
> used key from the store instead of the cache. And vice versa: when the
> store is below its quota and a key is stored, remove the least recently
> used key from the cache. That way we don't waste any space while the
> store is filling up (the cache uses the free space), and if we later
> change the quotas it will gradually move to the new quotas instead of
> having to resize the whole thing at once.

Yes, it's possible. File a bug for it; there are definitely related bugs 
already filed.

_______________________________________________
Tech mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/tech
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBGQehjA9rUluQ9pFARAlgeAKCDo36BXwFdBd/rIVvRky3gzbkTuwCfZlRT
rDKVJnjDaE0VakkyFGLsHo4=
=yeHR
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.