cancel
Showing results for 
Search instead for 
Did you mean: 

Distribution cache for multiple databases

1,215

Let I run multiple databases on a single database ASA9-server (or SQL Anywhere 12, or 16 ... ) Can I find out how much space in the cache (in pages or in percent) occupy each database?

For example:

sa_eng_properties:
'CurrentCacheSize' * 1024/ 'PageSize' = 262144 pages
'CacheFree'                           = 256654 pages
sa_db_properties:
DB1 = ? pages                                  
DB2 = ? pages
...

Accepted Solutions (1)

Accepted Solutions (1)

MarkCulp
Participant

The server does not track the number of pages used per database, so this information is not available. (I've added this to the list of enhancement requests for some future release).

0 Kudos

Thanks. Regards, Ilia

VolkerBarth
Contributor
0 Kudos

FWIW, are all these pages related to one particular database, or are there also "unused" or "common" pages?

MarkCulp
Participant

There are definitely times when some pages in cached are unused and hence would not be associated with any database. There are also some pages in cache which hold "common" information - allocated pages not associated with any database - but the number of these pages is tiny compared to the class of pages used to hold database file pages and intermediate query results.

There are also other classes of pages which hold database connection info and materialized information about a database (e.g. procedure definitions, user & table meta info, etc) but obviously each of these are associated with a particular database and therefore could be included in the count of pages for a db.

Answers (0)