diff options
| author | Russ Cox <rsc@swtch.com> | 2007-09-25 09:47:31 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@swtch.com> | 2007-09-25 09:47:31 -0400 |
| commit | 7a400ee957a0815287af806e18ef90dd18b47f82 (patch) | |
| tree | 023076fb829f630384f2f394eb9577a81fdca59e /src/cmd/venti/srv/syncindex.c | |
| parent | 25a4e89fa907ed5a5f5d84eccfb66180007d9c68 (diff) | |
| download | plan9port-7a400ee957a0815287af806e18ef90dd18b47f82.tar.gz plan9port-7a400ee957a0815287af806e18ef90dd18b47f82.zip | |
venti: new icache
Diffstat (limited to 'src/cmd/venti/srv/syncindex.c')
| -rw-r--r-- | src/cmd/venti/srv/syncindex.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/cmd/venti/srv/syncindex.c b/src/cmd/venti/srv/syncindex.c index 72d45f18..fb3c4ce2 100644 --- a/src/cmd/venti/srv/syncindex.c +++ b/src/cmd/venti/srv/syncindex.c @@ -56,13 +56,7 @@ threadmain(int argc, char *argv[]) if(0) fprint(2, "initialize %d bytes of disk block cache\n", bcmem); initdcache(bcmem); initlumpcache(1*1024*1024, 1024/8); - icmem = u64log2(icmem / (sizeof(IEntry)+sizeof(IEntry*)) / ICacheDepth); - if(icmem < 4) - icmem = 4; - if(1) fprint(2, "initialize %d bytes of index cache for %d index entries\n", - (sizeof(IEntry)+sizeof(IEntry*)) * (1 << icmem) * ICacheDepth, - (1 << icmem) * ICacheDepth); - initicache(icmem, ICacheDepth); + initicache(icmem); initicachewrite(); if(mainindex->bloom) startbloomproc(mainindex->bloom); |
