]> arthur.barton.de Git - netatalk.git/commitdiff
Increase cache
authorFrank Lahm <franklahm@googlemail.com>
Fri, 25 Mar 2011 13:27:41 +0000 (14:27 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Fri, 25 Mar 2011 13:27:41 +0000 (14:27 +0100)
etc/cnid_dbd/cmd_dbd.c
etc/cnid_dbd/cmd_dbd_scanvol.c

index 0b81b8ccefe3777a89700d3834bcc409d1da9f02..902ea77849675428438ac4f5e77f2a65f005e638 100644 (file)
@@ -90,7 +90,7 @@ static int exclusive;           /* Exclusive volume access */
 static struct db_param db_param = {
     NULL,                       /* Volume dirpath */
     1,                          /* bdb logfile autoremove */
-    64 * 1024,                  /* bdb cachesize (64 MB) */
+    256 * 1024,                  /* bdb cachesize (256 MB) */
     5000,                       /* maxlocks */
     5000,                       /* maxlockobjs */
     -1,                         /* not used ... */
index 240d4150d3312ef2dec686526e541f9b1a3ed0f3..ec8c469469abf27a354ef07fe025dbdbf9f3b720 100644 (file)
@@ -1132,7 +1132,7 @@ int cmd_dbd_scanvol(DBD *dbd_ref, struct volinfo *vi, dbd_flags_t flags)
     struct db_param db_param = { 0 };
 
     /* Set cachesize for in-memory rebuild db */
-    db_param.cachesize = 128 * 1024 * 1024; /* 128 MB */
+    db_param.cachesize = 256 * 1024 * 1024; /* 128 MB */
 
     /* Make it accessible for all funcs */
     dbd = dbd_ref;