From b9dd11a7e42a066af17f4b5fc5c92e1389dd638f Mon Sep 17 00:00:00 2001 From: sears Date: Tue, 5 Oct 2010 16:23:31 +0000 Subject: [PATCH] reduce default datapage_size to 1 (4096) to avoid useless seeks for small values git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@1234 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe --- logstore.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/logstore.h b/logstore.h index 2580ffe..37475ee 100644 --- a/logstore.h +++ b/logstore.h @@ -33,7 +33,8 @@ public: // // 6GB ~= 100B * 500 GB / (datapage_size * 4KB) // (100B * 500GB) / (6GB * 4KB) = 2.035 - logtable(pageid_t internal_region_size = 1000, pageid_t datapage_region_size = 10000, pageid_t datapage_size = 2); + // RCS: Set this to 1 so that we do (on average) one seek per b-tree read. + logtable(pageid_t internal_region_size = 1000, pageid_t datapage_region_size = 10000, pageid_t datapage_size = 1); ~logtable();