From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <79a3035b869d65fb99f2e9fecf1ba9fd@plan9.bell-labs.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] venti arenas From: rsc@plan9.bell-labs.com In-Reply-To: <7ae69a86431964c1aa5e77e8d3574406@9fs.org> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Wed, 30 Apr 2003 14:10:26 -0400 Topicbox-Message-UUID: 9c747e2e-eacb-11e9-9e20-41e7f4b1d025 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