[Dovecot] High cpu usage OpenSolaris

Timo Sirainen tss at iki.fi
Wed Aug 1 16:46:00 EEST 2007


On Wed, 2007-08-01 at 15:12 +0200, DINH Viêt Hoà wrote:
> On 8/1/07, Timo Sirainen <tss at iki.fi> wrote:
> > On Sun, 2007-07-29 at 21:27 -0400, Gary Gendel wrote:
> > > All,
> > >
> > > Nevermind... I discovered the problem. It was in the Solaris Sun Studio
> > > 12 compiler. I created a debug version to begin testing, but that
> > > version worked without sucking up the cpu. So it looks like the
> > > optimizer messed up. If I used the -fast optimization, it sucks up cpu,
> > > but with -xO5 all is well.
> >
> > I heard about this before too. Would be nice to know if it really is a
> > bug in Sun Studio or if the problem is caused by something done wrong in
> > Dovecot's code.
> 
> can't you use dtrace or something to know where the CPU time will go ?

Last I heard it was that poll() was called all the time with zero (or
1ms?) timeout. So the problem is probably in src/lib/ioloop.c
io_loop_get_wait_time() getting optimized wrong.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070801/d91e3ac9/attachment.bin 


More information about the dovecot mailing list