dbTalk Databases Forums  

Finding out db cache useag

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


Discuss Finding out db cache useag in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
foobaraudio@yahoo.com
 
Posts: n/a

Default Finding out db cache useag - 11-17-2005 , 06:58 AM








Is There a way to find out, at run time, the cache usage of a certain
db?

I'm setting a certain cache size and I'd like to know when the
application is about to exeed this value.

Thanks ahead
Shahar


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

Default Re: Finding out db cache useag - 11-17-2005 , 04:29 PM






I have 2 suggestions:

The first is to look at the db_stat utility.

The second is to look at the memp_stat() method. For more information:
http://www.sleepycat.com/docs/api_cxx/memp_stat.html

In particular look at the per database data structure DB_MPOOL_FSTAT.

Ron
S...cat Software.


Reply With Quote
  #3  
Old   
foobaraudio@yahoo.com
 
Posts: n/a

Default Re: Finding out db cache useag - 11-20-2005 , 12:22 AM



oh

I'm not using Env
Should I?

db_stat does not return memory usage as far as i can tell...

Thanks again
Shahar


Reply With Quote
  #4  
Old   
foobaraudio@yahoo.com
 
Posts: n/a

Default Re: Finding out db cache useag - 11-20-2005 , 08:36 AM



ok
I've set up an env and I can get the DB_MPOOL_FSTAT

just to make sure:

In order to find out cache usage:

st_page_create * st_pagesize = current cache usage by db

Is that correct?


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.