9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rsc@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] venti arenas
Date: Wed, 30 Apr 2003 14:10:26 -0400	[thread overview]
Message-ID: <79a3035b869d65fb99f2e9fecf1ba9fd@plan9.bell-labs.com> (raw)
In-Reply-To: <7ae69a86431964c1aa5e77e8d3574406@9fs.org>

Jmk and I think the solution is this:

	apsize = ap->size - ap->arenaBase;
	n = apsize / asize;

	fprint(2, "configuring %s with arenas=%d for a total storage of bytes=%lld and directory bytes=%d\n",
		file, n, apsize, ap->tabSize);

	ap->narenas = n;
	ap->map = MKNZ(AMap, n);
	ap->arenas = MKNZ(Arena*, n);

	addr = ap->arenaBase;
	for(i = 0; i < n; i++){
		limit = addr + asize;
		snprint(aname, ANameSize, "%s%d", name, i);
		fprint(2, "adding arena %s at [%lld,%lld)\n", aname, addr, limit);

Even on a small system there are 200+ arenas.
Another half-sized one isn't going to help much.

Russ



  parent reply	other threads:[~2003-04-30 18:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-30  7:22 nigel
2003-04-30  7:40 ` nigel
2003-04-30  9:03   ` Richard Miller
2003-04-30  9:10     ` Lucio De Re
2003-05-07  4:26       ` Boyd Roberts
2003-04-30  9:22     ` nigel
2003-04-30 18:10   ` rsc [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-04-01  6:34 nigel
2003-04-01  7:47 ` Martin C.Atkins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=79a3035b869d65fb99f2e9fecf1ba9fd@plan9.bell-labs.com \
    --to=rsc@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).