[chord] Chord execution problem

Emil Sit sit at MIT.EDU
Tue Oct 2 13:33:10 EDT 2007


On Tue, 02 October 2007 at 12:18 (-0500), Vijay K. Gurbani wrote:
> Emil Sit wrote:
> >That's probably not the problem.   What does it say in dhash-root/log.*?
> >(e.g., dhash-root/log.adbd or dhash-root/log.lsd?)
> 
> $ cat dhash-root/log.adbd
> adbd: db path: ./db
> adbd: db socket: ./adbd-sock
> log buffer size must be <= log file size / 4
> adbd: fatal: dbe->open - returned 22: Invalid argument

The problem may be that the particulars of DB4 have changed since 4.2
and maybe our usage now requires a newer version.

One option is to try with a newer DB4 (I use db4.4 usually).  Another is
to try this patch and see if it helps.

diff -r 500de5b097c2 utils/dbfe_sleepycat.C
--- a/utils/dbfe_sleepycat.C	Tue Oct 02 13:16:07 2007 -0400
+++ b/utils/dbfe_sleepycat.C	Tue Oct 02 13:31:20 2007 -0400
@@ -18,9 +18,6 @@ dbfe_generate_config (str path, unsigned
 #endif
   db_config << "# create " << cachesize << " KB cache\n";
   db_config << "set_cachesize 0 " << cachesize * 1024 << " 1\n";
-
-  db_config << "# Ensure log can handle large I/Os (log buffer size in bytes)\n";
-  db_config << "set_lg_bsize " << 4*1024*1024 << "\n";
 
   db_config << "# Just in case there are a lot of transactions (e.g., expiration)\n";
   db_config << "set_lk_max_locks 5000\n";

-- 
Emil Sit / MIT CSAIL PDOS / http://pdos.csail.mit.edu/chord/  



More information about the chord mailing list