Re: [Dovecot] Auth_cache not working?

2008-02-27 Thread Jan van den Berg
Aha ok!

I can see the cache hits and misses now: so that's fine.

But I will just keep using my imapproxy to reduce I/O.

Thanks Timo.

Cheers,

Jan

-Oorspronkelijk bericht-
Van: Timo Sirainen [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 27 februari 2008 17:38
Aan: Jan van den Berg
CC: dovecot@dovecot.org
Onderwerp: Re: [Dovecot] Auth_cache not working?

On Wed, 2008-02-27 at 17:33 +0100, Jan van den Berg wrote:

> Sort of the same thing: but more inconsistent. Sometimes I click five
> folders and OE will have done 3 logins sometimes 2.
> 
>  
> So new IMAP logins for (more or less) every click in Thunderbird and
OE;
> this is what auth_cache_size should solve right?

No. Dovecot can't affect how and when clients create new connections.
auth_cache only reduces number of SQL queries when authenticating. You
can determine if it works by adding auth_debug=yes and checking "Hit"
and "Miss" log lines.



Re: [Dovecot] Auth_cache not working?

2008-02-27 Thread Timo Sirainen
On Wed, 2008-02-27 at 17:33 +0100, Jan van den Berg wrote:

> Sort of the same thing: but more inconsistent. Sometimes I click five
> folders and OE will have done 3 logins sometimes 2.
> 
>  
> So new IMAP logins for (more or less) every click in Thunderbird and OE;
> this is what auth_cache_size should solve right?

No. Dovecot can't affect how and when clients create new connections.
auth_cache only reduces number of SQL queries when authenticating. You
can determine if it works by adding auth_debug=yes and checking "Hit"
and "Miss" log lines.



signature.asc
Description: This is a digitally signed message part


[Dovecot] Auth_cache not working?

2008-02-27 Thread Jan van den Berg
Hi,

 

I have:

auth_cache_size = 4096

auth_cache_ttl = 3600

 

I use Thunderbird connecting to my Dovecot IMAP server 1.1rc1. I click
on five folders and close Thunderbird.

This is my log:

 

dovecot: Feb 27 17:26:56 Info: Dovecot v1.1.rc1 starting up

dovecot: Feb 27 17:26:56 Info: auth-worker(default): mysql: Connected to
auth01 (Auth)

dovecot: Feb 27 17:27:07 Info: imap-login: Login: user=,
method=PLAIN, rip=10.4.32.70, lip=10.4.32.235

dovecot: Feb 27 17:27:08 Info: imap-login: Login: user=,
method=PLAIN, rip=10.4.32.70, lip=10.4.32.235

dovecot: Feb 27 17:27:10 Info: imap-login: Login: user=,
method=PLAIN, rip=10.4.32.70, lip=10.4.32.235

dovecot: Feb 27 17:27:11 Info: imap-login: Login: user=,
method=PLAIN, rip=10.4.32.70, lip=10.4.32.235

dovecot: Feb 27 17:27:13 Info: imap-login: Login: user=,
method=PLAIN, rip=10.4.32.70, lip=10.4.32.235

dovecot: Feb 27 17:27:20 Info: IMAP(roka-05): Disconnected: Logged out
bytes=83/469

dovecot: Feb 27 17:27:20 Info: IMAP(roka-05): Disconnected: Logged out
bytes=106/524

dovecot: Feb 27 17:27:20 Info: IMAP(roka-05): Disconnected: Logged out
bytes=71/463

dovecot: Feb 27 17:27:20 Info: IMAP(roka-05): Disconnected: Logged out
bytes=356/4887

dovecot: Feb 27 17:27:20 Info: IMAP(roka-05): Disconnected: Logged out
bytes=147/939

 

In Outlook Express:

 

dovecot: Feb 27 17:27:38 Info: imap-login: Login: user=,
method=PLAIN, rip=10.4.32.70, lip=10.4.32.235

dovecot: Feb 27 17:27:38 Info: IMAP(roka-05): Disconnected in IDLE
bytes=65/112

dovecot: Feb 27 17:27:38 Info: imap-login: Login: user=,
method=PLAIN, rip=10.4.32.70, lip=10.4.32.235

dovecot: Feb 27 17:27:38 Info: IMAP(roka-05): Disconnected in IDLE
bytes=259/1098

dovecot: Feb 27 17:27:44 Info: imap-login: Login: user=,
method=PLAIN, rip=10.4.32.70, lip=10.4.32.235

dovecot: Feb 27 17:27:51 Info: IMAP(roka-05): Disconnected: Logged out
bytes=1682/10349

 

Sort of the same thing: but more inconsistent. Sometimes I click five
folders and OE will have done 3 logins sometimes 2.

 

So new IMAP logins for (more or less) every click in Thunderbird and OE;
this is what auth_cache_size should solve right?

 

Am I applying the auth_cache_* variables wrong or is something else
wrong?

 

Cheers,

 

Jan