dbTalk Databases Forums  

memory pool stats

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss memory pool stats in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
pbour
 
Posts: n/a

Default memory pool stats - 03-26-2007 , 12:36 PM






I create an environment with 32K cache.
The objective is to get the physical I/O accesses -basically cache
hits and misses.

I continue with the following steps:

Quote:
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 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.



Reply With Quote
  #2  
Old   
pbour
 
Posts: n/a

Default Re: memory pool stats - 03-26-2007 , 12:38 PM






I made a mistake on the process after changing the order. The
following is the correct one.

Quote:
OK, I 'll change the order. Meaning I create D2 and query it. All OK.
I create D1 and query it. PROBLEM zero stats apart from "Requested
pages mapped into the process' address space".



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.