Bingo. I had specified DB_PRIVATE. Thank you, I didn't realize.
Annoyingly, the python interface (bsddb3) doesn't have a function
to call memp_stat(). I guess I will remove DB_PRIVATE and hope
nobody ever goofs up.
In article <1141141237.111278.326640 (AT) i39g2000cwa (DOT) googlegroups.com>,
Ron <ron (AT) sleepycat (DOT) com> wrote:
Quote:
Hi,
The directory has log files in it, but I don't see the environment
backing files. You should search for __db.*. For example, __db.001.
Those are the environment files and may be in another directory. If
you can't find them, then maybe you specified DB_PRIVATE for your
environment?
I noticed you are using DB_HASH for a relatively small number of keys.
The most common access method used DB_BTREE.
http://www.sleepycat.com/docs/ref/am_conf/select.html |
When I read this page the first time, I didn't realize that 80K
keys is a relatively small number. The page doesn't give any guidance?
Since my keys don't have an ordering, I chose hash. I imagine
converting is not trivial.
Expanding a little bit on my original post:
I've been using Berkeley DB for a little while now, but this is the
first time I've needed to pay attention to tuning.
I have one new question stemming from that. I have what
seems like a lot of overflows:
{'bfree': 81519646,
'big_bfree': 58940555,
'bigpages': 102577,
'buckets': 30477,
'dup': 0,
'dup_free': 0,
'ffactor': 0,
'free': 6973,
'magic': 398689,
'ndata': 83283,
'nkeys': 83283,
'overflows': 1429,
'ovfl_free': 4232315,
'pagesize': 4096,
'version': 8},
My data (serialized xml) is of surprisingly varying size, from under
1K to over 1M. If I increase pagesize, will the overflows automagically
be converted back to regular DB pages?
--
__________________________________________________ _____________________
Marco E. Nicosia | http://www.escape.org/~marco/ | marco (AT) escape (DOT) org