pbour
2007-03-26 17:36:07 UTC
I create an environment with 32K cache.
The objective is to get the physical I/O accesses -basically cache
hits and misses.
I create D2 and query it. PROBLEM zero stats apart from "Requested
pages mapped into the process' address space".
Before opening a database for querying, I create an environment DB_ENV
pointer with flags DB_CREATE|DB_INIT_MPOOL.
The code for creating and querying the databases is EXACTLY the same.
Any ideas why?
Thanx in advance.
The objective is to get the physical I/O accesses -basically cache
hits and misses.
I create my first database D1.
I pose a query on D1 and print the statistics. All OK till now.
I create my second database D2.
I pose again the same query on D1 and print the statistics. BUT now, only "Requested pages mapped into the process' address space" are larger than zero. Nothing on cache hits and nothing on cache misses.
OK, I 'll change the order. Meaning I create D2 and query it. All OK.I pose a query on D1 and print the statistics. All OK till now.
I create my second database D2.
I pose again the same query on D1 and print the statistics. BUT now, only "Requested pages mapped into the process' address space" are larger than zero. Nothing on cache hits and nothing on cache misses.
I create D2 and query it. PROBLEM zero stats apart from "Requested
pages mapped into the process' address space".
Before opening a database for querying, I create an environment DB_ENV
pointer with flags DB_CREATE|DB_INIT_MPOOL.
The code for creating and querying the databases is EXACTLY the same.
Any ideas why?
Thanx in advance.