DB_CONFIG

Igor Brezac igor at ypass.net
Sat Dec 4 11:19:06 EST 2004


Stop cyrus server, run db_recover -h /var/lib/imap/db and start cyrus 
server.

-Igor

On Sat, 4 Dec 2004, ocl wrote:

> I am sorry, I posted too early.
>
> I think I am getting somewhere, but not quite there yet.
>
> This is the contents of /var/lib/imap/db/DB_CONFIG
>
>   set_cachesize    2 0 8
>   set_lg_regionmax 268435456
>   set_lg_bsize     67108864
>   set_flags DB_TXN_WRITE_NOSYNC
>
> IOW, I am going for
>
> -- cachesize of 2 GB in 8 buckets.
> -- regionmax of 256 MB
> -- bsize of 64 MB
>
> I have 8 GB RAM on this machine, I want to have /large/
> allowances for BDB --just to be on the safe side.
>
> Trouble is, I have no idea what /safe side/ means in this
> context.
>
> What complicates the issue more is the result of 'db_stat -m',
> which reads as below. Now, where is my 2GB cache?
>
> 259KB 896B      Total cache size (266112 bytes).
> 1       Number of caches.
> 270336  Pool individual cache size.
> 52664   Requested pages found in the cache (100%).
> 0       Requested pages mapped into the process' address space.
> 229     Requested pages not found in the cache.
> 0       Pages created in the cache.
> 229     Pages read into the cache.
> 259     Pages written from the cache to the backing file.
> 2       Clean pages forced from the cache.
> 166     Dirty pages forced from the cache.
> 0       Dirty buffers written by trickle-sync thread.
> 63      Current clean buffer count.
> 0       Current dirty buffer count.
> 67      Number of hash buckets used for page location.
> 52851   Total number of times hash chains searched for a page.
> 5       The longest hash chain searched for a page.
> 80851   Total number of hash buckets examined for page location.
> 119878  The number of region locks granted without waiting.
> 1       The number of region locks granted after waiting.
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Pool File: /var/lib/imap/tls_sessions.db
> 4096    Page size.
> 44      Requested pages found in the cache (96%).
> 0       Requested pages mapped into the process' address space.
> 2       Requested pages not found in the cache.
> 0       Pages created in the cache.
> 2       Pages read into the cache.
> 9       Pages written from the cache to the backing file.
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Pool File: /var/lib/imap/deliver.db
> 4096    Page size.
> 52620   Requested pages found in the cache (100%).
> 0       Requested pages mapped into the process' address space.
> 227     Requested pages not found in the cache.
> 0       Pages created in the cache.
> 227     Pages read into the cache.
> 250     Pages written from the cache to the backing file.
>
> Cheers,
> Ray
>
> ---
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>

-- 
Igor
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list